kern/152036: [libc] getifaddrs(3) returns truncated sockaddrs for netmasks
Nicholas Wilson
nicholas.wilson at realvnc.com
Tue Nov 6 12:30:01 UTC 2012
The following reply was made to PR kern/152036; it has been noted by GNATS.
From: Nicholas Wilson <nicholas.wilson at realvnc.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: Tue, 06 Nov 2012 12:19:08 +0000
Note that although this is a little surprising initially, it could well
be intentional. For comparison, SIOCGIFNETMASK has the same behaviour on
other platforms that have sa_len, including Darwin and AIX, so FreeBSD's
behaviour is in line with other implementations. Changing the behaviour
of the ioctl might break someone's code.
Nicholas Wilson
More information about the freebsd-net
mailing list