diff options
author | 2015-06-16 11:09:39 +0000 | |
---|---|---|
committer | 2015-06-16 11:09:39 +0000 | |
commit | fb492c3701798fad8024e2bd164905788c83671b (patch) | |
tree | c6607492c9afd90379dbfbaae78d4ee451192462 /lib | |
parent | Be more strict about BER and DER terminology. (diff) | |
download | wireguard-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')
0 files changed, 0 insertions, 0 deletions