selftests/net: test nexthop without gw
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Wed, 13 Jul 2022 11:48:53 +0000 (13:48 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 14 Jul 2022 12:41:19 +0000 (14:41 +0200)
commitcd72e61bad145a0968df85193dcf1261cb66c4c6
tree5b9d4397533c19fa0bbf4c2737a49b1b2a719bcd
parent747c14307214b55dbd8250e1ab44cad8305756f1
selftests/net: test nexthop without gw

This test implement the scenario described in the commit
"ip: fix dflt addr selection for connected nexthop".
The test configures a nexthop object with an output device only (no gateway
address) and a route that uses this nexthop. The goal is to check if the
kernel selects a valid source address.

Link: https://lore.kernel.org/netdev/20220712095545.10947-1-nicolas.dichtel@6wind.com/
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Link: https://lore.kernel.org/r/20220713114853.29406-2-nicolas.dichtel@6wind.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
tools/testing/selftests/net/Makefile
tools/testing/selftests/net/fib_nexthop_nongw.sh [new file with mode: 0755]