This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: SIOCGIFCONF and FreeBSD stack?
- From: jay at systech dot com
- To: eCos Discussion <ecos-discuss at ecos dot sourceware dot org>, Stanislav Meduna <stano at meduna dot org>
- Date: Mon, 20 Jul 2009 08:51:15 -0700 (PDT)
- Subject: Re: [ECOS] SIOCGIFCONF and FreeBSD stack?
- Reply-to: jay at systech dot com
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