Thread (4 messages) 4 messages, 3 authors, 2003-05-21

Re: A better way to get driver stats than parsing /proc/net/dev ?

From: Rask Ingemann Lambertsen <hidden>
Date: 2003-05-21 17:39:17

On Fri, 11 Apr 2003 10:26:57 -0700, Ben Greear wrote
Jason Lunz wrote:
quoted
greearb@candelatech.com said:
quoted
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help