From owner-freebsd-questions Sat Sep 27 17:24:59 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id RAA22776 for questions-outgoing; Sat, 27 Sep 1997 17:24:59 -0700 (PDT) Received: from freebie.lemis.com (gregl1.lnk.telstra.net [139.130.136.133]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id RAA22765 for ; Sat, 27 Sep 1997 17:24:53 -0700 (PDT) Received: (from grog@localhost) by freebie.lemis.com (8.8.7/8.8.5) id JAA04604; Sun, 28 Sep 1997 09:54:44 +0930 (CST) Message-ID: <19970928095444.58762@lemis.com> Date: Sun, 28 Sep 1997 09:54:44 +0930 From: Greg Lehey To: Kevin Keyser Cc: questions@FreeBSD.ORG Subject: Re: netstat -i for lo0 References: <9709270102.AA04983@clio.rice.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.81e In-Reply-To: <9709270102.AA04983@clio.rice.edu>; from Kevin Keyser on Fri, Sep 26, 1997 at 08:02:26PM -0500 Organisation: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8250 Fax: +61-8-8388-8250 Mobile: +61-41-739-7062 WWW-Home-Page: http://www.lemis.com/~grog Fight-Spam-Now: http://www.cauce.org Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Fri, Sep 26, 1997 at 08:02:26PM -0500, Kevin Keyser wrote: > I am running 2.2.2R at home on a P5/60/PCI/EISA, 32M, Adaptec 2742, > 3com 3c592. OS/2 is on one SCSI disk, FreeBSD on the other, using > OS/2's boot manager. > > I have been seeing some strange behavior in my "netstat -i" numbers > for the loopback. Each time I run "netstat -i", ipkts and opkts are > incremented by 48. Note that it does not matter how long or short I > wait between invocations; the change is always 48, like running > netstat causes it. In the example below, the machine is otherwise > *very* idle, no cron jobs other than the install defaults, and is > the only node up on my net. So there can be only one program which is performing these accesses, right? netstat itself! Some > > Otherwise, everthing is working fine and there seems to be no bad > effect from this situation other than it's bugging me. I have a > similarly configured system at work which does not do this. Does > anyone know an explanation? > > Thanks. > > Kevin > > ------------------------------------------------------ > > nova# netstat -i > Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll > vx0 1500 00.a0.24.38.85.e6 0 0 1 0 0 > vx0 1500 172.16.1/24 nova 0 0 1 0 0 > lp0* 1500 0 0 0 0 0 > lo0 16384 288 0 288 0 0 > lo0 16384 your-net localhost 288 0 288 0 0 > nova# netstat -i > Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll > vx0 1500 00.a0.24.38.85.e6 0 0 1 0 0 > vx0 1500 172.16.1/24 nova 0 0 1 0 0 > lp0* 1500 0 0 0 0 0 > lo0 16384 336 0 336 0 0 > lo0 16384 your-net localhost 336 0 336 0 0 > nova# netstat -i > Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll > vx0 1500 00.a0.24.38.85.e6 0 0 1 0 0 > vx0 1500 172.16.1/24 nova 0 0 1 0 0 > lp0* 1500 0 0 0 0 0 > lo0 16384 384 0 384 0 0 > lo0 16384 your-net localhost 384 0 384 0 0 > nova# ifconfig -a > vx0: flags=8843 mtu 1500 > inet 172.16.1.10 netmask 0xffffff00 broadcast 172.16.1.255 > ether 00:a0:24:38:85:e6 > lp0: flags=8810 mtu 1500 > lo0: flags=8049 mtu 16384 > inet 127.0.0.1 netmask 0xff000000 > nova# ps -ax > PID TT STAT TIME COMMAND > 0 ?? DLs 0:00.01 (swapper) > 1 ?? Is 0:00.03 /sbin/init -- > 2 ?? DL 0:00.00 (pagedaemon) > 3 ?? DL 0:00.00 (vmdaemon) > 4 ?? DL 0:00.15 (update) > 25 ?? Is 0:00.09 mfs -s 24576 /dev/sd0s3b /tmp (mount_mfs) > 75 ?? Ss 0:00.13 syslogd > 84 ?? Is 0:00.01 portmap > 94 ?? I 0:00.00 nfsiod -n 4 > 95 ?? I 0:00.00 nfsiod -n 4 > 96 ?? I 0:00.00 nfsiod -n 4 > 97 ?? I 0:00.00 nfsiod -n 4 > 110 ?? Is 0:00.14 inetd > 112 ?? Is 0:00.06 cron > 115 ?? Is 0:00.04 lpd > 118 ?? Is 0:00.02 sendmail: accepting connections on port 25 (sendmail) > 164 ?? I 0:00.02 /usr/libexec/getty std.9600 ttyd0 > 160 v0 Ss 0:00.26 -csh (csh) > 206 v0 R+ 0:00.02 ps -ax > 161 v1 Is 0:00.49 -tcsh (tcsh) > 176 v1 I+ 0:00.08 tip direct > 177 v1 I+ 0:01.02 tip direct > 162 v2 Is+ 0:00.03 /usr/libexec/getty Pc ttyv2 > 163 v3 Is+ 0:00.03 /usr/libexec/getty Pc ttyv3 -- Greg Lehey LEMIS grog@lemis.com PO Box 460 Tel: +61-8-8388-8286 Echunga SA 5153 Fax: +61-8-8388-8725 Australia -----BEGIN PGP PUBLIC KEY BLOCK----- Version: 2.6.2i mQCNAzGpfDEAAAEEAMh6rH1c9+oKgazwGLitshrIFKFSGelccTK1fwnMw2O6SrK8 r0ttvRO42fZa8WXvlsSF1JIAqOJoaBP8HJNv6G/RA1NcKgqQKLc4RmTNnu6MoPe0 a25w25wyKOfzefJTS9dsQhWg2XJlyRo4YMtbSxDOZldq7kmga0Sj8+byVwABAAUR tBNDQyA8Y2NAbWFyY2FkZS5jb20+tAZDb250cm8= =FJvY -----END PGP PUBLIC KEY BLOCK-----