From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Lunn To: Grant Edwards Cc: ecos-discuss@sources.redhat.com Subject: Re: [ECOS] SNMP shows zero tx packets? Date: Thu, 04 Jan 2001 00:15:00 -0000 Message-id: <20010104091450.W8442@biferten.ma.tech.ascom.ch> References: <20010103151945.A31920@visi.com> X-SW-Source: 2001-01/msg00023.html On Wed, Jan 03, 2001 at 03:19:46PM -0600, Grant Edwards wrote: > All seems well except for two thing > > 1) the tx packet count is always zero. I get what looks like > reasonable numbers for rx packets and rx bytes and also for > tx bytes, but tx packets is always 0. You need to look in packages/net/snmp/agent/mibgroups/mibII/inferfaces.c The offending bit of code is case IFOUTUCASTPKTS: long_ret = ifp->if_opackets - ifp->if_omcasts; return (unsigned char *) &long_ret; This is returning the number of multicast packets output! It should return if_opackets. > 2) I've also noticed that the system uptime is always zero... Sorry, i cannot help here. I reimplemented the system group so that i could get/set values from flash etc. Look in the same directory as the interfaces.c. Andrew