diff options
author | 2014-05-16 08:21:54 +0000 | |
---|---|---|
committer | 2014-05-16 08:21:54 +0000 | |
commit | 92a6f4201bc3841faef73f0ccf0dc73ab82ef3ce (patch) | |
tree | d3375af7b8e2bcbf6626c7ccd5695489743fcd69 /lib/libc | |
parent | Fix memory leaks upon failure. (diff) | |
download | wireguard-openbsd-92a6f4201bc3841faef73f0ccf0dc73ab82ef3ce.tar.xz wireguard-openbsd-92a6f4201bc3841faef73f0ccf0dc73ab82ef3ce.zip |
Do not put any link-layer address on the per-ifp lists or on the RB-
Tree.
Since interfaces only support one link-layer address accessible via the
if_sadl member, there's no need to have it elsewhere. This improves
various address lookups because the first element of the list, the link-
layer address, won't necessarily be discarded.
Finally remove the empty netmask associated to every link-layer address.
This hack was needed to (ab)use the address & netmask comparison code to
do a strcmp() on the interface name embedded in the sdl_data field.
ok henning@, claudio@
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions