summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2005-06-07 18:43:31 +0000
committerclaudio <claudio@openbsd.org>2005-06-07 18:43:31 +0000
commit9d7f7d4bbf8be621ebce303efde285bac3673448 (patch)
treeed9fb72ec6a66ce82da20e70551a205e22ecd0f9 /lib/libc
parentintroduce a default "external" interface group, containing the interface(s) (diff)
downloadwireguard-openbsd-9d7f7d4bbf8be621ebce303efde285bac3673448.tar.xz
wireguard-openbsd-9d7f7d4bbf8be621ebce303efde285bac3673448.zip
Fix the mask2prefixlen6() function once and for all. Netmasks are stored in
an own AF independent radix tree. So the passed sockaddrs are often smaller than the actual AF specific struct, especially sockaddr_in6. So the crap Henning saw in the mask was acctually the next struct sockaddr that was passed in the routing message. So pass the struct sockaddr_in6 and compare only the specified number of bytes (minus the offset of sin6_addr in the struct sockaddr_in6). Amazing!.. OK henning@
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions