diff options
author | 2016-07-19 09:23:51 +0000 | |
---|---|---|
committer | 2016-07-19 09:23:51 +0000 | |
commit | 7d717e4f20a3151ece5b0b1bfb5907156fb528bb (patch) | |
tree | 1c106720ff38e9c27573652578fdba0383393e1e /sys/netinet6/ip6_input.c | |
parent | In rcctl ls, skip all files with a '.' in the name, not just rc.subr; (diff) | |
download | wireguard-openbsd-7d717e4f20a3151ece5b0b1bfb5907156fb528bb.tar.xz wireguard-openbsd-7d717e4f20a3151ece5b0b1bfb5907156fb528bb.zip |
In ip6_input() use a shortcut to detect our own address if the pf
state key is linked to a socket inp.
OK mpi@ henning@
Diffstat (limited to 'sys/netinet6/ip6_input.c')
-rw-r--r-- | sys/netinet6/ip6_input.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet6/ip6_input.c b/sys/netinet6/ip6_input.c index 7d4966e980c..d9dc7839147 100644 --- a/sys/netinet6/ip6_input.c +++ b/sys/netinet6/ip6_input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip6_input.c,v 1.165 2016/07/19 08:13:46 mpi Exp $ */ +/* $OpenBSD: ip6_input.c,v 1.166 2016/07/19 09:23:51 bluhm Exp $ */ /* $KAME: ip6_input.c,v 1.188 2001/03/29 05:34:31 itojun Exp $ */ /* @@ -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; } |