misc/188153: Interface name in the netstat (1) command is displayed as the first 7 characters, and the rest is cut off

Vladislav V. Prodan admin at support.od.ua
Tue Apr 1 01:10:05 UTC 2014


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


More information about the freebsd-bugs mailing list