Support the net.inet.ip.fw.enable variable, part of

the recent ipfw modifications.

Approved-by: jordan
This commit is contained in:
Luigi Rizzo 2000-02-10 14:19:53 +00:00
parent 03c612662b
commit 6bc748b057
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=57114
2 changed files with 3 additions and 3 deletions

View File

@ -390,7 +390,7 @@ ip_input(struct mbuf *m)
ip = mtod(m = m1, struct ip *);
}
#endif
if (ip_fw_chk_ptr) {
if (fw_enable && ip_fw_chk_ptr) {
#ifdef IPFIREWALL_FORWARD
/*
* If we've been forwarded from the output side, then

View File

@ -176,7 +176,7 @@ ip_output(m0, opt, ro, flags, imo)
/*
* the packet was already tagged, so part of the
* processing was already done, and we need to go down.
* * Get parameters from the header.
* Get parameters from the header.
*/
rule = (struct ip_fw_chain *)(m->m_data) ;
opt = NULL ;
@ -462,7 +462,7 @@ ip_output(m0, opt, ro, flags, imo)
/*
* Check with the firewall...
*/
if (ip_fw_chk_ptr) {
if (fw_enable && ip_fw_chk_ptr) {
struct sockaddr_in *old = dst;
off = (*ip_fw_chk_ptr)(&ip,