rtable_match() takes constant destination.
authorbluhm <bluhm@openbsd.org>
Fri, 10 Nov 2023 20:05:22 +0000 (20:05 +0000)
committerbluhm <bluhm@openbsd.org>
Fri, 10 Nov 2023 20:05:22 +0000 (20:05 +0000)
commita3e24bb9ae2491ed3d8b80f9e2966ab6dfb77ac6
treec6ec183aab755cd49bc68199cac2b1eeea84c634
parentb202fd010d797e55854dda8967cf671cc179bbe2
rtable_match() takes constant destination.

For implementing MP safe route lookup, it helps to know which
function parameters are constant.  Add some const declarations, so
that the compiler guarantees that sockaddr dst parameter of
rtable_match() does not change.

OK dlg@
sys/net/art.c
sys/net/art.h
sys/net/route.c
sys/net/route.h
sys/net/rtable.c
sys/net/rtable.h
sys/netinet/in.h
sys/netinet6/in6.h