| version 1.237, 2006/12/06 00:38:16 |
version 1.238, 2006/12/06 00:39:56 |
| Line 1935 ip_forward(struct mbuf *m, int srcrt) |
|
| Line 1935 ip_forward(struct mbuf *m, int srcrt) |
|
| } |
} |
| } |
} |
| |
|
| error = ip_output(m, (struct mbuf *)0, &ipforward_rt, |
error = ip_output(m, NULL, &ipforward_rt, |
| (IP_FORWARDING | (ip_directedbcast ? IP_ALLOWBROADCAST : 0)), |
(IP_FORWARDING | (ip_directedbcast ? IP_ALLOWBROADCAST : 0)), |
| (struct ip_moptions *)NULL, (struct socket *)NULL); |
(struct ip_moptions *)NULL, (struct socket *)NULL); |
| |
|
| Line 1978 ip_forward(struct mbuf *m, int srcrt) |
|
| Line 1978 ip_forward(struct mbuf *m, int srcrt) |
|
| type = ICMP_UNREACH; |
type = ICMP_UNREACH; |
| code = ICMP_UNREACH_NEEDFRAG; |
code = ICMP_UNREACH_NEEDFRAG; |
| #if !defined(IPSEC) && !defined(FAST_IPSEC) |
#if !defined(IPSEC) && !defined(FAST_IPSEC) |
| if (ipforward_rt.ro_rt) |
if (ipforward_rt.ro_rt != NULL) |
| destmtu = ipforward_rt.ro_rt->rt_ifp->if_mtu; |
destmtu = ipforward_rt.ro_rt->rt_ifp->if_mtu; |
| #else |
#else |
| /* |
/* |
| Line 1987 ip_forward(struct mbuf *m, int srcrt) |
|
| Line 1987 ip_forward(struct mbuf *m, int srcrt) |
|
| * tunnel MTU = if MTU - sizeof(IP) - ESP/AH hdrsiz |
* tunnel MTU = if MTU - sizeof(IP) - ESP/AH hdrsiz |
| * XXX quickhack!!! |
* XXX quickhack!!! |
| */ |
*/ |
| if (ipforward_rt.ro_rt) { |
if (ipforward_rt.ro_rt != NULL) { |
| struct secpolicy *sp; |
struct secpolicy *sp; |
| int ipsecerror; |
int ipsecerror; |
| size_t ipsechdr; |
size_t ipsechdr; |