[ECOS] SIOCGIFCONF and FreeBSD stack?
Mon Jul 20 13:28:00 GMT 2009
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
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
More information about the Ecos-discuss