| version 1.223, 2005/12/24 20:45:09 |
version 1.223.2.1, 2006/03/01 09:28:47 |
| Line 1839 ip_forward(struct mbuf *m, int srcrt) |
|
| Line 1839 ip_forward(struct mbuf *m, int srcrt) |
|
| |
|
| dest = 0; |
dest = 0; |
| #ifdef DIAGNOSTIC |
#ifdef DIAGNOSTIC |
| if (ipprintfs) |
if (ipprintfs) { |
| printf("forward: src %2.2x dst %2.2x ttl %x\n", |
printf("forward: src %s ", inet_ntoa(ip->ip_src)); |
| ntohl(ip->ip_src.s_addr), |
printf("dst %s ttl %x\n", inet_ntoa(ip->ip_dst), ip->ip_ttl); |
| ntohl(ip->ip_dst.s_addr), ip->ip_ttl); |
} |
| #endif |
#endif |
| if (m->m_flags & (M_BCAST|M_MCAST) || in_canforward(ip->ip_dst) == 0) { |
if (m->m_flags & (M_BCAST|M_MCAST) || in_canforward(ip->ip_dst) == 0) { |
| ipstat.ips_cantforward++; |
ipstat.ips_cantforward++; |