]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
selftests: fib_rule_tests: Fix icmp proto with ipv6
authorDavid Ahern <dsahern@gmail.com>
Mon, 29 Apr 2019 17:30:09 +0000 (10:30 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 May 2019 15:30:17 +0000 (11:30 -0400)
A recent commit returns an error if icmp is used as the ip-proto for
IPv6 fib rules. Update fib_rule_tests to send ipv6-icmp instead of icmp.

Fixes: 5e1a99eae8499 ("ipv4: Add ICMPv6 support when parse route ipproto")
Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/fib_rule_tests.sh

index d4cfb6a7a086d57eda4e0854b8e8ea1fe38d4527..5b92c1f4dc0491169bc782a2a95ee11df2af819e 100755 (executable)
@@ -147,8 +147,8 @@ fib_rule6_test()
 
        fib_check_iproute_support "ipproto" "ipproto"
        if [ $? -eq 0 ]; then
-               match="ipproto icmp"
-               fib_rule6_test_match_n_redirect "$match" "$match" "ipproto icmp match"
+               match="ipproto ipv6-icmp"
+               fib_rule6_test_match_n_redirect "$match" "$match" "ipproto ipv6-icmp match"
        fi
 }