diff options
author | Peter Hessler <phessler@cvs.openbsd.org> | 2016-07-19 15:57:14 +0000 |
---|---|---|
committer | Peter Hessler <phessler@cvs.openbsd.org> | 2016-07-19 15:57:14 +0000 |
commit | 3b6d3f3e34dc98a5496ee3aca75b3492565968c4 (patch) | |
tree | 1beb8fdb1dc181e417cb8a44134b56dbddde220f | |
parent | 7318750254ebd53a9f860dacb7776f57ae100cb5 (diff) |
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@
-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 |