diff options
author | rwatson <rwatson@FreeBSD.org> | 2009-06-24 21:00:25 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2009-06-24 21:00:25 +0000 |
commit | 9c4380a8eea873952968c44b6e2567cd55ba5011 (patch) | |
tree | d5254cdd84bc71793efc3d8e4ce92756811f0fc7 /sys/netinet/ip_carp.c | |
parent | cb4def77ea11a26ecabee87b4221b746f96d689d (diff) | |
download | FreeBSD-src-9c4380a8eea873952968c44b6e2567cd55ba5011.zip FreeBSD-src-9c4380a8eea873952968c44b6e2567cd55ba5011.tar.gz |
Convert netinet6 to using queue(9) rather than hand-crafted linked lists
for the global IPv6 address list (in6_ifaddr -> in6_ifaddrhead). Adopt
the code styles and conventions present in netinet where possible.
Reviewed by: gnn, bz
MFC after: 6 weeks (possibly not MFCable?)
Diffstat (limited to 'sys/netinet/ip_carp.c')
-rw-r--r-- | sys/netinet/ip_carp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/ip_carp.c b/sys/netinet/ip_carp.c index fcfe28a..44845b5 100644 --- a/sys/netinet/ip_carp.c +++ b/sys/netinet/ip_carp.c @@ -1667,7 +1667,7 @@ carp_set_addr6(struct carp_softc *sc, struct sockaddr_in6 *sin6) /* we have to do it by hands to check we won't match on us */ ia_if = NULL; own = 0; - for (ia = V_in6_ifaddr; ia; ia = ia->ia_next) { + TAILQ_FOREACH(ia6, &V_in6_ifaddrhead, ia_link) { int i; for (i = 0; i < 4; i++) { |