Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Apr 2014 01:01:54 GMT
From:      "Vladislav V. Prodan" <admin@support.od.ua>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/188153: Interface name in the netstat (1) command is displayed as the first 7 characters, and the rest is cut off 
Message-ID:  <201404010101.s3111sGD078310@cgiserv.freebsd.org>
Resent-Message-ID: <201404010110.s311A5JN038715@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         188153
>Category:       misc
>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:
>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201404010101.s3111sGD078310>