summaryrefslogtreecommitdiff
path: root/sys/net/if_gre.c
diff options
context:
space:
mode:
authormvs <mvs@cvs.openbsd.org>2020-08-28 12:01:49 +0000
committermvs <mvs@cvs.openbsd.org>2020-08-28 12:01:49 +0000
commit74c2c4f31ae41fd11a797fb558f9fcb9bfb5e1e9 (patch)
tree7351c413f365ae614b43d2d0ccb53e0714dc5d0d /sys/net/if_gre.c
parent842d73abd18d7ec574fe43b12f07cacce2b129ab (diff)
Add missing #if's to fix build without bpf(4).
ok deraadt@
Diffstat (limited to 'sys/net/if_gre.c')
-rw-r--r--sys/net/if_gre.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net/if_gre.c b/sys/net/if_gre.c
index 641bd6f14e2..b297b64ad6b 100644
--- a/sys/net/if_gre.c
+++ b/sys/net/if_gre.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_gre.c,v 1.159 2020/08/21 22:59:27 kn Exp $ */
+/* $OpenBSD: if_gre.c,v 1.160 2020/08/28 12:01:48 mvs Exp $ */
/* $NetBSD: if_gre.c,v 1.9 1999/10/25 19:18:11 drochner Exp $ */
/*
@@ -1009,7 +1009,9 @@ gre_input_key(struct mbuf **mp, int *offp, int type, int af, uint8_t otos,
void (*input)(struct ifnet *, struct mbuf *);
struct mbuf *(*patch)(const struct gre_tunnel *, struct mbuf *,
uint8_t *, uint8_t);
+#if NBPFILTER > 0
int bpf_af = AF_UNSPEC; /* bpf */
+#endif
int mcast = 0;
uint8_t itos;