Use local copy of `ps_rtableid' in ip{,6}_ctloutput() and mark
authormvs <mvs@openbsd.org>
Wed, 12 May 2021 08:09:33 +0000 (08:09 +0000)
committermvs <mvs@openbsd.org>
Wed, 12 May 2021 08:09:33 +0000 (08:09 +0000)
commitf74da371592dbe1e09495f48e79e77ec170a2c46
tree8e9af97cacf959a1d65ed3c94ef7715809fc880c
parent3bab2c99c421fa62ce5cc21084452b2075f81412
Use local copy of `ps_rtableid' in ip{,6}_ctloutput() and mark
`ps_rtableid' as atomic. This allows us to unlock setrtable(2).

ok claudio@ mpi@
sys/netinet/ip_output.c
sys/netinet6/ip6_output.c
sys/sys/proc.h