Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Jan 2001 14:20:43 +0000
From:      David Malone <dwmalone@maths.tcd.ie>
To:        Graham Wheeler <gram@cequrux.com>
Cc:        freebsd-hackers@freebsd.org, markster@marko.net
Subject:   Re: Size of struct ifreq/returned buffer of SIOCGIFCONF
Message-ID:  <20010109142043.B52761@walton.maths.tcd.ie>
In-Reply-To: <3A5AE854.F769B86C@cequrux.com>; from gram@cequrux.com on Tue, Jan 09, 2001 at 12:30:44PM %2B0200
References:  <3A5AE854.F769B86C@cequrux.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Jan 09, 2001 at 12:30:44PM +0200, Graham Wheeler wrote:
> 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?

If you read the paragraph below that code, it notes that the ifreq 
structures are of variable length. The spacing depends on the size
of the returned info.

	David.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010109142043.B52761>