protect a pf specific function with the correct #if. Fixes ramdisk building.
authorphessler <phessler@openbsd.org>
Tue, 19 Jul 2016 15:57:13 +0000 (15:57 +0000)
committerphessler <phessler@openbsd.org>
Tue, 19 Jul 2016 15:57:13 +0000 (15:57 +0000)
(we got lucky before, because the variable that used to be checked was
always available)

OK bluhm@

sys/netinet6/ip6_input.c

index d9dc783..0a8cca2 100644 (file)
@@ -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