diff options
author | glebius <glebius@FreeBSD.org> | 2011-12-22 18:31:47 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2011-12-22 18:31:47 +0000 |
commit | 47a08cdd76b344907889a3a09e3d468689bf8e2c (patch) | |
tree | 2a09b9c408abf3c258df0f1757dc7009f07e7271 /sys | |
parent | b075a9fc193f7a5737de51a153c98cc4b6e2ec24 (diff) | |
download | FreeBSD-src-47a08cdd76b344907889a3a09e3d468689bf8e2c.zip FreeBSD-src-47a08cdd76b344907889a3a09e3d468689bf8e2c.tar.gz |
In FreeBSD we always have bpf(4) API, either real or stub. No need
in detecting presense of 'device bpf'.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/contrib/pf/net/if_pfsync.c | 7 | ||||
-rw-r--r-- | sys/modules/pfsync/Makefile | 5 |
2 files changed, 2 insertions, 10 deletions
diff --git a/sys/contrib/pf/net/if_pfsync.c b/sys/contrib/pf/net/if_pfsync.c index 8614c00..32506ef 100644 --- a/sys/contrib/pf/net/if_pfsync.c +++ b/sys/contrib/pf/net/if_pfsync.c @@ -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 diff --git a/sys/modules/pfsync/Makefile b/sys/modules/pfsync/Makefile index ad08b45..8c9bb1b 100644 --- a/sys/modules/pfsync/Makefile +++ b/sys/modules/pfsync/Makefile @@ -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} |