Make the route cache aware of multipath routing.
authorbluhm <bluhm@openbsd.org>
Thu, 22 Feb 2024 14:25:58 +0000 (14:25 +0000)
committerbluhm <bluhm@openbsd.org>
Thu, 22 Feb 2024 14:25:58 +0000 (14:25 +0000)
commitcaa7f414ec6e1ce31591b7ba9152b8bdb34ac389
tree886600ab684a8cc20046c8249a6d67fd76ee9a03
parent609e0b1cb9612e1d3b48846a4c331e5d9920fe04
Make the route cache aware of multipath routing.

Pass source address to route_cache() and store it in struct route.
Cached multipath routes are only valid if source address matches.
If sysctl multipath changes, increase route generation number.

OK claudio@
sys/net/route.c
sys/net/route.h
sys/netinet/in_pcb.c
sys/netinet/ip_input.c
sys/netinet/ip_output.c
sys/netinet6/in6_pcb.c
sys/netinet6/in6_src.c
sys/netinet6/ip6_forward.c
sys/netinet6/ip6_input.c
sys/netinet6/ip6_output.c