mirror of
https://github.com/torvalds/linux.git
synced 2024-11-08 13:11:45 +00:00
ipv4: Don't increase PMTU with Datagram Too Big message.
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> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
a1a0b558ce
commit
3cdaa5be9e
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user