From nobody@FreeBSD.org  Mon May 26 20:28:00 2014
Return-Path: <nobody@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 69DA1C1
	for <freebsd-gnats-submit@FreeBSD.org>; 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 <freebsd-gnats-submit@FreeBSD.org>; 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 <freebsd-gnats-submit@FreeBSD.org>; 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 <allanjude@freebsd.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: netstat -s -i only shows ip6 statistics
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>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:
