summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authormpi <mpi@openbsd.org>2015-06-16 11:09:39 +0000
committermpi <mpi@openbsd.org>2015-06-16 11:09:39 +0000
commitfb492c3701798fad8024e2bd164905788c83671b (patch)
treec6607492c9afd90379dbfbaae78d4ee451192462 /lib/libc
parentBe more strict about BER and DER terminology. (diff)
downloadwireguard-openbsd-fb492c3701798fad8024e2bd164905788c83671b.tar.xz
wireguard-openbsd-fb492c3701798fad8024e2bd164905788c83671b.zip
Store a unique ID, an interface index, rather than a pointer to the
receiving interface in the packet header of every mbuf. The interface pointer should now be retrieved when necessary with if_get(). If a NULL pointer is returned by if_get(), the interface has probably been destroy/removed and the mbuf should be freed. Such mechanism will simplify garbage collection of mbufs and limit problems with dangling ifp pointers. Tested by jmatthew@ and krw@, discussed with many. ok mikeb@, bluhm@, dlg@
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions