summaryrefslogtreecommitdiffstats
path: root/sys/netinet6/in6_var.h
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2009-04-20 22:56:34 +0000
committerrwatson <rwatson@FreeBSD.org>2009-04-20 22:56:34 +0000
commit6dff27073dd2a25472cdde4ad14416c2251e6202 (patch)
tree75ff52ff52afc38849d4ee3599a1d81ce9ef64ad /sys/netinet6/in6_var.h
parent22bdc8dd64339b3690de0df36d39d43406b6c318 (diff)
downloadFreeBSD-src-6dff27073dd2a25472cdde4ad14416c2251e6202.zip
FreeBSD-src-6dff27073dd2a25472cdde4ad14416c2251e6202.tar.gz
Assert the interface address list lock in IFP_TO_IA6(), as it will
iterate the interface address list. Marginally expand IF_ADDR_LOCK() coverage in mld6.c to make sure it's held when IFP_TO_IA6() is called. MFC after: 2 weeks
Diffstat (limited to 'sys/netinet6/in6_var.h')
-rw-r--r--sys/netinet6/in6_var.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/netinet6/in6_var.h b/sys/netinet6/in6_var.h
index 260e944..a472a24 100644
--- a/sys/netinet6/in6_var.h
+++ b/sys/netinet6/in6_var.h
@@ -503,6 +503,7 @@ MALLOC_DECLARE(M_IP6MADDR);
/* struct in6_ifaddr *ia; */ \
do { \
struct ifaddr *ifa; \
+ IF_ADDR_LOCK_ASSERT(ifp); \
TAILQ_FOREACH(ifa, &(ifp)->if_addrhead, ifa_link) { \
if (ifa->ifa_addr->sa_family == AF_INET6) \
break; \
OpenPOWER on IntegriCloud