diff options
author | ugen <ugen@FreeBSD.org> | 1995-01-26 10:26:15 +0000 |
---|---|---|
committer | ugen <ugen@FreeBSD.org> | 1995-01-26 10:26:15 +0000 |
commit | ba397024110945601a28323231d56c4254139fbf (patch) | |
tree | b42f3a01a9ccc85b5a6954973561d894a339ca43 /sys/netinet/ip_fwdef.c | |
parent | 0470b1fa934f8405e56fce730657cdb54d0b4f63 (diff) | |
download | FreeBSD-src-ba397024110945601a28323231d56c4254139fbf.zip FreeBSD-src-ba397024110945601a28323231d56c4254139fbf.tar.gz |
ip_fwdef.c was missing some assignments , and this
caused that bug by which firewall code was not working
if configured into kernel and worked only as lkm.
Now this must be fixed...Sorry guys..
Diffstat (limited to 'sys/netinet/ip_fwdef.c')
-rw-r--r-- | sys/netinet/ip_fwdef.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sys/netinet/ip_fwdef.c b/sys/netinet/ip_fwdef.c index 4b6e6f0..c1050e5 100644 --- a/sys/netinet/ip_fwdef.c +++ b/sys/netinet/ip_fwdef.c @@ -40,8 +40,19 @@ u_short ip_fw_policy=0; struct ip_fw *ip_acct_chain=NULL; +#ifdef IPFIREWALL +int (*ip_fw_chk_ptr)(struct ip *,struct ifnet *,struct ip_fw *)=&ip_fw_chk; +int (*ip_fw_ctl_ptr)(int,struct mbuf *)=&ip_fw_ctl; +#else int (*ip_fw_chk_ptr)(struct ip *,struct ifnet *,struct ip_fw *)=NULL; int (*ip_fw_ctl_ptr)(int,struct mbuf *)=NULL; +#endif + +#ifdef IPACCT +void (*ip_acct_cnt_ptr)(struct ip *,struct ifnet *,struct ip_fw *,int)=&ip_acct_cnt; +int (*ip_acct_ctl_ptr)(int,struct mbuf *)=&ip_acct_ctl; +#else void (*ip_acct_cnt_ptr)(struct ip *,struct ifnet *,struct ip_fw *,int)=NULL; int (*ip_acct_ctl_ptr)(int,struct mbuf *)=NULL; +#endif |