freebsd-nq/tests/sys/netinet6
Alexander V. Chernikov 34a5582c47 Bring back redirect route expiration.
Redirect (and temporal) route expiration was broken a while ago.
This change brings route expiration back, with unified IPv4/IPv6 handling code.

It introduces net.inet.icmp.redirtimeout sysctl, allowing to set
 an expiration time for redirected routes. It defaults to 10 minutes,
 analogues with net.inet6.icmp6.redirtimeout.

Implementation uses separate file, route_temporal.c, as route.c is already
 bloated with tons of different functions.
Internally, expiration is implemented as an per-rnh callout scheduled when
 route with non-zero rt_expire time is added or rt_expire is changed.
 It does not add any overhead when no temporal routes are present.

Callout traverses entire routing tree under wlock, scheduling expired routes
 for deletion and calculating the next time it needs to be run. The rationale
 for such implemention is the following: typically workloads requiring large
 amount of routes have redirects turned off already, while the systems with
 small amount of routes will not inhibit large overhead during tree traversal.

This changes also fixes netstat -rn display of route expiration time, which
 has been broken since the conversion from kread() to sysctl.

Reviewed by:	bz
MFC after:	3 weeks
Differential Revision:	https://reviews.freebsd.org/D23075
2020-01-22 13:53:18 +00:00
..
frag6 frag6: properly handle atomic fragments according to RFCs. 2019-11-08 14:36:44 +00:00
exthdr.py ip6 tests: Add very simplistic extension header tests 2019-11-05 10:59:33 +00:00
exthdr.sh ipv6 tests 2019-11-18 21:54:29 +00:00
Makefile Bring back redirect route expiration. 2020-01-22 13:53:18 +00:00
mld.py icmpv6: Fix mbuf change in mld 2019-11-18 21:59:47 +00:00
mld.sh icmpv6: Fix mbuf change in mld 2019-11-18 21:59:47 +00:00
redirect.py Bring back redirect route expiration. 2020-01-22 13:53:18 +00:00
redirect.sh Bring back redirect route expiration. 2020-01-22 13:53:18 +00:00
scapyi386.py IPv6 tests: test case for scapy bpf parsing bug 2019-11-06 14:43:35 +00:00
scapyi386.sh Reenable netinet6 and netpfil tests on i386, net/scapy 2.4.3_2 contains the fix 2019-11-08 18:56:02 +00:00