To cache lookups, the policy ipo is linked to its SA tdb. There
authorbluhm <bluhm@openbsd.org>
Tue, 14 Dec 2021 17:50:37 +0000 (17:50 +0000)
committerbluhm <bluhm@openbsd.org>
Tue, 14 Dec 2021 17:50:37 +0000 (17:50 +0000)
commitbdf4635962d13ca33cf9b5a9907b6cdc067c01f7
treeac78c6e1ce8e6c4f1d893f0438b304fefe4a218f
parent7be7ee87aa5aff9ce8f4fffb181f14b149919ad9
To cache lookups, the policy ipo is linked to its SA tdb.  There
is also a list of SAs that belong to a policy.  To make it MP safe,
protect these pointers with a mutex.
tested by Hrvoje Popovski; OK mvs@
sys/net/pfkeyv2.c
sys/netinet/ip_ipsp.c
sys/netinet/ip_ipsp.h
sys/netinet/ip_spd.c