diff options
author | jhb <jhb@FreeBSD.org> | 2011-12-29 18:25:18 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2011-12-29 18:25:18 +0000 |
commit | 7a0151720c2fe467008a6d652b662b6bf34f8f4b (patch) | |
tree | a49d597cd77d96cec5272f2d22c60ea00932699a /sys/netinet6/in6.c | |
parent | f6d4e2f059e27289d1c8365780ea3c7234117776 (diff) | |
download | FreeBSD-src-7a0151720c2fe467008a6d652b662b6bf34f8f4b.zip FreeBSD-src-7a0151720c2fe467008a6d652b662b6bf34f8f4b.tar.gz |
Use queue(3) macros instead of home-rolled versions in several places in
the INET6 code. This includes retiring the 'ndpr_next' and 'pfr_next'
macros.
Submitted by: pluknet (earlier version)
Reviewed by: pluknet
Diffstat (limited to 'sys/netinet6/in6.c')
-rw-r--r-- | sys/netinet6/in6.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/netinet6/in6.c b/sys/netinet6/in6.c index 4fb588e..4c05210 100644 --- a/sys/netinet6/in6.c +++ b/sys/netinet6/in6.c @@ -1369,7 +1369,7 @@ in6_purgeaddr(struct ifaddr *ifa) /* * leave from multicast groups we have joined for the interface */ - while ((imm = ia->ia6_memberships.lh_first) != NULL) { + while ((imm = LIST_FIRST(&ia->ia6_memberships)) != NULL) { LIST_REMOVE(imm, i6mm_chain); in6_leavegroup(imm); } @@ -2353,8 +2353,7 @@ in6_setmaxmtu(void) struct ifnet *ifp; IFNET_RLOCK_NOSLEEP(); - for (ifp = TAILQ_FIRST(&V_ifnet); ifp; - ifp = TAILQ_NEXT(ifp, if_list)) { + TAILQ_FOREACH(ifp, &V_ifnet, if_list) { /* this function can be called during ifnet initialization */ if (!ifp->if_afdata[AF_INET6]) continue; |