summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ip_fw.h
diff options
context:
space:
mode:
authorluigi <luigi@FreeBSD.org>2009-06-05 13:44:30 +0000
committerluigi <luigi@FreeBSD.org>2009-06-05 13:44:30 +0000
commit1384b62c4ba2ec9807b625311f416059f3a7aac0 (patch)
treec69eecd8f875c47b7a4ba27f5a37ac99ee98e78f /sys/netinet/ip_fw.h
parent2e85daee53850ca1d9c8acfa556ce08d31c9515a (diff)
downloadFreeBSD-src-1384b62c4ba2ec9807b625311f416059f3a7aac0.zip
FreeBSD-src-1384b62c4ba2ec9807b625311f416059f3a7aac0.tar.gz
More cleanup in preparation of ipfw relocation (no actual code change):
+ move ipfw and dummynet hooks declarations to raw_ip.c (definitions in ip_var.h) same as for most other global variables. This removes some dependencies from ip_input.c; + remove the IPFW_LOADED macro, just test ip_fw_chk_ptr directly; + remove the DUMMYNET_LOADED macro, just test ip_dn_io_ptr directly; + move ip_dn_ruledel_ptr to ip_fw2.c which is the only file using it; To be merged together with rev 193497 MFC after: 5 days
Diffstat (limited to 'sys/netinet/ip_fw.h')
-rw-r--r--sys/netinet/ip_fw.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/sys/netinet/ip_fw.h b/sys/netinet/ip_fw.h
index c9fb9aa..a137cee 100644
--- a/sys/netinet/ip_fw.h
+++ b/sys/netinet/ip_fw.h
@@ -636,9 +636,6 @@ void ipfw_destroy(void);
void ipfw_nat_destroy(void);
#endif
-typedef int ip_fw_ctl_t(struct sockopt *);
-extern ip_fw_ctl_t *ip_fw_ctl_ptr;
-
#ifdef VIMAGE_GLOBALS
extern int fw_one_pass;
extern int fw_enable;
@@ -647,11 +644,6 @@ extern int fw6_enable;
#endif
#endif
-/* For kernel ipfw_ether and ipfw_bridge. */
-typedef int ip_fw_chk_t(struct ip_fw_args *args);
-extern ip_fw_chk_t *ip_fw_chk_ptr;
-#define IPFW_LOADED (ip_fw_chk_ptr != NULL)
-
struct ip_fw_chain {
struct ip_fw *rules; /* list of rules */
struct ip_fw *reap; /* list of rules to reap */
OpenPOWER on IntegriCloud