From: Stephen Hemminger <[EMAIL PROTECTED]>
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 <[EMAIL PROTECTED]>

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.

-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to