summaryrefslogtreecommitdiffstats
path: root/sys/net/if_stf.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/net/if_stf.c')
-rw-r--r--sys/net/if_stf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/if_stf.c b/sys/net/if_stf.c
index 12ce174..24e5ca5 100644
--- a/sys/net/if_stf.c
+++ b/sys/net/if_stf.c
@@ -384,7 +384,7 @@ stf_getsrcifa6(ifp)
struct sockaddr_in6 *sin6;
struct in_addr in;
- IF_ADDR_LOCK(ifp);
+ if_addr_rlock(ifp);
TAILQ_FOREACH(ia, &ifp->if_addrhead, ifa_link) {
if (ia->ifa_addr->sa_family != AF_INET6)
continue;
@@ -400,10 +400,10 @@ stf_getsrcifa6(ifp)
continue;
ifa_ref(ia);
- IF_ADDR_UNLOCK(ifp);
+ if_addr_runlock(ifp);
return (struct in6_ifaddr *)ia;
}
- IF_ADDR_UNLOCK(ifp);
+ if_addr_runlock(ifp);
return NULL;
}
OpenPOWER on IntegriCloud