Re: finding rx_bytes and tx_bytes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



--- kanhu rauta <kanhu2004@xxxxxxxxxxxxxx> wrote:
> 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.

 ifconfig may be what you need.
 ip (man ip will direct you to documentation) may
 tell you more.


=====
He who laughs last thinks slowest.


	
		
__________________________________ 
Celebrate Yahoo!'s 10th Birthday! 
Yahoo! Netrospective: 100 Moments of the Web 
http://birthday.yahoo.com/netrospective/

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux