--- projects/pystatgrab/_statgrab.pyx 2004/02/14 18:07:30 1.8 +++ projects/pystatgrab/_statgrab.pyx 2004/03/06 22:11:22 1.9 @@ -17,7 +17,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # -# $Id: _statgrab.pyx,v 1.8 2004/02/14 18:07:30 tdb Exp $ +# $Id: _statgrab.pyx,v 1.9 2004/03/06 22:11:22 tdb Exp $ # ctypedef long time_t @@ -98,6 +98,11 @@ cdef extern from "statgrab.h": 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 ctypedef enum statgrab_duplex: @@ -357,6 +362,11 @@ def py_get_network_stats(): {'interface_name': s.interface_name, 'tx': s.tx, 'rx': s.rx, + 'ipackets': s.ipackets, + 'opackets': s.opackets, + 'ierrors': s.ierrors, + 'oerrors': s.oerrors, + 'collisions': s.collisions, 'systime': s.systime, } )) @@ -375,6 +385,11 @@ def py_get_network_stats_diff(): {'interface_name': s.interface_name, 'tx': s.tx, 'rx': s.rx, + 'ipackets': s.ipackets, + 'opackets': s.opackets, + 'ierrors': s.ierrors, + 'oerrors': s.oerrors, + 'collisions': s.collisions, 'systime': s.systime, } ))