]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
committerPaolo Pisati <paolo.pisati@canonical.com>
Tue, 2 Nov 2021 07:24:46 +0000 (08:24 +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 5abe92d55b696af2f45291752d48c03f378f3d96..f3e93a9197e13fe31051e0f2d695d5f7d5f2ecf8 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