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]

Re: SIOCGIFCONF and FreeBSD stack?


Yes, I use it as part of the eCos PPP implementation (see sys-ecos.c: GetMask()).

Jay
--- On Mon, 7/20/09, Stanislav Meduna <stano@meduna.org> wrote:

> From: Stanislav Meduna <stano@meduna.org>
> Subject: [ECOS] SIOCGIFCONF and FreeBSD stack?
> To: "eCos Discussion" <ecos-discuss@ecos.sourceware.org>
> Date: Monday, July 20, 2009, 6:28 AM
> 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
> 
>

--
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]