diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2012-03-30 11:12:47 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2012-03-30 11:12:47 +0000 |
commit | eb5a4037dac961833fc69d3cf98240cad56ec0b8 (patch) | |
tree | 92e0930544aec218b0611f6e6cf6cccfdf2ae9a4 /sys | |
parent | 5dea4f0939f565b7f438e71b0227ea049143f269 (diff) |
actually store the result of the pmtu-route lookup. otherwise we
don't have a MTU to announce in the icmp need fragment packet.
this fixes PMTU-discovery for TCP over IPsec; ok mpf@, fries@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/netinet/ip_output.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/netinet/ip_output.c b/sys/netinet/ip_output.c index 1a6b27271e3..1d2e5862675 100644 --- a/sys/netinet/ip_output.c +++ b/sys/netinet/ip_output.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_output.c,v 1.226 2012/03/17 10:16:41 dlg Exp $ */ +/* $OpenBSD: ip_output.c,v 1.227 2012/03/30 11:12:46 markus Exp $ */ /* $NetBSD: ip_output.c,v 1.28 1996/02/13 23:43:07 christos Exp $ */ /* @@ -660,8 +660,7 @@ sendit: rt->rt_rmx.rmx_mtu = icmp_mtu; if (ro && ro->ro_rt != NULL) { RTFREE(ro->ro_rt); - ro->ro_rt = NULL; - rtalloc1(&ro->ro_dst, RT_REPORT, + ro->ro_rt = rtalloc1(&ro->ro_dst, RT_REPORT, m->m_pkthdr.rdomain); } if (rt_mtucloned) |