diff options
author | 2015-09-12 19:36:37 +0000 | |
---|---|---|
committer | 2015-09-12 19:36:37 +0000 | |
commit | ee813dae6f2b153e0a7f7d8c222aae5f1ad7d30c (patch) | |
tree | 3d341f445b87f1304c84f6bf8723f0f0ae39b686 /lib/libssl/ssl_lib.c | |
parent | Nuke SSLEAY_CONF -- a backwards compatibility environment variable that (diff) | |
download | wireguard-openbsd-ee813dae6f2b153e0a7f7d8c222aae5f1ad7d30c.tar.xz wireguard-openbsd-ee813dae6f2b153e0a7f7d8c222aae5f1ad7d30c.zip |
introduce SRPs to the interface index maps to make if_get() mpsafe.
each index in the ifidx map is now an SRP that points at each
interfaces struct ifnet.
because the map needs to be grown at run time as interfaces are
added to the system, we now use an SRP to gain access to the map.
if_get enters the idx map and follows it to the ifnet pointer. if
an interface exists at that index it gets adds a refcount before
leaving the ifp SRP.
modifications to the map pointer and the interface pointers are
serialised by the kernel lock.
ok mpi@ claudio@
Diffstat (limited to 'lib/libssl/ssl_lib.c')
0 files changed, 0 insertions, 0 deletions