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..
This commit is contained in:
Ugen J.S. Antsilevich 1995-01-26 10:26:15 +00:00
parent fd4a3c0b42
commit 2b43c8c9db

View File

@ -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