summaryrefslogtreecommitdiffstats
path: root/sys/netinet6
diff options
context:
space:
mode:
authormelifaro <melifaro@FreeBSD.org>2016-01-01 12:35:33 +0000
committermelifaro <melifaro@FreeBSD.org>2016-01-01 12:35:33 +0000
commiteceeaeddc03e27649dc1c9a1dad301638471e673 (patch)
treef7b48d6529de72eb6bdc590d800c3dd7a960ef66 /sys/netinet6
parenta393bf937a6f4ba2cea24dda5103acbc52d04b2d (diff)
downloadFreeBSD-src-eceeaeddc03e27649dc1c9a1dad301638471e673.zip
FreeBSD-src-eceeaeddc03e27649dc1c9a1dad301638471e673.tar.gz
Use lltable_get_ifp() instead of direct access to lltable fields.
Diffstat (limited to 'sys/netinet6')
-rw-r--r--sys/netinet6/nd6_nbr.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/netinet6/nd6_nbr.c b/sys/netinet6/nd6_nbr.c
index a5ce2ec..80a5cd3 100644
--- a/sys/netinet6/nd6_nbr.c
+++ b/sys/netinet6/nd6_nbr.c
@@ -877,6 +877,7 @@ nd6_na_input(struct mbuf *m, int off, int icmp6len)
*/
struct nd_defrouter *dr;
struct in6_addr *in6;
+ struct ifnet *nd6_ifp;
in6 = &ln->r_l3addr.addr6;
@@ -886,10 +887,11 @@ nd6_na_input(struct mbuf *m, int off, int icmp6len)
* is only called under the network software interrupt
* context. However, we keep it just for safety.
*/
- dr = defrouter_lookup(in6, ln->lle_tbl->llt_ifp);
+ nd6_ifp = lltable_get_ifp(ln->lle_tbl);
+ dr = defrouter_lookup(in6, nd6_ifp);
if (dr)
defrtrlist_del(dr);
- else if (ND_IFINFO(ln->lle_tbl->llt_ifp)->flags &
+ else if (ND_IFINFO(nd6_ifp)->flags &
ND6_IFF_ACCEPT_RTADV) {
/*
* Even if the neighbor is not in the default
OpenPOWER on IntegriCloud