From owner-freebsd-hackers Tue Jan 9 4:15:38 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from citadel.cequrux.com (citadel.cequrux.com [192.96.22.18]) by hub.freebsd.org (Postfix) with ESMTP id 9456237B400 for ; Tue, 9 Jan 2001 04:15:17 -0800 (PST) Received: (from nobody@localhost) by citadel.cequrux.com (8.8.8/8.6.9) id OAA00630; Tue, 9 Jan 2001 14:15:14 +0200 (SAST) Received: by citadel.cequrux.com via recvmail id 534; Tue Jan 9 14:14:14 2001 Message-ID: <3A5AE854.F769B86C@cequrux.com> Date: Tue, 09 Jan 2001 12:30:44 +0200 From: Graham Wheeler Organization: Cequrux Technologies X-Mailer: Mozilla 4.75 [en] (X11; U; FreeBSD 3.4-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Cc: markster@marko.net Subject: Re: Size of struct ifreq/returned buffer of SIOCGIFCONF Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Just a follow up on this: on Stevens vol 2 pg 117, code line 299, is the implication that the returned buffer DOES hold an array of struct ifreq elements. So this does seem to indicate that something may be broken on FreeBSD. At the very least there is some ambiguity - is this an array of struct ifreq's, or an array of struct ifreq's at 36 byte intervals? Just to add to my confusion, the value returned in ifc_len is 784 - which is neither a multiple of 36, nor a multiple of sizeof(struct ifreq). Weirdfull. -- Dr Graham Wheeler E-mail: gram@cequrux.com Director, Research and Development WWW: http://www.cequrux.com CEQURUX Technologies Phone: +27(21)423-6065 Firewalls/VPN Specialists Fax: +27(21)424-3656 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message