| To: | netdev@xxxxxxxxxxx |
|---|---|
| Subject: | Re: A better way to get driver stats than parsing /proc/net/dev ? |
| From: | "Rask Ingemann Lambertsen" <rask@xxxxxxxxxx> |
| Date: | Wed, 21 May 2003 18:39:17 +0100 |
| In-reply-to: | <3E96FAE1.7030302@xxxxxxxxxxxxxxx> |
| References: | <3E967535.2000409@xxxxxxxxxxxxxxx> <slrnb9dn9r.fef.lunz@xxxxxxxxxxxxxx> <3E96FAE1.7030302@xxxxxxxxxxxxxxx> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
On Fri, 11 Apr 2003 10:26:57 -0700, Ben Greear wrote > Jason Lunz wrote: > > greearb@xxxxxxxxxxxxxxx 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 |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH] wanrouter/wanmain: fix namespace, fixing the current problem with device_shutdown, Arnaldo Carvalho de Melo |
|---|---|
| Next by Date: | Re: Dump of TCP hang in established state, Nivedita Singhvi |
| Previous by Thread: | [PATCH] wanrouter/wanmain: fix namespace, fixing the current problem with device_shutdown, Arnaldo Carvalho de Melo |
| Next by Thread: | [PATCH] switch arcnet over to initcalls, Christoph Hellwig |
| Indexes: | [Date] [Thread] [Top] [All Lists] |