diff options
author | 2016-07-19 15:57:13 +0000 | |
---|---|---|
committer | 2016-07-19 15:57:13 +0000 | |
commit | 0b43e8a007004fb0db97faad52cbb4600f218252 (patch) | |
tree | 3479716f8528d0c027232885e0bf2a59ac27325d /sys/netinet6/ip6_input.c | |
parent | NULLify a route pointer after calling rtfree(9). (diff) | |
download | wireguard-openbsd-0b43e8a007004fb0db97faad52cbb4600f218252.tar.xz wireguard-openbsd-0b43e8a007004fb0db97faad52cbb4600f218252.zip |
protect a pf specific function with the correct #if. Fixes ramdisk building.
(we got lucky before, because the variable that used to be checked was
always available)
OK bluhm@
Diffstat (limited to 'sys/netinet6/ip6_input.c')
-rw-r--r-- | sys/netinet6/ip6_input.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netinet6/ip6_input.c b/sys/netinet6/ip6_input.c index d9dc7839147..0a8cca23376 100644 --- a/sys/netinet6/ip6_input.c +++ b/sys/netinet6/ip6_input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip6_input.c,v 1.166 2016/07/19 09:23:51 bluhm Exp $ */ +/* $OpenBSD: ip6_input.c,v 1.167 2016/07/19 15:57:13 phessler Exp $ */ /* $KAME: ip6_input.c,v 1.188 2001/03/29 05:34:31 itojun Exp $ */ /* @@ -375,10 +375,12 @@ ip6_input(struct mbuf *m) goto hbhcheck; } +#if NPF > 0 if (pf_ouraddr(m) == 1) { ours = 1; goto hbhcheck; } +#endif /* * Multicast check |