Subject: Re: __attribute__ ((__packed__)) for struct ifreq
To: Jun-ichiro itojun Hagino <itojun@iijlab.net>
From: Andrew Brown <atatat@atatdot.net>
List: tech-net
Date: 05/13/2000 01:39:04
> this is one of the motivation for migrating to getifaddrs(3), however,
> SIOCGIFCONF is widely used (and it is VERY hard to use SIOCGIFCONF
> 100% correctly) so I think putting the attribute is more safe.
funny...i had no problems using it. i just assumed that nothing would
be aligned properly and bcopied everything out of the returned buffer.
maybe i'm just to careful... :)
--
|-----< "CODE WARRIOR" >-----|
codewarrior@daemon.org * "ah! i see you have the internet
twofsonet@graffiti.com (Andrew Brown) that goes *ping*!"
andrew@crossbar.com * "information is power -- share the wealth."