Use the route generation number also for IPv6.
authorbluhm <bluhm@openbsd.org>
Wed, 7 Feb 2024 23:40:40 +0000 (23:40 +0000)
committerbluhm <bluhm@openbsd.org>
Wed, 7 Feb 2024 23:40:40 +0000 (23:40 +0000)
commit2272331414b6a4e4ef65840dbaf691efe5519f08
tree8561ff6be44fafb69bc09f7274116558114e210e
parentad489b3d674b1d1793d828713cbdfc4dadfb935c
Use the route generation number also for IPv6.

Implement route6_cache() to check whether the cached route is still
valid and otherwise fill caching parameter of struct route_in6.
Also count cache hits and misses in netstat.  in_pcbrtentry() uses
route cache now.

OK claudio@
sys/net/route.c
sys/netinet/in_pcb.c
sys/netinet6/in6.h
sys/netinet6/in6_pcb.c
sys/netinet6/in6_src.c
sys/netinet6/ip6_forward.c
sys/netinet6/ip6_output.c
sys/netinet6/ip6_var.h