]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
UBUNTU: SAUCE: selftests: fib_tests: assign address to dummy1 for rp_filter tests
authorSeth Forshee <seth.forshee@canonical.com>
Wed, 21 Aug 2019 20:09:45 +0000 (15:09 -0500)
committerAndrea Righi <andrea.righi@canonical.com>
Mon, 15 Feb 2021 07:25:45 +0000 (08:25 +0100)
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 <seth.forshee@canonical.com>
tools/testing/selftests/net/fib_tests.sh

index 2b5707738609ef313e533c78492e25bbc6a02313..78a8cf9686ed02c2da78280612ed8538f59f2b41 100755 (executable)
@@ -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