* [PATCH] ipv4: Don't increase PMTU with Datagram Too Big message.
@ 2015-01-29 8:09 Li Wei
2015-01-29 23:29 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Li Wei @ 2015-01-29 8:09 UTC (permalink / raw)
To: davem; +Cc: netdev, Li Wei
RFC 1191 said, "a host MUST not increase its estimate of the Path
MTU in response to the contents of a Datagram Too Big message."
Signed-off-by: Li Wei <lw@cn.fujitsu.com>
---
net/ipv4/route.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/net/ipv4/route.c b/net/ipv4/route.c
index d58dd0e..52e1f2b 100644
--- a/net/ipv4/route.c
+++ b/net/ipv4/route.c
@@ -966,6 +966,9 @@ static void __ip_rt_update_pmtu(struct rtable *rt, struct flowi4 *fl4, u32 mtu)
if (dst->dev->mtu < mtu)
return;
+ if (rt->rt_pmtu && rt->rt_pmtu < mtu)
+ return;
+
if (mtu < ip_rt_min_pmtu)
mtu = ip_rt_min_pmtu;
--
2.1.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ipv4: Don't increase PMTU with Datagram Too Big message.
2015-01-29 8:09 [PATCH] ipv4: Don't increase PMTU with Datagram Too Big message Li Wei
@ 2015-01-29 23:29 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2015-01-29 23:29 UTC (permalink / raw)
To: lw; +Cc: netdev
From: Li Wei <lw@cn.fujitsu.com>
Date: Thu, 29 Jan 2015 16:09:03 +0800
> RFC 1191 said, "a host MUST not increase its estimate of the Path
> MTU in response to the contents of a Datagram Too Big message."
>
> Signed-off-by: Li Wei <lw@cn.fujitsu.com>
Applied, thank you.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-01-29 23:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-29 8:09 [PATCH] ipv4: Don't increase PMTU with Datagram Too Big message Li Wei
2015-01-29 23:29 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).