Return to BSD News archive
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!elroy.jpl.nasa.gov!decwrl!tribune.usask.ca!hacker From: hacker@usask.ca (Tom Hacker) Newsgroups: comp.os.386bsd.bugs Subject: Incorrect input packet count for ethernet Date: 19 Jul 1993 22:49:31 GMT Organization: University of Saskatchewan Lines: 22 Message-ID: <22f8dr$85s@tribune.usask.ca> NNTP-Posting-Host: sparkle.usask.ca X-Newsreader: TIN [version 1.2 PL0] Hello! I think I may have found a bug...have any of you noticed this? netstat -i was giving what seemed to be awfully small numbers for Ipkts for the ethernet interface, so I looked in net/if_ethersubr.c in the routine ether_input (line 280) and discovered that the number of input bytes was being incremented 292 ifp->if_ibytes += m->m_pkthdr.len + sizeof (*eh); But the number of input packets was left alone, so I added 291 ifp->if_ipackets++; which seems to solve the problem. Does this jive with what other people have seen? -Tom