Date: Tue, 6 Nov 2012 12:30:01 GMT From: Nicholas Wilson <nicholas.wilson@realvnc.com> To: freebsd-net@FreeBSD.org Subject: Re: kern/152036: [libc] getifaddrs(3) returns truncated sockaddrs for netmasks Message-ID: <201211061230.qA6CU19J016090@freefall.freebsd.org>
index | next in thread | raw e-mail
The following reply was made to PR kern/152036; it has been noted by GNATS. From: Nicholas Wilson <nicholas.wilson@realvnc.com> To: bug-followup@FreeBSD.org, kbyanc@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 Wilsonhome | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211061230.qA6CU19J016090>
