diff options
author | melifaro <melifaro@FreeBSD.org> | 2015-12-09 22:09:33 +0000 |
---|---|---|
committer | melifaro <melifaro@FreeBSD.org> | 2015-12-09 22:09:33 +0000 |
commit | 802824b70a984d0969a420af5f4efb864bf8f9b9 (patch) | |
tree | 5e71eed55195648b99845b5c62afc9ce613bfc56 /sys/netinet6 | |
parent | 183b9d97156dcb4fc6b977eb80ee626952ec8842 (diff) | |
download | FreeBSD-src-802824b70a984d0969a420af5f4efb864bf8f9b9.zip FreeBSD-src-802824b70a984d0969a420af5f4efb864bf8f9b9.tar.gz |
Use correct lookup key for gif route lookups.
This fixes r291993 change.
Diffstat (limited to 'sys/netinet6')
-rw-r--r-- | sys/netinet6/in6_gif.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet6/in6_gif.c b/sys/netinet6/in6_gif.c index 76ab400..e6901ba 100644 --- a/sys/netinet6/in6_gif.c +++ b/sys/netinet6/in6_gif.c @@ -205,10 +205,10 @@ in6_gif_encapcheck(const struct mbuf *m, int off, int proto, void *arg) /* ingress filters on outer source */ if ((GIF2IFP(sc)->if_flags & IFF_LINK2) == 0) { struct nhop6_basic nh6; - struct in6_addr *dst; /* XXX empty scope id */ - if (fib6_lookup_nh_basic(sc->gif_fibnum, dst, 0, 0, 0, &nh6)!=0) + if (fib6_lookup_nh_basic(sc->gif_fibnum, &ip6->ip6_src, 0, 0, 0, + &nh6) != 0) return (0); if (nh6.nh_ifp != m->m_pkthdr.rcvif) |