diff options
| author | Ugen J.S. Antsilevich <ugen@FreeBSD.org> | 1995-01-26 10:26:15 +0000 |
|---|---|---|
| committer | Ugen J.S. Antsilevich <ugen@FreeBSD.org> | 1995-01-26 10:26:15 +0000 |
| commit | 2b43c8c9db7241c6ac7de38a27f5f54ce070d080 (patch) | |
| tree | b42f3a01a9ccc85b5a6954973561d894a339ca43 /sys/netinet | |
| parent | fd4a3c0b4233f2d27b5f78d7dc0946e233c9f992 (diff) | |
Notes
Diffstat (limited to 'sys/netinet')
| -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 4b6e6f06cbddb..c1050e5cffbfa 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 |
