--- projects/libstatgrab/docs/get_network_stats.xml 2003/10/02 16:01:52 1.2 +++ projects/libstatgrab/docs/get_network_stats.xml 2004/03/06 23:35:20 1.4 @@ -6,8 +6,8 @@ - $Date: 2003/10/02 16:01:52 $ - $Id: get_network_stats.xml,v 1.2 2003/10/02 16:01:52 tdb Exp $ + $Date: 2004/03/06 23:35:20 $ + $Id: get_network_stats.xml,v 1.4 2004/03/06 23:35:20 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,6 +127,56 @@ 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 @@ -148,7 +208,15 @@ typedef struct{ See Also - Nothing yet + + + + + statgrab + 3 + + +