<P>
Hi all,<BR>
<BR>
i am using fedora with kernel version 2.6.9-1.667.<BR>
i want to know the total bytes received(RX packets) and total bytes transmitted (TX packets) on a particular interface.<BR>
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.<BR>
how i 'll access this structure in my c program.<BR>
what are the system calls available in linux to access this structure. <BR>
<BR>
regards<BR>
kanhu
</P>
<br><br>
<A target="_blank" HREF="http://clients.rediff.com/signature/track_sig.asp"><IMG SRC="http://ads.rediff.com/RealMedia/ads/adstream_nx.cgi/www.rediffmail.com/inbox.htm@Bottom" BORDER=0 VSPACE=0 HSPACE=0></a>