]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb5418f64dbc9f0b07844b164d6c08d807f445181
tree5b9d4397533c19fa0bbf4c2737a49b1b2a719bcd
parent7c0d80225cc9b3ca189168ebc310afcde356a93c
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]