In FreeBSD we always have bpf(4) API, either real or stub. No need
in detecting presense of 'device bpf'.
This commit is contained in:
parent
b075a9fc19
commit
47a08cdd76
@ -45,17 +45,12 @@
|
||||
#ifdef __FreeBSD__
|
||||
#include "opt_inet.h"
|
||||
#include "opt_inet6.h"
|
||||
#include "opt_bpf.h"
|
||||
#include "opt_pf.h"
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
#ifdef DEV_BPF
|
||||
#define NBPFILTER DEV_BPF
|
||||
#else
|
||||
#define NBPFILTER 0
|
||||
#endif
|
||||
#define NBPFILTER 1
|
||||
|
||||
#ifdef DEV_PFSYNC
|
||||
#define NPFSYNC DEV_PFSYNC
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
KMOD= pfsync
|
||||
SRCS= if_pfsync.c \
|
||||
opt_pf.h opt_inet.h opt_inet6.h opt_bpf.h
|
||||
opt_pf.h opt_inet.h opt_inet6.h
|
||||
|
||||
CFLAGS+= -I${.CURDIR}/../../contrib/pf
|
||||
SRCS+= bus_if.h device_if.h
|
||||
@ -24,9 +24,6 @@ opt_inet6.h:
|
||||
echo "#define INET6 1" > ${.TARGET}
|
||||
.endif
|
||||
|
||||
opt_bpf.h:
|
||||
echo "#define DEV_BPF 1" > ${.TARGET}
|
||||
|
||||
.if defined(VIMAGE)
|
||||
opt_global.h:
|
||||
echo "#define VIMAGE 1" >> ${.TARGET}
|
||||
|
Loading…
Reference in New Issue
Block a user