|To:||Jason Lunz <lunz@xxxxxxxxxxxx>|
|Subject:||Re: A better way to get driver stats than parsing /proc/net/dev ?|
|From:||Ben Greear <greearb@xxxxxxxxxxxxxxx>|
|Date:||Fri, 11 Apr 2003 10:26:57 -0700|
|User-agent:||Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3b) Gecko/20030210|
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 :( 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?
-- Ben Greear <greearb@xxxxxxxxxxxxxxx> <Ben_Greear AT excite.com> President of Candela Technologies Inc http://www.candelatech.com ScryMUD: http://scry.wanfear.com http://scry.wanfear.com/~greear
|<Prev in Thread]||Current Thread||[Next in Thread>|
|Previous by Date:||bug in 2.4.20, Ury N. Stankevich|
|Next by Date:||PING statistics, George E. Oakes|
|Previous by Thread:||Re: A better way to get driver stats than parsing /proc/net/dev ?, Jason Lunz|
|Next by Thread:||[PATCH] [2.4.20] filter_list destroy fix in net/sched/sch_csz.c, Dimitry V. Ketov|
|Indexes:||[Date] [Thread] [Top] [All Lists]|