public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Gary Thomas <gary@mlbassoc.com>
To: Bass8tt8 <bass8tt8@libero.it>
Cc: eCos Discussion <ecos-discuss@ecos.sourceware.org>
Subject: Re: [ECOS] network interfaces
Date: Thu, 24 Nov 2005 10:35:00 -0000	[thread overview]
Message-ID: <1132828499.2805.104.camel@hermes> (raw)
In-Reply-To: <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

  reply	other threads:[~2005-11-24 10:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-24 10:26 Bass8tt8
2005-11-24 10:35 ` Gary Thomas [this message]
2005-11-24 13:48 ` Andrew Lunn

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1132828499.2805.104.camel@hermes \
    --to=gary@mlbassoc.com \
    --cc=bass8tt8@libero.it \
    --cc=ecos-discuss@ecos.sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).