From nobody@FreeBSD.org  Tue Apr  1 01:01:55 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 C020F4D3
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  1 Apr 2014 01:01:55 +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 ABFB8C5F
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  1 Apr 2014 01:01:55 +0000 (UTC)
Received: from cgiserv.freebsd.org ([127.0.1.6])
	by cgiserv.freebsd.org (8.14.8/8.14.8) with ESMTP id s3111s58078312
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 1 Apr 2014 01:01:54 GMT
	(envelope-from nobody@cgiserv.freebsd.org)
Received: (from nobody@localhost)
	by cgiserv.freebsd.org (8.14.8/8.14.8/Submit) id s3111sGD078310;
	Tue, 1 Apr 2014 01:01:54 GMT
	(envelope-from nobody)
Message-Id: <201404010101.s3111sGD078310@cgiserv.freebsd.org>
Date: Tue, 1 Apr 2014 01:01:54 GMT
From: "Vladislav V. Prodan" <admin@support.od.ua>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Interface name in the netstat (1) command is displayed as the first 7 characters, and the rest is cut off 
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         188153
>Category:       bin
>Synopsis:       Interface name in the netstat(1) command is displayed as the first 7 characters, and the rest is cut off
>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:   Tue Apr 01 01:10:03 UTC 2014
>Closed-Date:    
>Last-Modified:  Wed Apr 02 00:40:45 UTC 2014
>Originator:     Vladislav V. Prodan
>Release:        FreeBSD 10.0
>Organization:
support.od.ua
>Environment:
FreeBSD vm-10-1.domain.com 10.0-STABLE FreeBSD 10.0-STABLE #0: Tue Mar 18 23:06:27 EET 2014     root@vm-10-1.domain.com:/usr/obj/usr/src/sys/vm-10.3  amd64

>Description:
I created more than a hundred Vlan using netgraph.
But I can not see the name of the interface, even with the option -W, because the interface name is truncated to 7 characters.

# netstat -inW | more
Name      Mtu Network       Address              Ipkts Ierrs Idrop    Opkts Oerrs  Coll
..
vlan122  1500 <Link#9>      08:00:27:cd:9b:8e        0     0     0        0     0     0
ngeth12  1500 <Link#10>     08:00:27:cd:9b:8e        0     0     0        0     7     0
ngeth12     - 172.18.173.41 172.18.173.41            0     -     -        0     -     -
ngeth12     - fe80::a00:27f fe80::a00:27ff:fe        0     -     -        2     -     -
ngeth12     - 2001:570:28:1 2001:570:28:140::        0     -     -        0     -     -
ngeth12  1500 <Link#11>     08:00:27:cd:9b:8e        0     0     0        0     7     0
ngeth12     - 172.18.173.43 172.18.173.43            0     -     -        0     -     -
ngeth12     - fe80::a00:27f fe80::a00:27ff:fe        0     -     -        1     -     -
ngeth12     - 2001:570:28:1 2001:570:28:140::        0     -     -        0     -     -
ngeth12  1500 <Link#12>     08:00:27:cd:9b:8e        0     0     0        0     9     0
ngeth12     - 2001:570:28:1 2001:570:28:140::        0     -     -        0     -     -
ngeth12     - fe80::a00:27f fe80::a00:27ff:fe        0     -     -        2     -     -
ngeth12     - 172.18.173.45 172.18.173.45            0     -     -        0     -     -
..

# ifconfig | grep mtu | more
..
vlan122: flags=8842<BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ngeth122.50: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ngeth122.51: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ngeth122.52: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ngeth122.53: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ngeth122.54: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ngeth122.55: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ngeth122.56: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ngeth122.57: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ngeth122.58: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ngeth122.59: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ngeth122.60: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ngeth122.61: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ngeth122.62: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ngeth122.63: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ngeth122.64: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ngeth122.65: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ngeth122.66: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ngeth122.67: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ngeth122.68: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ngeth122.69: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ngeth122.70: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ngeth122.71: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
..
>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:
