]> git.itanic.dy.fi Git - linux-stable/commit
selftests: icmp_redirect: IPv6 PMTU info should be cleared after redirect
authorHangbin Liu <liuhangbin@gmail.com>
Wed, 7 Jul 2021 08:15:30 +0000 (16:15 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Jul 2021 11:30:53 +0000 (13:30 +0200)
commita37ca2a076ec7c6869824c33c3f15aab5fa16720
tree25b8a94e3e2948b874cb1d67f73a1ddd3eec8bc4
parent05364a2794fb56aeaf072f9ac1cd4db15c7196d2
selftests: icmp_redirect: IPv6 PMTU info should be cleared after redirect

[ Upstream commit 0e02bf5de46ae30074a2e1a8194a422a84482a1a ]

After redirecting, it's already a new path. So the old PMTU info should
be cleared. The IPv6 test "mtu exception plus redirect" should only
has redirect info without old PMTU.

The IPv4 test can not be changed because of legacy.

Fixes: ec8105352869 ("selftests: Add redirect tests")
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/net/icmp_redirect.sh