--- projects/libstatgrab/docs/get_network_stats.xml 2003/10/02 14:53:22 1.1 +++ projects/libstatgrab/docs/get_network_stats.xml 2004/03/11 17:35:24 1.5 @@ -6,8 +6,8 @@ - $Date: 2003/10/02 14:53:22 $ - $Id: get_network_stats.xml,v 1.1 2003/10/02 14:53:22 tdb Exp $ + $Date: 2004/03/11 17:35:24 $ + $Id: get_network_stats.xml,v 1.5 2004/03/11 17:35:24 tdb Exp $ @@ -55,6 +55,11 @@ in a 64bit int, which wraps somewhere near 17 million terabytes. + get_network_stats also returns the number + of packets sent and received, and the number of errors that + have occured. It also makes the number of collisions available. + + get_network_stats_diff is the same as get_network_stats except it will return the difference since the last call. So, for instance a call to @@ -79,6 +84,11 @@ typedef struct{ char *interface_name; long long tx; long long rx; + long long ipackets; + long long opackets; + long long ierrors; + long long oerrors; + long long collisions; time_t systime; }network_stat_t; @@ -117,11 +127,62 @@ typedef struct{ + ipackets + + + + The number of packets received. + + + + + + opackets + + + + The number of packets transmitted. + + + + + + ierrors + + + + The number of receive errors. + + + + + + oerrors + + + + The number of transmit errors. + + + + + + collisions + + + + The number of collisions. + + + + + systime - The time period over which tx and rx were transferred. + The time period over which tx + and rx were transferred. @@ -147,7 +208,15 @@ typedef struct{ See Also - Nothing yet + + + + + statgrab + 3 + + + @@ -155,7 +224,9 @@ typedef struct{ - http://www.i-scream.org + + http://www.i-scream.org/libstatgrab/ +