From owner-freebsd-bugs@FreeBSD.ORG Mon May 26 20:30:01 2014 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9C48E296 for ; Mon, 26 May 2014 20:30:01 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6115F285D for ; Mon, 26 May 2014 20:30:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.8/8.14.8) with ESMTP id s4QKU1Q7075785 for ; Mon, 26 May 2014 20:30:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s4QKU1cv075784; Mon, 26 May 2014 20:30:01 GMT (envelope-from gnats) Resent-Date: Mon, 26 May 2014 20:30:01 GMT Resent-Message-Id: <201405262030.s4QKU1cv075784@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, Allan Jude Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 69DA1C1 for ; Mon, 26 May 2014 20:28:00 +0000 (UTC) Received: from cgiserv.freebsd.org (cgiserv.freebsd.org [IPv6:2001:1900:2254:206a::50:4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 57A7E2846 for ; Mon, 26 May 2014 20:28:00 +0000 (UTC) Received: from cgiserv.freebsd.org ([127.0.1.6]) by cgiserv.freebsd.org (8.14.8/8.14.8) with ESMTP id s4QKS0Q5058571 for ; Mon, 26 May 2014 20:28:00 GMT (envelope-from nobody@cgiserv.freebsd.org) Received: (from nobody@localhost) by cgiserv.freebsd.org (8.14.8/8.14.8/Submit) id s4QKS0Y0058568; Mon, 26 May 2014 20:28:00 GMT (envelope-from nobody) Message-Id: <201405262028.s4QKS0Y0058568@cgiserv.freebsd.org> Date: Mon, 26 May 2014 20:28:00 GMT From: Allan Jude To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: bin/190281: netstat -s -i only shows ip6 statistics X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 May 2014 20:30:01 -0000 >Number: 190281 >Category: bin >Synopsis: netstat -s -i only shows ip6 statistics >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: Mon May 26 20:30:01 UTC 2014 >Closed-Date: >Last-Modified: >Originator: Allan Jude >Release: 11-CURRENT >Organization: ScaleEngine Inc. >Environment: FreeBSD Nexus.HML3.ScaleEngine.net 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r264302M: Wed Apr 9 17:39:15 UTC 2014 root@Nexus.HML3.ScaleEngine.net:/usr/obj/usr/src/sys/GENERIC amd64 >Description: 'netstat -s -i' should show protocol statistics per interface. However it only shows ip6 statistics 'netstat -s' works as intended (shows the sum of each statistic, both ipv4 and ipv6, for all interfaces) 'netstat -s -4' works as intended (shows system-wide ipv4 statistics) 'netstat -s -i -4' returns nothing Note 'netstat -s -s' suppresses 0 values #netstat -s | wc -l 348 #netstat -s -s | wc -l 120 #netstat -s -s -i | wc -l 18 #netstat -s -s -I igb0 | wc -l 6 #netstat -s -s -i -4 | wc -l 0 'netstat -s -s -i' should return the same more more lines than 'netstat -s -s', since it will break the statistics down per-interface >How-To-Repeat: netstat -s -i -4 >Fix: >Release-Note: >Audit-Trail: >Unformatted: