Return to BSD News archive
Newsgroups: comp.unix.bsd Path: sserve!manuel.anu.edu.au!munnari.oz.au!news.hawaii.edu!ames!saimiri.primate.wisc.edu!zaphod.mps.ohio-state.edu!rpi!ghost.dsi.unimi.it!newsserver.di.unipi.it!pical2!luigi From: luigi@iet.unipi.it Subject: Netstat and network statistics Message-ID: <1992Dec2.134644.12405@cli.di.unipi.it> Originator: luigi@pical2 Sender: luigi@iet.unipi.it Nntp-Posting-Host: pical2.iet.unipi.it Reply-To: luigi@iet.unipi.it Organization: Dip. di Ingegneria dell'Informazione, Univ. di Pisa (ITALY) Date: Wed, 2 Dec 1992 13:46:44 GMT Lines: 18 After compiling netstat, I noticed that several network drivers don't update statistics correctly. In particular, if_ipackets is only updated in the original if_ne.c . I hacked if_we.c to insert the statement ++sc->we_if.if_ipackets; in weread(). Not sure if that is the right place, or it should rather go in werint(), maybe someone knows it better. Same for other net interfaces. Hope a patch will come out for this! Luigi ==================================================================== Luigi Rizzo Dip. di Ingegneria dell'Informazione email: luigi@iet.unipi.it Universita' di Pisa tel: +39-50-568533 via Diotisalvi 2, 56124 PISA (Italy) fax: +39-50-568522 ====================================================================