Subject: Re: SIOCGIFCONF wierdness
To: None <email@example.com>
From: Alex Barclay <firstname.lastname@example.org>
Date: 05/08/2001 17:30:05
On Wed, 9 May 2001 email@example.com wrote:
> your code is assuming that SIOCGIFCONF returns an array of fixed-length
> struct (ifreq), however, the assumption is not correct. ifreq
> can be bigger when sockaddr in ifreq struct is bigger.
> SIOCGIFCONF is one of the most difficult-to-use ioctl.
> i'd suggest you to use getifaddrs(3).
Thanks for this. I'll take a look in more detail at this tonight.
One final question... Did the assumption change between 1.4 and now? I'm
actually trying to port some code that used to run just fine.