netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: shemminger@linux-foundation.org
Cc: ak@suse.de, netdev@vger.kernel.org
Subject: Re: [RFC] SIOCGIFCOUNT implementation
Date: Mon, 23 Apr 2007 14:26:30 -0700 (PDT)	[thread overview]
Message-ID: <20070423.142630.21932914.davem@davemloft.net> (raw)
In-Reply-To: <20070423141226.1c2127ce@localhost.localdomain>

From: Stephen Hemminger <shemminger@linux-foundation.org>
Date: Mon, 23 Apr 2007 14:12:26 -0700

> Trivial implementation of SIOCGIFCOUNT.
> If you search the archives, this was suggested and rejected
> 6 years ago. But there maybe legacy Unix applications that
> could actually use it.
> 
> Signed-off-by: Stephen Hemminger <shemminger@osdl.org>

It makes no sense given that you can get this information
with SIOCGIFCONF by supplying a NULL ifc.ifc_buf buffer.
The equivalent of SIOCGIFCOUNT can be obtained by dividing ifc.ifc_len
by the size of one interface entry.

Please also tell me what legacy application could actually
use this thing when BSD itself doesn't even implement it?

A google code search for SIOCGIFCOUNT is fun too.

In fact SIOCGIFCOUNT aparently got removed in 2.2.x, so
let's keep it that way.

There is no reason to add support for this, truly.


  reply	other threads:[~2007-04-23 21:26 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-20 22:04 SIOCGIFCOUNT Andi Kleen
2007-04-20 22:41 ` SIOCGIFCOUNT David Miller
2007-04-21  9:48   ` SIOCGIFCOUNT Andi Kleen
2007-04-21 17:40     ` SIOCGIFCOUNT David Miller
2007-04-23 21:12       ` [RFC] SIOCGIFCOUNT implementation Stephen Hemminger
2007-04-23 21:26         ` David Miller [this message]
2007-04-23 21:30           ` Andi Kleen

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=20070423.142630.21932914.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=ak@suse.de \
    --cc=netdev@vger.kernel.org \
    --cc=shemminger@linux-foundation.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 NNTP newsgroup(s).