*BSD News Article 18633


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!agate!agate.berkeley.edu!cgd
From: cgd@erewhon.CS.Berkeley.EDU (Chris G. Demetriou)
Newsgroups: comp.os.386bsd.bugs
Subject: Re: Incorrect input packet count for ethernet
Date: 19 Jul 93 20:24:40
Organization: Kernel Hackers 'r' Us
Lines: 32
Message-ID: <CGD.93Jul19202440@erewhon.CS.Berkeley.EDU>
References: <22f8dr$85s@tribune.usask.ca>
NNTP-Posting-Host: erewhon.cs.berkeley.edu
In-reply-to: hacker@usask.ca's message of 19 Jul 1993 22:49:31 GMT

In article <22f8dr$85s@tribune.usask.ca> hacker@usask.ca (Tom Hacker) writes:
>But the number of input packets was left alone, so I added 
>291          ifp->if_ipackets++;

which ethernet driver are you using?

"is"?

that's supposed to be handled by the ethernet interface...

as you can see:

487 [sun-lamp] isa % ls if_*.c
if_ec.c         if_hp.c         if_ne.c
if_ed.c         if_is.c         if_we.c
488 [sun-lamp] isa % grep if_ipackets if_*.c
if_ec.c:        ++sc->ec_if.if_ipackets;
if_ed.c:                        ++sc->arpcom.ac_if.if_ipackets;
if_hp.c:          ns->ns_if.if_ipackets++;
if_ne.c:        ns->ns_if.if_ipackets++;
if_we.c:        ++sc->we_if.if_ipackets;


...


chris
--
Chris G. Demetriou                                    cgd@cs.berkeley.edu

   "386bsd as depth first search: whenever you go to fix something you
       find that 3 more things are actually broken." -- Adam Glass