scope6.c (93128) | scope6.c (109623) |
---|---|
1/* $FreeBSD: head/sys/netinet6/scope6.c 93128 2002-03-25 10:12:51Z ume $ */ | 1/* $FreeBSD: head/sys/netinet6/scope6.c 109623 2003-01-21 08:56:16Z alfred $ */ |
2/* $KAME: scope6.c,v 1.10 2000/07/24 13:29:31 itojun Exp $ */ 3 4/* 5 * Copyright (C) 2000 WIDE Project. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions --- 60 unchanged lines hidden (view full) --- 70 caddr_t q; 71 72 while (if_index >= if_indexlim) 73 if_indexlim <<= 1; 74 75 /* grow scope index array */ 76 n = if_indexlim * sizeof(struct scope6_id); 77 /* XXX: need new malloc type? */ | 2/* $KAME: scope6.c,v 1.10 2000/07/24 13:29:31 itojun Exp $ */ 3 4/* 5 * Copyright (C) 2000 WIDE Project. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions --- 60 unchanged lines hidden (view full) --- 70 caddr_t q; 71 72 while (if_index >= if_indexlim) 73 if_indexlim <<= 1; 74 75 /* grow scope index array */ 76 n = if_indexlim * sizeof(struct scope6_id); 77 /* XXX: need new malloc type? */ |
78 q = (caddr_t)malloc(n, M_IFADDR, M_WAITOK); | 78 q = (caddr_t)malloc(n, M_IFADDR, 0); |
79 bzero(q, n); 80 if (scope6_ids) { 81 bcopy((caddr_t)scope6_ids, q, n/2); 82 free((caddr_t)scope6_ids, M_IFADDR); 83 } 84 scope6_ids = (struct scope6_id *)q; 85 } 86 --- 217 unchanged lines hidden --- | 79 bzero(q, n); 80 if (scope6_ids) { 81 bcopy((caddr_t)scope6_ids, q, n/2); 82 free((caddr_t)scope6_ids, M_IFADDR); 83 } 84 scope6_ids = (struct scope6_id *)q; 85 } 86 --- 217 unchanged lines hidden --- |