From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Lunn To: Grant Edwards , ecos-discuss@sources.redhat.com Subject: Re: [ECOS] SNMP shows zero tx packets? Date: Thu, 04 Jan 2001 00:33:00 -0000 Message-id: <20010104093320.X8442@biferten.ma.tech.ascom.ch> References: <20010103151945.A31920@visi.com> <20010104091450.W8442@biferten.ma.tech.ascom.ch> X-SW-Source: 2001-01/msg00024.html On Thu, Jan 04, 2001 at 09:14:50AM +0100, Andrew Lunn wrote: > 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. Duh, i should not better than to reply before drinking the mornings first cup of coffee. That line is correct. Thats seems to be missing is code to increment if_opackets. I cannot find that anyway. Realy you need to go back to the OpenBSD sources and find out where it increments the counter. I suspect its either in the device driver itself, or the generic ethernet layer between the driver and the stack. Andrew