* A better way to get driver stats than parsing /proc/net/dev ?
@ 2003-04-11 7:56 Ben Greear
2003-04-11 15:19 ` Jason Lunz
0 siblings, 1 reply; 4+ messages in thread
From: Ben Greear @ 2003-04-11 7:56 UTC (permalink / raw)
To: 'netdev@oss.sgi.com'
Is there an ioctl or some other binary means of getting the
info that /proc/net/dev provides?
Thanks,
Ben
--
Ben Greear <greearb@candelatech.com> <Ben_Greear AT excite.com>
President of Candela Technologies Inc http://www.candelatech.com
ScryMUD: http://scry.wanfear.com http://scry.wanfear.com/~greear
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: A better way to get driver stats than parsing /proc/net/dev ?
2003-04-11 7:56 A better way to get driver stats than parsing /proc/net/dev ? Ben Greear
@ 2003-04-11 15:19 ` Jason Lunz
2003-04-11 17:26 ` Ben Greear
0 siblings, 1 reply; 4+ messages in thread
From: Jason Lunz @ 2003-04-11 15:19 UTC (permalink / raw)
To: netdev
greearb@candelatech.com said:
> Is there an ioctl or some other binary means of getting the info that
> /proc/net/dev provides?
You can do it with netlink sockets. See print_linkinfo() in the iproute2
code.
Jason
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: A better way to get driver stats than parsing /proc/net/dev ?
2003-04-11 15:19 ` Jason Lunz
@ 2003-04-11 17:26 ` Ben Greear
2003-05-21 17:39 ` Rask Ingemann Lambertsen
0 siblings, 1 reply; 4+ messages in thread
From: Ben Greear @ 2003-04-11 17:26 UTC (permalink / raw)
To: Jason Lunz; +Cc: netdev
Jason Lunz wrote:
> greearb@candelatech.com said:
>
>>Is there an ioctl or some other binary means of getting the info that
>>/proc/net/dev provides?
>
>
> You can do it with netlink sockets. See print_linkinfo() in the iproute2
> code.
Seems that a lot of code is needed just to read the stats :(
And every man page I read says use libnetlink instead, but I can't find any docs
on libnetlink itself (and the .ru ftp link for iproute2 seems down).
Do you know of any pointers as to how to use libnetlink, or if it
really makes netlink easier to use?
>
> Jason
>
--
Ben Greear <greearb@candelatech.com> <Ben_Greear AT excite.com>
President of Candela Technologies Inc http://www.candelatech.com
ScryMUD: http://scry.wanfear.com http://scry.wanfear.com/~greear
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: A better way to get driver stats than parsing /proc/net/dev ?
2003-04-11 17:26 ` Ben Greear
@ 2003-05-21 17:39 ` Rask Ingemann Lambertsen
0 siblings, 0 replies; 4+ messages in thread
From: Rask Ingemann Lambertsen @ 2003-05-21 17:39 UTC (permalink / raw)
To: netdev
On Fri, 11 Apr 2003 10:26:57 -0700, Ben Greear wrote
> Jason Lunz wrote:
> > greearb@candelatech.com said:
> >
> >>Is there an ioctl or some other binary means of getting the info that
> >>/proc/net/dev provides?
> >
> > You can do it with netlink sockets. See print_linkinfo() in the iproute2
> > code.
>
> Seems that a lot of code is needed just to read the stats :(
Maybe it is easier to parse the output from "ip -s -s link show [iface]". At
least you get all the counters, which you don't from /proc/net/dev.
--
Regards,
Rask Ingemann Lambertsen
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-05-21 17:39 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-11 7:56 A better way to get driver stats than parsing /proc/net/dev ? Ben Greear
2003-04-11 15:19 ` Jason Lunz
2003-04-11 17:26 ` Ben Greear
2003-05-21 17:39 ` Rask Ingemann Lambertsen
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).