From owner-freebsd-net Tue Mar 20 9:30:56 2001 Delivered-To: freebsd-net@freebsd.org Received: from sj-msg-core-3.cisco.com (sj-msg-core-3.cisco.com [171.70.157.152]) by hub.freebsd.org (Postfix) with ESMTP id CE2C837B732; Tue, 20 Mar 2001 09:30:48 -0800 (PST) (envelope-from bmah@cisco.com) Received: from bmah-freebsd-0.cisco.com (bmah-freebsd-0.cisco.com [171.70.84.42]) by sj-msg-core-3.cisco.com (8.9.3/8.9.1) with ESMTP id JAA12575; Tue, 20 Mar 2001 09:29:34 -0800 (PST) Received: (from bmah@localhost) by bmah-freebsd-0.cisco.com (8.11.3/8.11.1) id f2KHUlo11577; Tue, 20 Mar 2001 09:30:47 -0800 (PST) (envelope-from bmah) Message-Id: <200103201730.f2KHUlo11577@bmah-freebsd-0.cisco.com> X-Mailer: exmh version 2.3.1 01/19/2001 with nmh-1.0.4 To: joe@freebsd.org Cc: bmah@freebsd.org, freebsd-net@freebsd.org Subject: netstat(1) bug in per-address packet counts? From: bmah@freebsd.org (Bruce A. Mah) Reply-To: bmah@freebsd.org X-Face: g~c`.{#4q0"(V*b#g[i~rXgm*w;:nMfz%_RZLma)UgGN&=j`5vXoU^@n5v4:OO)c["!w)nD/!!~e4Sj7LiT'6*wZ83454H""lb{CC%T37O!!'S$S&D}sem7I[A 2V%N&+ X-Image-Url: http://www.employees.org/~bmah/Images/bmah-cisco-small.gif X-Url: http://www.employees.org/~bmah/ Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_940605221P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Tue, 20 Mar 2001 09:30:47 -0800 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org --==_Exmh_940605221P Content-Type: text/plain; charset=us-ascii Hi Joe-- I was playing around with netstat(1) on a recent RELENG_4 machine, and noticed something odd. Apparently, the input packet counter for the IPv6 loopback address never gets incremented (even after some pings, the input packet count on lo0 is still 0): bmah-freebsd-0:netstat% ping6 ::1 PING6(56=40+8+8 bytes) ::1 --> ::1 16 bytes from ::1, icmp_seq=0 hlim=64 time=0.276 ms 16 bytes from ::1, icmp_seq=1 hlim=64 time=0.242 ms 16 bytes from ::1, icmp_seq=2 hlim=64 time=0.239 ms 16 bytes from ::1, icmp_seq=3 hlim=64 time=0.207 ms 16 bytes from ::1, icmp_seq=4 hlim=64 time=0.216 ms ^C --- ::1 ping6 statistics --- 5 packets transmitted, 5 packets received, 0% packet loss round-trip min/avg/max = 0.207/0.236/0.276 ms bmah-freebsd-0:netstat% netstat -in Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll fxp0 1500 00:d0:b7:5a:f1:6f 153964 0 133432 0 0 fxp0 1500 171.70.84/23 171.70.84.42 312026 - 322155 - - fxp0 1500 fe80:1::2d0 fe80:1::2d0:b7ff: 0 - 0 - - gif0* 1280 0 0 0 0 0 lo0 16384 213161 0 213161 0 0 lo0 16384 fe80:3::1/6 fe80:3::1 0 - 0 - - lo0 16384 ::1/128 ::1 0 - 13119 - - lo0 16384 127 127.0.0.1 11295 - 11295 - - ppp0* 1500 0 0 0 0 0 stf0* 1280 0 0 0 0 0 bmah-freebsd-0:netstat% uname -a FreeBSD bmah-freebsd-0.cisco.com 4.3-BETA FreeBSD 4.3-BETA #2: Mon Mar 19 15:16:43 PST 2001 root@bmah-freebsd-0.cisco.com:/usr/obj/usr/src/sys/NIMITZ i386 Is it just me? :-) Thanks, Bruce. --==_Exmh_940605221P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (FreeBSD) Comment: Exmh version 2.2 06/23/2000 iD8DBQE6t5PH2MoxcVugUsMRAj/5AKDuhlweGN6KWjRiWxoqndFxKB24SQCfdtiz p71A4nacB3dVEsk1UQ56kDU= =RzLg -----END PGP SIGNATURE----- --==_Exmh_940605221P-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message