diff options
| author | Ugen J.S. Antsilevich <ugen@FreeBSD.org> | 1994-12-12 17:20:55 +0000 |
|---|---|---|
| committer | Ugen J.S. Antsilevich <ugen@FreeBSD.org> | 1994-12-12 17:20:55 +0000 |
| commit | 10a642bb05d81710d20a9d9922e4e30a9cf5d54d (patch) | |
| tree | 773d863fe59cc745780c988f947286cd83a89acb /sys/netinet/ip_input.c | |
| parent | fab9e6db0e3938b83f15e77e422c0e4f7d96822d (diff) | |
Notes
Diffstat (limited to 'sys/netinet/ip_input.c')
| -rw-r--r-- | sys/netinet/ip_input.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c index 085d0ff2d7af..3b2678c30bfb 100644 --- a/sys/netinet/ip_input.c +++ b/sys/netinet/ip_input.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)ip_input.c 8.2 (Berkeley) 1/4/94 - * $Id: ip_input.c,v 1.10 1994/11/08 12:47:29 jkh Exp $ + * $Id: ip_input.c,v 1.11 1994/11/16 10:17:08 jkh Exp $ */ #include <sys/param.h> @@ -240,7 +240,7 @@ next: #ifdef IPFIREWALL if ( ((char *)&(ip->ip_dst.s_addr))[0] != 127 - && !ip_fw_chk(ip,ip_fw_blk_chain) ) { + && !ip_fw_chk(ip,m->m_pkthdr.rcvif,ip_fw_blk_chain) ) { goto bad; } #endif @@ -364,7 +364,7 @@ ours: * Do not convert ip_len to host byte order when * counting,ppl already made it for us before.. */ - ip_acct_cnt(ip,ip_acct_chain,0); + ip_acct_cnt(ip,m->m_pkthdr.rcvif,ip_acct_chain,0); #endif /* @@ -1051,7 +1051,7 @@ ip_forward(m, srcrt) #ifdef IPFIREWALL if ( ((char *)&(ip->ip_dst.s_addr))[0] != 127 - && !ip_fw_chk(ip,ip_fw_fwd_chain) ) { + && !ip_fw_chk(ip,m->m_pkthdr.rcvif,ip_fw_fwd_chain) ) { ipstat.ips_cantforward++; m_freem(m); return; @@ -1139,11 +1139,6 @@ ip_forward(m, srcrt) if (error) ipstat.ips_cantforward++; else { -#ifdef wrong -#ifdef IPACCT - ip_acct_cnt(ip,ip_acct_chain); -#endif -#endif ipstat.ips_forward++; if (type) ipstat.ips_redirectsent++; |
