Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 09 Jan 2001 12:30:44 +0200
From:      Graham Wheeler <gram@cequrux.com>
To:        freebsd-hackers@freebsd.org
Cc:        markster@marko.net
Subject:   Re: Size of struct ifreq/returned buffer of SIOCGIFCONF
Message-ID:  <3A5AE854.F769B86C@cequrux.com>

next in thread | raw e-mail | index | archive | help
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




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