From 9fcc079584f8064468eeb656b6b8d26a5b7e8572 Mon Sep 17 00:00:00 2001 From: Luigi Rizzo Date: Thu, 10 Feb 2000 17:56:01 +0000 Subject: [PATCH] Move definition of fw_enable from ip_fw.c to ip_input.c so we can compile kernels without IPFIREWALL . Reported-by: Robert Watson Approved-by: jordan --- sys/netinet/ip_fw.c | 1 - sys/netinet/ip_input.c | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netinet/ip_fw.c b/sys/netinet/ip_fw.c index 4d43433a1cf1..b2f5aedf648e 100644 --- a/sys/netinet/ip_fw.c +++ b/sys/netinet/ip_fw.c @@ -73,7 +73,6 @@ static int fw_verbose = 1; static int fw_verbose = 0; #endif int fw_one_pass = 1 ; -int fw_enable = 1 ; #ifdef IPFIREWALL_VERBOSE_LIMIT static int fw_verbose_limit = IPFIREWALL_VERBOSE_LIMIT; #else diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c index 2450a1d04c3e..b1eb90d00ee6 100644 --- a/sys/netinet/ip_input.c +++ b/sys/netinet/ip_input.c @@ -174,6 +174,7 @@ SYSCTL_INT(_net_inet_ip, OID_AUTO, stealth, CTLFLAG_RW, /* Firewall hooks */ ip_fw_chk_t *ip_fw_chk_ptr; ip_fw_ctl_t *ip_fw_ctl_ptr; +int fw_enable = 1 ; #ifdef DUMMYNET ip_dn_ctl_t *ip_dn_ctl_ptr;