summaryrefslogtreecommitdiffstats
path: root/lib/libssl
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2015-09-09 16:01:10 +0000
committerdlg <dlg@openbsd.org>2015-09-09 16:01:10 +0000
commit1fce3e48ac9ca1ac06ad24ec6c682fb099a11e89 (patch)
tree2ebbf41526189d304b3cf518362426974a1da810 /lib/libssl
parentfix a mistake in the predefined string passed to -width (it is (diff)
downloadwireguard-openbsd-1fce3e48ac9ca1ac06ad24ec6c682fb099a11e89.tar.xz
wireguard-openbsd-1fce3e48ac9ca1ac06ad24ec6c682fb099a11e89.zip
introduce reference counts for interfaces (ie, struct ifnet *ifp).
if_get can get a reference to an ifp, but it never releases that reference. this provides an if_put function that can be used to decrement the refcount. we cannot come up with a scheme for letting the network stack run on one (or many) cpus while ioctls are pulling interfaces down on another cpu without refcounts for the interfaces. if_put is going in now so we can go through the stack and put the necessary calls to it in, and then we'll backfill this implementation to actually check the refcounts when the interface detaches. ok mpi@ mikeb@ claudio@
Diffstat (limited to 'lib/libssl')
0 files changed, 0 insertions, 0 deletions