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: network interfaces


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


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