From 0b43e8a007004fb0db97faad52cbb4600f218252 Mon Sep 17 00:00:00 2001 From: phessler Date: Tue, 19 Jul 2016 15:57:13 +0000 Subject: [PATCH] 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@ --- sys/netinet6/ip6_input.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.20.1