summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authormpi <mpi@openbsd.org>2014-05-16 08:21:54 +0000
committermpi <mpi@openbsd.org>2014-05-16 08:21:54 +0000
commit92a6f4201bc3841faef73f0ccf0dc73ab82ef3ce (patch)
treed3375af7b8e2bcbf6626c7ccd5695489743fcd69 /lib/libc
parentFix memory leaks upon failure. (diff)
downloadwireguard-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