summaryrefslogtreecommitdiff
path: root/usr.bin/radioctl
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2005-06-07 18:43:32 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2005-06-07 18:43:32 +0000
commit41577ec4a7ce2a821c924e540c78ea43bb104876 (patch)
treeab1b59599169e90cb2d61f24c3c35794434500ce /usr.bin/radioctl
parentb7e47a80cdc66f2726bd38e4b86ede0e27c29d02 (diff)
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 'usr.bin/radioctl')
0 files changed, 0 insertions, 0 deletions