diff options
author | andre <andre@FreeBSD.org> | 2004-08-27 15:16:24 +0000 |
---|---|---|
committer | andre <andre@FreeBSD.org> | 2004-08-27 15:16:24 +0000 |
commit | d243747d92c4cacce93fc3a982655dc80d4886d4 (patch) | |
tree | 2f8a616b3f6fffde5d0da52a85305bbcf5376c9f /sys/netinet/ip_fw_pfil.c | |
parent | dd8d6f138f3ed1089978b76d0d13a754a30b12f4 (diff) | |
download | FreeBSD-src-d243747d92c4cacce93fc3a982655dc80d4886d4.zip FreeBSD-src-d243747d92c4cacce93fc3a982655dc80d4886d4.tar.gz |
Always compile PFIL_HOOKS into the kernel and remove the associated kernel
compile option. All FreeBSD packet filters now use the PFIL_HOOKS API and
thus it becomes a standard part of the network stack.
If no hooks are connected the entire packet filter hooks section and related
activities are jumped over. This removes any performance impact if no hooks
are active.
Both OpenBSD and DragonFlyBSD have integrated PFIL_HOOKS permanently as well.
Diffstat (limited to 'sys/netinet/ip_fw_pfil.c')
-rw-r--r-- | sys/netinet/ip_fw_pfil.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/netinet/ip_fw_pfil.c b/sys/netinet/ip_fw_pfil.c index 0f7d544..77ba4b6 100644 --- a/sys/netinet/ip_fw_pfil.c +++ b/sys/netinet/ip_fw_pfil.c @@ -30,15 +30,11 @@ #include "opt_ipfw.h" #include "opt_ipdn.h" #include "opt_ipdivert.h" -#include "opt_pfil_hooks.h" #include "opt_inet.h" #ifndef INET #error IPFIREWALL requires INET. #endif /* INET */ -#if !defined(PFIL_HOOKS) -#error IPFIREWALL requires PFIL_HOOKS. -#endif -#endif +#endif /* KLD_MODULE */ #include <sys/param.h> #include <sys/systm.h> |