diff options
author | bz <bz@FreeBSD.org> | 2015-12-30 17:10:03 +0000 |
---|---|---|
committer | bz <bz@FreeBSD.org> | 2015-12-30 17:10:03 +0000 |
commit | be33cc799d8409186373ac352c5ce5146e2feede (patch) | |
tree | db7bce210eba37d213cc4ed76661d49321d1d3fd /sys/netinet6 | |
parent | 4820136b6aadbc80d05702e16ef1cfc01bce3ccc (diff) | |
download | FreeBSD-src-be33cc799d8409186373ac352c5ce5146e2feede.zip FreeBSD-src-be33cc799d8409186373ac352c5ce5146e2feede.tar.gz |
This code is not in modules that need KPI stability so no need to use
the wrapper functions as used in r252511. We can directly use the
locking macros.
Reviewed by: jtl, rwatson
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D4731
Diffstat (limited to 'sys/netinet6')
-rw-r--r-- | sys/netinet6/in6.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet6/in6.c b/sys/netinet6/in6.c index 0f8fb67..aa77019 100644 --- a/sys/netinet6/in6.c +++ b/sys/netinet6/in6.c @@ -1552,7 +1552,7 @@ in6ifa_llaonifp(struct ifnet *ifp) if (ND_IFINFO(ifp)->flags & ND6_IFF_IFDISABLED) return (NULL); - if_addr_rlock(ifp); + IF_ADDR_RLOCK(ifp); TAILQ_FOREACH(ifa, &ifp->if_addrhead, ifa_link) { if (ifa->ifa_addr->sa_family != AF_INET6) continue; @@ -1562,7 +1562,7 @@ in6ifa_llaonifp(struct ifnet *ifp) IN6_IS_ADDR_MC_NODELOCAL(&sin6->sin6_addr)) break; } - if_addr_runlock(ifp); + IF_ADDR_RUNLOCK(ifp); return ((struct in6_ifaddr *)ifa); } |