diff options
author | 2019-07-17 19:57:32 +0000 | |
---|---|---|
committer | 2019-07-17 19:57:32 +0000 | |
commit | b7db232637526171ffbac927ba996d052b556350 (patch) | |
tree | 9dc2a7542abcddcc26eb2037d72cfde7e2914d9e /lib/libc/sys | |
parent | backout previous commits for now; some of this is shared with dpb and (diff) | |
download | wireguard-openbsd-b7db232637526171ffbac927ba996d052b556350.tar.xz wireguard-openbsd-b7db232637526171ffbac927ba996d052b556350.zip |
Convert struct rtpcb malloc(9) to pool_get(9). PCB for routing
socket is only used in process context, so pass PR_WAITOK to
pool_init(9). The possible sleep in pool_put(9) should not hurt
as route_detach() is only called by soclose(9). As both pr_attach()
and pr_detach() are always called with kernel lock, PR_RWLOCK is
not needed.
OK mpi@
Diffstat (limited to 'lib/libc/sys')
0 files changed, 0 insertions, 0 deletions