From owner-freebsd-net@FreeBSD.ORG Tue Nov 6 12:30:01 2012 Return-Path: Delivered-To: freebsd-net@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C1C247A8 for ; Tue, 6 Nov 2012 12:30:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id A81DF8FC14 for ; Tue, 6 Nov 2012 12:30:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id qA6CU1K1016091 for ; Tue, 6 Nov 2012 12:30:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id qA6CU19J016090; Tue, 6 Nov 2012 12:30:01 GMT (envelope-from gnats) Date: Tue, 6 Nov 2012 12:30:01 GMT Message-Id: <201211061230.qA6CU19J016090@freefall.freebsd.org> To: freebsd-net@FreeBSD.org Cc: From: Nicholas Wilson Subject: Re: kern/152036: [libc] getifaddrs(3) returns truncated sockaddrs for netmasks X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Nicholas Wilson List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Nov 2012 12:30:01 -0000 The following reply was made to PR kern/152036; it has been noted by GNATS. From: Nicholas Wilson 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 Wilson