| version 1.219.2.2, 2005/11/02 11:58:11 |
version 1.220, 2005/10/23 18:38:53 |
| Line 1853 ip_forward(struct mbuf *m, int srcrt) |
|
| Line 1853 ip_forward(struct mbuf *m, int srcrt) |
|
| icmp_error(m, ICMP_TIMXCEED, ICMP_TIMXCEED_INTRANS, dest, 0); |
icmp_error(m, ICMP_TIMXCEED, ICMP_TIMXCEED_INTRANS, dest, 0); |
| return; |
return; |
| } |
} |
| |
ip->ip_ttl -= IPTTLDEC; |
| |
|
| sin = satosin(&ipforward_rt.ro_dst); |
sin = satosin(&ipforward_rt.ro_dst); |
| if ((rt = ipforward_rt.ro_rt) == 0 || |
if ((rt = ipforward_rt.ro_rt) == 0 || |
| Line 1882 ip_forward(struct mbuf *m, int srcrt) |
|
| Line 1883 ip_forward(struct mbuf *m, int srcrt) |
|
| if (mcopy) |
if (mcopy) |
| mcopy = m_pullup(mcopy, ip->ip_hl << 2); |
mcopy = m_pullup(mcopy, ip->ip_hl << 2); |
| |
|
| ip->ip_ttl -= IPTTLDEC; |
|
| |
|
| /* |
/* |
| * If forwarding packet using same interface that it came in on, |
* If forwarding packet using same interface that it came in on, |
| * perhaps should send a redirect to sender to shortcut a hop. |
* perhaps should send a redirect to sender to shortcut a hop. |