Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Sep 1997 09:59:18 +0930
From:      Greg Lehey <grog@lemis.com>
To:        Kevin Keyser <keyser@clio.rice.edu>
Cc:        questions@FreeBSD.ORG
Subject:   Re: netstat -i for lo0
Message-ID:  <19970928095918.25225@lemis.com>
In-Reply-To: <9709270102.AA04983@clio.rice.edu>; from Kevin Keyser on Fri, Sep 26, 1997 at 08:02:26PM -0500
References:  <9709270102.AA04983@clio.rice.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
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.

Sorry for the last message--finger trouble.

Gary Jennejohn suggested the correct answer: you're probably running a
name server on this system.  I get the same results on my machine with
netstat -i, but not with netstat -in:

$ netstat -bin |grep lo0
lo0   16384 <Link>                            4338     0     620116     4338     0     620116     0
lo0   16384 255&0x7f00000 127.0.0.1           4338     0     620116     4338     0     620116     0
$ netstat -bin |grep lo0
lo0   16384 <Link>                            4338     0     620116     4338     0     620116     0
lo0   16384 255&0x7f00000 127.0.0.1           4338     0     620116     4338     0     620116     0
$ netstat -bi |grep lo0
lo0   16384 <Link>                            4346     0     621184     4346     0     621184     0
lo0   16384 255&0x7f00000 localhost           4346     0     621184     4346     0     621184     0
$ netstat -bi |grep lo0
lo0   16384 <Link>                            4358     0     622739     4358     0     622739     0
lo0   16384 255&0x7f00000 localhost           4358     0     622739     4358     0     622739     0
$ netstat -bi |grep lo0
lo0   16384 <Link>                            4370     0     624294     4370     0     624294     0
lo0   16384 255&0x7f00000 localhost           4370     0     624294     4370     0     624294     0
$ netstat -bi | grep lo0
lo0   16384 <Link>                            4406     0     629471     4406     0     629471     0
lo0   16384 255&0x7f00000 localhost           4406     0     629471     4406     0     629471     0
$ netstat -bi | grep lo0
lo0   16384 <Link>                            4418     0     631026     4418     0     631026     0
lo0   16384 255&0x7f00000 localhost           4418     0     631026     4418     0     631026     0

Don't worry about the number of packets--that depends on your configuration.

Greg



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19970928095918.25225>