-/* $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
{
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);
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);
goto leave;
}
-#if NBPF > 0
-#endif
-
/* verify that the IP TTL is 255. */
if (ttl != PFSYNC_DFLTTL) {
pfsyncstat_inc(pfsyncs_badttl);