mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Stephen Hemminger <shemminger@osdl.org>
To: Ulrich Drepper <drepper@redhat.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: inconsistency between SIOCGIFCONF and SIOCGIFNAME
Date: Tue, 29 Jun 2004 09:32:34 -0700	[thread overview]
Message-ID: <20040629093234.459c46c6@dell_ss3.pdx.osdl.net> (raw)
In-Reply-To: <40E0EAC1.50101@redhat.com>

On Mon, 28 Jun 2004 21:06:25 -0700
Ulrich Drepper <drepper@redhat.com> wrote:

> POSIX does not specify the if_indextoname and if_nameindex functions,
> they are only vaguely specified in an RFC.  So there is some room for
> interpretation but still I think it is an issue.
> 
> If SIOCGIFCONF to query the system's interfaces only active interfaces
> are returned.  But SIOCGIFNAME (and SIOCGIFINDEX) allow querying
> interfaces which are down and not fully initialized.
> 
> RFC 3493 says if_nameindex should return *all* interfaces.  This means
> that neither if_indextoname or if_nametoindex (defined in the same rfc)
> should define more interfaces.
> 

The bridge utilities depends on being able to do if_indextoname and
if_nametoindex for interfaces that aren't active to IP.  Other non-IP
usage probably does as well.

-- 
Stephen Hemminger 		mailto:shemminger@osdl.org
Open Source Development Lab	http://developer.osdl.org/shemminger

  parent reply	other threads:[~2004-06-29 16:32 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-29  4:06 Ulrich Drepper
2004-06-29  8:26 ` David S. Miller
2004-06-29 16:22   ` Ulrich Drepper
2004-06-29 19:09   ` Ulrich Drepper
2004-06-29 21:19     ` David S. Miller
2004-06-30  4:45       ` Ulrich Drepper
2004-06-30  5:10         ` YOSHIFUJI Hideaki / 吉藤英明
2004-06-30  5:13         ` David S. Miller
2004-06-30  7:51           ` Ulrich Drepper
2004-06-30 19:59             ` David S. Miller
2004-06-29 16:32 ` Stephen Hemminger [this message]
2004-06-29 19:11   ` Ulrich Drepper

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=20040629093234.459c46c6@dell_ss3.pdx.osdl.net \
    --to=shemminger@osdl.org \
    --cc=drepper@redhat.com \
    --cc=linux-kernel@vger.kernel.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

all inboxes | Powered by JetHome®