diff options
author | luigi <luigi@FreeBSD.org> | 2009-03-02 22:11:48 +0000 |
---|---|---|
committer | luigi <luigi@FreeBSD.org> | 2009-03-02 22:11:48 +0000 |
commit | 6580dcca6013ff2e172aa8d02ab13b5781b4439d (patch) | |
tree | 7cf3ea9b6fbe15db5d0938bbf18808a185c794d8 /sys/netinet | |
parent | e17295cf6f26850137ec6961ede7e51335800027 (diff) | |
download | FreeBSD-src-6580dcca6013ff2e172aa8d02ab13b5781b4439d.zip FreeBSD-src-6580dcca6013ff2e172aa8d02ab13b5781b4439d.tar.gz |
fw_debug has been unused for ages, so remove it from the list
of sysctl_variables.
I would also remove it from the VNET record but I am unsure if
there is any ABI issue -- so for the time being just mark it as
unused in ip_fw.h, and then we will collect the garbage at some
appropriate time in the future.
MFC after: 3 days
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/ip_fw.h | 2 | ||||
-rw-r--r-- | sys/netinet/ip_fw2.c | 4 |
2 files changed, 1 insertions, 5 deletions
diff --git a/sys/netinet/ip_fw.h b/sys/netinet/ip_fw.h index 5ee1632..0cf1a52 100644 --- a/sys/netinet/ip_fw.h +++ b/sys/netinet/ip_fw.h @@ -693,7 +693,7 @@ struct vnet_ipfw { int _fw_deny_unknown_exthdrs; int _fw_verbose; int _verbose_limit; - int _fw_debug; + int _fw_debug; /* actually unused */ int _autoinc_step; ipfw_dyn_rule **_ipfw_dyn_v; struct ip_fw_chain _layer3_chain; diff --git a/sys/netinet/ip_fw2.c b/sys/netinet/ip_fw2.c index f7608ac..1405a27 100644 --- a/sys/netinet/ip_fw2.c +++ b/sys/netinet/ip_fw2.c @@ -165,7 +165,6 @@ struct table_entry { }; #ifdef VIMAGE_GLOBALS -static int fw_debug; static int autoinc_step; #endif @@ -181,8 +180,6 @@ SYSCTL_V_INT(V_NET, vnet_ipfw, _net_inet_ip_fw, OID_AUTO, autoinc_step, SYSCTL_V_INT(V_NET, vnet_inet, _net_inet_ip_fw, OID_AUTO, one_pass, CTLFLAG_RW | CTLFLAG_SECURE3, fw_one_pass, 0, "Only do a single pass through ipfw when using dummynet(4)"); -SYSCTL_V_INT(V_NET, vnet_ipfw, _net_inet_ip_fw, OID_AUTO, debug, CTLFLAG_RW, - fw_debug, 0, "Enable printing of debug ip_fw statements"); SYSCTL_V_INT(V_NET, vnet_ipfw, _net_inet_ip_fw, OID_AUTO, verbose, CTLFLAG_RW | CTLFLAG_SECURE3, fw_verbose, 0, "Log matches to ipfw rules"); @@ -4535,7 +4532,6 @@ ipfw_init(void) struct ip_fw default_rule; int error; - V_fw_debug = 1; V_autoinc_step = 100; /* bounded to 1..1000 in add_rule() */ V_ipfw_dyn_v = NULL; |