linux/tools/testing/selftests/net/lib/py
Yuyang Huang 046d883265 selftests: net: verify RTA_DEL_REASON on route deletion
Extend rtnetlink.py to check the reason reported in RTM_DELROUTE:

- expired: route with a 2s lifetime collected by the fib6 GC
  (gc_interval lowered like fib_tests.sh fib6_gc_test does);
- ra-withdrawn: a single RA advertises a default route (router
  lifetime), an on-link prefix route (RFC 4861 prefix information
  option) and a route information option route (RFC 4191), then a
  second RA withdraws all three with zero lifetimes; the RAs are
  crafted over a raw ICMPv6 socket so the test does not depend on an
  external RA tool;
- absence: a userspace deletion request records no cause and must not
  carry the attribute at all.

Signed-off-by: Yuyang Huang <sigefriedhyy@gmail.com>
Link: https://patch.msgid.link/20260808005642.26901-11-sigefriedhyy@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2026-08-13 12:30:28 +02:00
..
__init__.py selftests: net: verify RTA_DEL_REASON on route deletion 2026-08-13 12:30:28 +02:00
bpf.py selftests: net: move common xdp.py functions into lib 2026-03-29 14:09:08 -07:00
consts.py
ksft.py selftests: net: py: add test case filtering and listing 2026-04-12 09:09:09 -07:00
netns.py selftests: drv-net: add userns devmem RX test 2026-06-05 18:10:31 -07:00
nsim.py selftests: net: py: read ip link info about remote dev 2025-11-20 18:19:29 -08:00
utils.py selftests: net: bump default cmd() timeout to 20 seconds 2026-06-30 16:54:37 -07:00
ynl.py selftests: net: verify RTA_DEL_REASON on route deletion 2026-08-13 12:30:28 +02:00