--- projects/libstatgrab/docs/sg_get_network_io_stats.xml 2003/10/02 17:38:03 1.3 +++ projects/libstatgrab/docs/sg_get_network_io_stats.xml 2004/03/06 23:35:20 1.4 @@ -6,8 +6,8 @@ - $Date: 2003/10/02 17:38:03 $ - $Id: sg_get_network_io_stats.xml,v 1.3 2003/10/02 17:38:03 tdb Exp $ + $Date: 2004/03/06 23:35:20 $ + $Id: sg_get_network_io_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; @@ -112,6 +122,56 @@ typedef struct{ The number of bytes received. + + + + + + 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.