LKML Archive on
help / color / mirror / Atom feed
From: "David S. Miller" <>
Subject: Re: [PATCH] Trivial patch for SIOCGIFCOUNT
Date: Tue, 09 Oct 2001 15:37:46 -0700 (PDT)	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <>
In-Reply-To: <>

   From: "BALBIR SINGH" <>
   Date: Tue, 09 Oct 2001 18:53:47 +0530

   	To make the API orthogonal, I have included a patch for SIOCGIFCOUNT,
   which currently returns -EINVAL. The only reason I am providing this patch
   is to make the API complete and make it easier to port applications from
   other UNIX like OS'es.

There is no need for this change, and _EVEN_ if we put this
change in today every APP out there would _STILL_ need to deal with
all existing kernels which do not have SIOCGIFCOUNT implemented.

Furthermore, SIOCGIFCOUNT also gives no new functionality that does
not exist already.  SIOCGIFCONF with a zero size with give the
behavior necessary to get the same answer as a SIOCGIFCOUNT would
provide.  As far as I am aware, every system providing BSD sockets
provides this SIOCGIFCONF "feature".

Therefore, it is already quite easy to make applications portable
between Linux and other BSD socket based systems.  Simply use the
SIOCGIFCONF method throughout.

Franks a lot,
David S. Miller

  reply	other threads:[~2001-10-09 22:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-09 13:23 BALBIR SINGH
2001-10-09 22:37 ` David S. Miller [this message]
2001-10-10  5:36   ` BALBIR SINGH
2001-10-10 18:31     ` kuznet

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:

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

  git send-email \ \ \ \ \ \ \
    --subject='Re: [PATCH] Trivial patch for SIOCGIFCOUNT' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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).