Skip to content

Commit 906bbb1

Browse files
liuhangbingregkh
authored andcommitted
selftests: icmp_redirect: remove from checking for IPv6 route get
[ Upstream commit 24b671a ] 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: ec81053 ("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>
1 parent bb737ec commit 906bbb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/selftests/net/icmp_redirect.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ check_exception()
311311

312312
if [ "$with_redirect" = "yes" ]; then
313313
ip -netns h1 -6 ro get ${H1_VRF_ARG} ${H2_N2_IP6} | \
314-
grep -q "${H2_N2_IP6} from :: via ${R2_LLADDR} dev br0.*${mtu}"
314+
grep -q "${H2_N2_IP6} .*via ${R2_LLADDR} dev br0.*${mtu}"
315315
elif [ -n "${mtu}" ]; then
316316
ip -netns h1 -6 ro get ${H1_VRF_ARG} ${H2_N2_IP6} | \
317317
grep -q "${mtu}"

0 commit comments

Comments
 (0)