[rhn-users] finding rx_bytes and tx_bytes

kanhu rauta kanhu2004 at rediffmail.com
Mon Feb 28 07:30:08 UTC 2005


Hi all,

i am using fedora with kernel version 2.6.9-1.667.
i want to know the total bytes received(RX packets) and total bytes transmitted (TX packets) on a particular interface.
i have found that there is a structure " strcut net_device_stats", which is declared in "/usr/include/linux/netdevice.h" keeps the information of rx_bytes ant tx_bytes.
how i 'll access this structure in my c program.
what are the system calls available in linux to access this structure. 

regards
kanhu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/rhn-users/attachments/20050228/cc83a28b/attachment.htm>


More information about the rhn-users mailing list