aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet6
diff options
context:
space:
mode:
authorAlexander V. Chernikov <melifaro@FreeBSD.org>2015-01-03 14:18:48 +0000
committerAlexander V. Chernikov <melifaro@FreeBSD.org>2015-01-03 14:18:48 +0000
commit787cea14a586ff705646d354eccf12991a576c76 (patch)
treed9bd003faa18efc068262230bc244c7f22483e2b /sys/netinet6
parentd2e0f37c22ff3e8b46e66a8ec6a4d8c9de2f0159 (diff)
downloadsrc-787cea14a586ff705646d354eccf12991a576c76.tar.gz
src-787cea14a586ff705646d354eccf12991a576c76.zip
Since @ln is the result of LLTABLE6(ifp) lookup its originating interface
must always be @ifp. So change ln->lle_tbl->llt_ifp to ifp.
Notes
Notes: svn path=/projects/routing/; revision=276621
Diffstat (limited to 'sys/netinet6')
-rw-r--r--sys/netinet6/nd6_nbr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet6/nd6_nbr.c b/sys/netinet6/nd6_nbr.c
index eee0113fbba9..809c5dc113a4 100644
--- a/sys/netinet6/nd6_nbr.c
+++ b/sys/netinet6/nd6_nbr.c
@@ -719,7 +719,7 @@ nd6_na_input(struct mbuf *m, int off, int icmp6len)
ln->ln_byhint = 0;
if (!ND6_LLINFO_PERMANENT(ln)) {
nd6_llinfo_settimer_locked(ln,
- (long)ND_IFINFO(ln->lle_tbl->llt_ifp)->reachable * hz);
+ (long)ND_IFINFO(ifp)->reachable * hz);
}
} else {
ln->ln_state = ND6_LLINFO_STALE;
@@ -831,10 +831,10 @@ 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);
+ dr = defrouter_lookup(in6, ifp);
if (dr)
defrtrlist_del(dr);
- else if (ND_IFINFO(ln->lle_tbl->llt_ifp)->flags &
+ else if (ND_IFINFO(ifp)->flags &
ND6_IFF_ACCEPT_RTADV) {
/*
* Even if the neighbor is not in the default