From owner-freebsd-bugs@FreeBSD.ORG Thu Dec 16 09:00:20 2010 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B75EE1065673 for ; Thu, 16 Dec 2010 09:00:20 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 6451E8FC0A for ; Thu, 16 Dec 2010 09:00:20 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id oBG90KI5078916 for ; Thu, 16 Dec 2010 09:00:20 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id oBG90KRk078909; Thu, 16 Dec 2010 09:00:20 GMT (envelope-from gnats) Resent-Date: Thu, 16 Dec 2010 09:00:20 GMT Resent-Message-Id: <201012160900.oBG90KRk078909@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Dennis Yusupoff Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 834F81065673 for ; Thu, 16 Dec 2010 08:50:06 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (unknown [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 684868FC18 for ; Thu, 16 Dec 2010 08:50:06 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id oBG8o67F064236 for ; Thu, 16 Dec 2010 08:50:06 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id oBG8o66x064235; Thu, 16 Dec 2010 08:50:06 GMT (envelope-from nobody) Message-Id: <201012160850.oBG8o66x064235@red.freebsd.org> Date: Thu, 16 Dec 2010 08:50:06 GMT From: Dennis Yusupoff To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: misc/153206: "netstat -sz" doesn't reset any IPv6 statistic X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Dec 2010 09:00:20 -0000 >Number: 153206 >Category: misc >Synopsis: "netstat -sz" doesn't reset any IPv6 statistic >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Dec 16 09:00:19 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Dennis Yusupoff >Release: 8.1-STABLE >Organization: SOHO >Environment: FreeBSD server.dyr 8.1-STABLE FreeBSD 8.1-STABLE #5: Wed Nov 10 23:34:51 MSK 2010 root@server.dyr:/usr/obj/usr/src/sys/DYR_SERVER amd64 >Description: nestat doesn't clear IPv6 statictic, under any circumstates, by using "netstat -sz" or "netstat -s -z -f inet6". === root@server:/usr/home/dyr (7203) netstat -ssz -f inet6; netstat -ss -f inet6 tcp: 1767 packets sent 243 data packets (32971 bytes) 1212 ack-only packets (0 delayed) 101 window update packets 211 control packets 1490 packets received 404 acks (for 33086 bytes) 14 duplicate acks 1092 packets (1392624 bytes) received in-sequence 7 window update packets 1 packet received after close 101 connection requests 14 connection accepts 102 connections established (including accepts) 116 connections closed (including 0 drops) 15 connections updated cached RTT on close 15 connections updated cached RTT variance on close 13 embryonic connections dropped 402 segments updated rtt (of 402 attempts) 18 retransmit timeouts 2 keepalive timeouts 2 connections dropped by keepalive 918 correct data packet header predictions 14 syncache entries added 14 completed 14 cookies sent 7 SACK options (SACK blocks) received udp: 438 datagrams received 22 dropped due to no socket 7 broadcast/multicast datagrams undelivered 34 dropped due to full socket buffers 375 delivered 392 datagrams output ip6: 669902 total packets received 93933 packets for this host 517361 packets forwarded 192733 packets sent from this host 265 multicast packets which we don't join Input histogram: TCP: 377282 UDP: 69829 ICMP6: 214085 no next header: 8706 Mbuf statistics: 26188 one mbuf two or more mbuf: lo0= 2 643712 one ext mbuf 0 two or more ext mbuf Source addresses selection rule applied: 111354 first candidate 10366 same address 139781 appropriate scope 135406 outgoing interface icmp6: 28088 calls to icmp6_error Output histogram: unreach: 28088 echo reply: 12 router advertisement: 9185 neighbor solicitation: 52557 neighbor advertisement: 20923 MLDv2 listener report: 22 Input histogram: echo: 12 router solicitation: 197 router advertisement: 10877 neighbor solicitation: 20923 neighbor advertisement: 37674 Histogram of error messages to be generated: 4635 address unreachable 23453 port unreachable 12 message responses generated ipsec6: rip6: tcp: 11 packets sent 11 data packets (2636 bytes) 3 packets received 3 acks (for 2688 bytes) 2 segments updated rtt (of 1 attempt) udp: ip6: 669902 total packets received 93933 packets for this host 517361 packets forwarded 192733 packets sent from this host 265 multicast packets which we don't join Input histogram: TCP: 377282 UDP: 69829 ICMP6: 214085 no next header: 8706 Mbuf statistics: 26188 one mbuf two or more mbuf: lo0= 2 643712 one ext mbuf 0 two or more ext mbuf Source addresses selection rule applied: 111354 first candidate 10366 same address 139781 appropriate scope 135406 outgoing interface icmp6: 28088 calls to icmp6_error Output histogram: unreach: 28088 echo reply: 12 router advertisement: 9185 neighbor solicitation: 52557 neighbor advertisement: 20923 MLDv2 listener report: 22 Input histogram: echo: 12 router solicitation: 197 router advertisement: 10877 neighbor solicitation: 20923 neighbor advertisement: 37674 Histogram of error messages to be generated: 4635 address unreachable 23453 port unreachable 12 message responses generated ipsec6: rip6: === >How-To-Repeat: Do netstat -ssz -f inet6; netstat -ss -f inet6 and compare. >Fix: >Release-Note: >Audit-Trail: >Unformatted: