netdev
[Top] [All Lists]

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

To: netdev@xxxxxxxxxxx
Subject: Re: A better way to get driver stats than parsing /proc/net/dev ?
From: Jason Lunz <lunz@xxxxxxxxxxxx>
Date: Fri, 11 Apr 2003 15:19:52 +0000 (UTC)
Organization: PBR Streetgang
References: <3E967535.2000409@xxxxxxxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: slrn/0.9.7.4 (Linux)
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.

Jason


<Prev in Thread] Current Thread [Next in Thread>