Author: melifaro
Date: Wed Dec  9 22:09:33 2015
New Revision: 292030
URL: https://svnweb.freebsd.org/changeset/base/292030

Log:
  Use correct lookup key for gif route lookups.
  This fixes r291993 change.

Modified:
  head/sys/netinet6/in6_gif.c

Modified: head/sys/netinet6/in6_gif.c
==============================================================================
--- head/sys/netinet6/in6_gif.c Wed Dec  9 21:54:33 2015        (r292029)
+++ head/sys/netinet6/in6_gif.c Wed Dec  9 22:09:33 2015        (r292030)
@@ -205,10 +205,10 @@ in6_gif_encapcheck(const struct mbuf *m,
        /* 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)
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to