This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

SIOCGIFCONF and FreeBSD stack?


Hi,

anyone is using SIOCGIFCONF in the FreeBSD stack?

Maybe I don't quite get how to use it (although the same
code works in Linux) but it looks like that it returns
also a link address of the ethernet interface (which
is probably OK), but with the family set to 2 (AF_INET),
resulting in a chaos in the code trying to interpret it.
The next entries in the ifreq array are then aligned quite
weirdly, certainly not at the sizeof(struct ifreq) borders.

getifaddrs() seems to work correctly - it also returns
the MAC address, but correctly marks it as such
with AF_LINK.

Regards
-- 
                                 Stano

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]