diff options
author | Hangbin Liu <liuhangbin@gmail.com> | 2021-07-07 16:15:29 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-07-07 13:45:30 -0700 |
commit | 24b671aad4eae423e1abf5b7f08d9a5235458b8d (patch) | |
tree | 901115356c692cc2a0cdc6fbfabb9065ddf52af3 /tools/testing | |
parent | eca81f09145d765c21dd8fb1ba5d874ca255c32c (diff) | |
download | lwn-24b671aad4eae423e1abf5b7f08d9a5235458b8d.tar.gz lwn-24b671aad4eae423e1abf5b7f08d9a5235458b8d.zip |
selftests: icmp_redirect: remove from checking for IPv6 route get
If the kernel doesn't enable option CONFIG_IPV6_SUBTREES, the RTA_SRC
info will not be exported to userspace in rt6_fill_node(). And ip cmd will
not print "from ::" to the route output. So remove this check.
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>
Diffstat (limited to 'tools/testing')
-rwxr-xr-x | tools/testing/selftests/net/icmp_redirect.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/net/icmp_redirect.sh b/tools/testing/selftests/net/icmp_redirect.sh index c19ecc6a8614..3a111ac1edc3 100755 --- a/tools/testing/selftests/net/icmp_redirect.sh +++ b/tools/testing/selftests/net/icmp_redirect.sh @@ -315,7 +315,7 @@ check_exception() if [ "$with_redirect" = "yes" ]; then ip -netns h1 -6 ro get ${H1_VRF_ARG} ${H2_N2_IP6} | \ - grep -q "${H2_N2_IP6} from :: via ${R2_LLADDR} dev br0.*${mtu}" + grep -q "${H2_N2_IP6} .*via ${R2_LLADDR} dev br0.*${mtu}" elif [ -n "${mtu}" ]; then ip -netns h1 -6 ro get ${H1_VRF_ARG} ${H2_N2_IP6} | \ grep -q "${mtu}" |