From 6654b298fd383f00b7d687617b619b0a5fdfec3f Mon Sep 17 00:00:00 2001 From: Seth Forshee Date: Wed, 21 Aug 2019 15:09:45 -0500 Subject: [PATCH] UBUNTU: SAUCE: selftests: fib_tests: assign address to dummy1 for rp_filter tests The rp_filter test tries to ping using the dummy1 interface without assigning it an IP address. Give the interface an IP address so the tests will pass. Signed-off-by: Seth Forshee --- tools/testing/selftests/net/fib_tests.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/net/fib_tests.sh b/tools/testing/selftests/net/fib_tests.sh index 84205c3a55eb..39d46e6a4a2c 100755 --- a/tools/testing/selftests/net/fib_tests.sh +++ b/tools/testing/selftests/net/fib_tests.sh @@ -449,6 +449,7 @@ fib_rp_filter_test() $IP link add dummy1 type dummy $IP link set dummy1 address 52:54:00:6a:c7:5e $IP link set dev dummy1 up + $IP address add 192.0.2.1/24 dev dummy1 $NS_EXEC sysctl -qw net.ipv4.conf.all.rp_filter=1 $NS_EXEC sysctl -qw net.ipv4.conf.all.accept_local=1 $NS_EXEC sysctl -qw net.ipv4.conf.all.route_localnet=1 -- 2.39.5