Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3cdaa5be authored by Li Wei's avatar Li Wei Committed by David S. Miller
Browse files

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: default avatarLi Wei <lw@cn.fujitsu.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a1a0b558
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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;