From 27d90026f992a06c80ab454437b76150e4cd4e30 Mon Sep 17 00:00:00 2001 From: jsg Date: Fri, 18 Aug 2023 08:03:57 +0000 Subject: [PATCH] NBPFILTER not NBPF ok dlg@ --- sys/net/if_pfsync.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/sys/net/if_pfsync.c b/sys/net/if_pfsync.c index da32ef94efe..d57a0250210 100644 --- a/sys/net/if_pfsync.c +++ b/sys/net/if_pfsync.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_pfsync.c,v 1.319 2023/07/31 11:13:09 dlg Exp $ */ +/* $OpenBSD: if_pfsync.c,v 1.320 2023/08/18 08:03:57 jsg Exp $ */ /* * Copyright (c) 2002 Michael Shalayeff @@ -1528,7 +1528,7 @@ pfsync_sendout(struct pfsync_softc *sc, struct mbuf *m) { struct ip_moptions imo; unsigned int len = m->m_pkthdr.len; -#if NBPF > 0 +#if NBPFILTER > 0 caddr_t if_bpf = sc->sc_if.if_bpf; if (if_bpf) bpf_mtap(if_bpf, m, BPF_DIRECTION_OUT); @@ -2628,9 +2628,6 @@ pfsync_input(struct mbuf *m, uint8_t ttl, unsigned int hlen) unsigned int len; void (*in)(struct pfsync_softc *, const caddr_t, unsigned int, unsigned int); -#if NBPF > 0 - caddr_t if_bpf; -#endif pfsyncstat_inc(pfsyncs_ipackets); @@ -2650,9 +2647,6 @@ pfsync_input(struct mbuf *m, uint8_t ttl, unsigned int hlen) goto leave; } -#if NBPF > 0 -#endif - /* verify that the IP TTL is 255. */ if (ttl != PFSYNC_DFLTTL) { pfsyncstat_inc(pfsyncs_badttl); -- 2.20.1