in6.c (71212473120f655524672d5fa1d6b2eb63c7196c) | in6.c (3b0b2840be64ee1ed67bc6939c412b59bfaac2c7) |
---|---|
1/*- 2 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 1355 unchanged lines hidden (view full) --- 1364 /* stop DAD processing */ 1365 nd6_dad_stop(ifa); 1366 1367 in6_ifremloop(ifa); 1368 1369 /* 1370 * leave from multicast groups we have joined for the interface 1371 */ | 1/*- 2 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 1355 unchanged lines hidden (view full) --- 1364 /* stop DAD processing */ 1365 nd6_dad_stop(ifa); 1366 1367 in6_ifremloop(ifa); 1368 1369 /* 1370 * leave from multicast groups we have joined for the interface 1371 */ |
1372 while ((imm = ia->ia6_memberships.lh_first) != NULL) { | 1372 while ((imm = LIST_FIRST(&ia->ia6_memberships)) != NULL) { |
1373 LIST_REMOVE(imm, i6mm_chain); 1374 in6_leavegroup(imm); 1375 } 1376 1377 /* 1378 * remove the link-local all-nodes address 1379 */ 1380 bzero(&mltmask, sizeof(mltmask)); --- 967 unchanged lines hidden (view full) --- 2348 */ 2349void 2350in6_setmaxmtu(void) 2351{ 2352 unsigned long maxmtu = 0; 2353 struct ifnet *ifp; 2354 2355 IFNET_RLOCK_NOSLEEP(); | 1373 LIST_REMOVE(imm, i6mm_chain); 1374 in6_leavegroup(imm); 1375 } 1376 1377 /* 1378 * remove the link-local all-nodes address 1379 */ 1380 bzero(&mltmask, sizeof(mltmask)); --- 967 unchanged lines hidden (view full) --- 2348 */ 2349void 2350in6_setmaxmtu(void) 2351{ 2352 unsigned long maxmtu = 0; 2353 struct ifnet *ifp; 2354 2355 IFNET_RLOCK_NOSLEEP(); |
2356 for (ifp = TAILQ_FIRST(&V_ifnet); ifp; 2357 ifp = TAILQ_NEXT(ifp, if_list)) { | 2356 TAILQ_FOREACH(ifp, &V_ifnet, if_list) { |
2358 /* this function can be called during ifnet initialization */ 2359 if (!ifp->if_afdata[AF_INET6]) 2360 continue; 2361 if ((ifp->if_flags & IFF_LOOPBACK) == 0 && 2362 IN6_LINKMTU(ifp) > maxmtu) 2363 maxmtu = IN6_LINKMTU(ifp); 2364 } 2365 IFNET_RUNLOCK_NOSLEEP(); --- 427 unchanged lines hidden --- | 2357 /* this function can be called during ifnet initialization */ 2358 if (!ifp->if_afdata[AF_INET6]) 2359 continue; 2360 if ((ifp->if_flags & IFF_LOOPBACK) == 0 && 2361 IN6_LINKMTU(ifp) > maxmtu) 2362 maxmtu = IN6_LINKMTU(ifp); 2363 } 2364 IFNET_RUNLOCK_NOSLEEP(); --- 427 unchanged lines hidden --- |