Hi,

The IPv4 ip_input() uses a shortcut if the pf state key is linked
to a socket inp.  Let's do the same thing for IPv6.

ok?

bluhm

Index: netinet6/ip6_input.c
===================================================================
RCS file: /cvs/src/sys/netinet6/ip6_input.c,v
retrieving revision 1.164
diff -u -p -r1.164 ip6_input.c
--- netinet6/ip6_input.c        18 Jul 2016 19:50:49 -0000      1.164
+++ netinet6/ip6_input.c        18 Jul 2016 20:00:24 -0000
@@ -375,7 +375,7 @@ ip6_input(struct mbuf *m)
                goto hbhcheck;
        }
 
-       if (m->m_pkthdr.pf.flags & PF_TAG_DIVERTED) {
+       if (pf_ouraddr(m) == 1) {
                ours = 1;
                goto hbhcheck;
        }

Reply via email to