kern/152036: [libc] getifaddrs(3) returns truncated sockaddrs
for netmasks
Sergey Kandaurov
pluknet at gmail.com
Mon Jul 11 14:00:25 UTC 2011
The following reply was made to PR kern/152036; it has been noted by GNATS.
From: Sergey Kandaurov <pluknet at gmail.com>
To: bug-followup at FreeBSD.org, kbyanc at gmail.com
Cc:
Subject: Re: kern/152036: [libc] getifaddrs(3) returns truncated sockaddrs for netmasks
Date: Mon, 11 Jul 2011 17:59:47 +0400
[Some thoughts and testing...]
This is rather a kernel bug, i.e. this is not a getifaddrs() bug.
This is confirmed by (undocumented) ioctl SIOCGIFNETMASK.
I found that the bug is manifested for ip4, and not for lladdr, ipv6.
More information about the freebsd-net
mailing list