selftests: fib_rule_tests: Fix icmp proto with ipv6 [Linux 5.1]

selftests: fib_rule_tests: Fix icmp proto with ipv6 [Linux 5.1]

This Linux kernel change "selftests: fib_rule_tests: Fix icmp proto with ipv6" is included in the Linux 5.1 release. This change is authored by David Ahern <dsahern [at] gmail.com> on Mon Apr 29 10:30:09 2019 -0700. The commit for this change in Linux stable tree is 15d55ba (patch).

selftests: fib_rule_tests: Fix icmp proto with ipv6

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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>

There are 4 lines of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 tools/testing/selftests/net/fib_rule_tests.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/testing/selftests/net/fib_rule_tests.sh b/tools/testing/selftests/net/fib_rule_tests.sh
index d4cfb6a..5b92c1f 100755
--- a/tools/testing/selftests/net/fib_rule_tests.sh
+++ b/tools/testing/selftests/net/fib_rule_tests.sh
@@ -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
 }

Leave a Reply

Your email address will not be published. Required fields are marked *