This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: network interfaces
- From: Gary Thomas <gary at mlbassoc dot com>
- To: Bass8tt8 <bass8tt8 at libero dot it>
- Cc: eCos Discussion <ecos-discuss at ecos dot sourceware dot org>
- Date: Thu, 24 Nov 2005 03:34:59 -0700
- Subject: Re: [ECOS] network interfaces
- References: <001701c5f0e1$866e2380$5700a8c0@PORTATILE>
On Thu, 2005-11-24 at 11:26 +0100, Bass8tt8 wrote:
> Hi,
>
> i have a function ( on Linux work well ) that get the list and the numbers
> of network interfaces excluding the LOOPBACK INTERFACE, but on ecos this
> dosn't work :
> for debugging i print the name of interface finded : printf ("scheda_lan :
> %s\n",ifReq.ifr_name);
> but "eth0" there isn't ... and this function return me always 0 !
Walking through the results of SIOCGIFCONF is a bit tricky.
Try looking at some eCos code that uses this API, e.g.
.../packages/net/common/current/src/ifaddrs.c
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss