OSDN Git Service

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)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Jul 2021 20:45:30 +0000 (13:45 -0700)
commit0e02bf5de46ae30074a2e1a8194a422a84482a1a
treeeac15e959ca81c07d3b9cab612c63541314d85d7
parent24b671aad4eae423e1abf5b7f08d9a5235458b8d
selftests: icmp_redirect: IPv6 PMTU info should be cleared after redirect

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>
tools/testing/selftests/net/icmp_redirect.sh