On Wed, 23 Jul 2003 01:08:48 -0700
Ben Greear <greearb@xxxxxxxxxxxxxxx> wrote:
> Is it their choice to participate in the /proc/net/dev output?
Precisely yes, this is why they have the option of not
providing the ->get_stats() method by leaving it set
> > My final note: You don't even have the problem you claim to have.
> > Use your brain and 'grep' a little bit, ok? :-)
> > egrep get_stats net/core/rtnetlink.c
> > There it is, exactly what you need and supported on
> > every single kernel out there.
> Yep, I looked through that..and through libnetlink, and the complexity
> is not worth it.
Nice cop out.
Netlink is the standard method to obtain information about
network device, address, and route information. It is even
defined by an RFC.
We're not going to add a hack to the kernel just because you
think netlink is too complex. If it's too complex, you get
to live with the text based output.
I'll tell you this, the netlink version will work on more systems,
even ones that don't have /proc mounted.
Your patch duplicates existing functionality (getting network
statistics in binary form), so just based upon that I cannot allow