summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ip_fw_pfil.c
diff options
context:
space:
mode:
authorandre <andre@FreeBSD.org>2004-08-19 18:38:23 +0000
committerandre <andre@FreeBSD.org>2004-08-19 18:38:23 +0000
commit5f83f24499d31424d8c4cb2da78a2005d97db566 (patch)
tree7a5b66a3c81b50412facdad235f1701adaee3893 /sys/netinet/ip_fw_pfil.c
parenta0e3d1c15188431480351cf4c6f8f8f8b449a6bd (diff)
downloadFreeBSD-src-5f83f24499d31424d8c4cb2da78a2005d97db566.zip
FreeBSD-src-5f83f24499d31424d8c4cb2da78a2005d97db566.tar.gz
Give a useful error message if someone tries to compile IPFIREWALL into the
kernel without specifying PFIL_HOOKS as well.
Diffstat (limited to 'sys/netinet/ip_fw_pfil.c')
-rw-r--r--sys/netinet/ip_fw_pfil.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/netinet/ip_fw_pfil.c b/sys/netinet/ip_fw_pfil.c
index 234fd7d..3db809a 100644
--- a/sys/netinet/ip_fw_pfil.c
+++ b/sys/netinet/ip_fw_pfil.c
@@ -29,10 +29,14 @@
#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(KLD_MODULE) && !defined(PFIL_HOOKS)
+#error IPFIREWALL requires PFIL_HOOKS.
+#endif
#include <sys/param.h>
#include <sys/systm.h>
OpenPOWER on IntegriCloud