linux/tools/testing/selftests/net/lib
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
..
py selftests: net: verify RTA_DEL_REASON on route deletion 2026-08-13 12:30:28 +02:00
sh selftests: defer: Introduce DEFER_PAUSE_ON_FAIL 2025-09-11 19:02:51 -07:00
.gitignore selftests: net: move gro to lib for HW vs SW reuse 2026-03-19 16:57:28 -07:00
csum.c selftests: net: csum: Fix printk format in recv_get_packet_csum_status() 2026-01-19 10:09:47 -08:00
gro.c selftests: drv-net: gro: signal over-coalescing more reliably 2026-06-09 12:24:04 +02:00
ksft_setup_loopback.sh selftests: net: remove old setup_* scripts 2025-11-20 18:19:31 -08:00
ksft.h selftests: net: Fix build warnings 2025-12-10 01:11:12 -08:00
Makefile selftests: net: move gro to lib for HW vs SW reuse 2026-03-19 16:57:28 -07:00
xdp_dummy.bpf.c selftests: drv-net: add xdp cases for ping.py 2025-03-10 13:31:12 -07:00
xdp_helper.c selftests: net: retry when bind returns EBUSY in xdp_helper 2025-04-28 15:49:10 -07:00
xdp_metadata.bpf.c selftests: drv-net: xdp: Add rss_hash metadata tests 2026-03-29 14:09:08 -07:00
xdp_native.bpf.c selftests: net: Fix checksums in xdp_native 2026-05-21 07:47:00 -07:00