From nobody Wed Jun 29 14:56:41 2022 X-Original-To: freebsd-net@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 36BAE871520 for ; Wed, 29 Jun 2022 14:56:53 +0000 (UTC) (envelope-from cross+freebsd@distal.com) Received: from relay.wiredblade.com (relay.wiredblade.com [168.235.105.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4LY4LD0yX1z4m8K for ; Wed, 29 Jun 2022 14:56:51 +0000 (UTC) (envelope-from cross+freebsd@distal.com) Received: from mail.distal.com (pool-108-45-159-88.washdc.fios.verizon.net [108.45.159.88]) by relay.wiredblade.com with ESMTPSA (version=TLSv1.2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256) ; Wed, 29 Jun 2022 14:56:44 +0000 Received: from smtpclient.apple ( [2001:420:c0c4:1006::659]) by tristain.distal.com (OpenSMTPD) with ESMTPSA id 7bcfffdd (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Wed, 29 Jun 2022 10:56:42 -0400 (EDT) From: Chris Ross Content-Type: multipart/alternative; boundary="Apple-Mail=_8D107338-0FD8-46BD-8E46-ED3DF4257F07" List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.100.31\)) Subject: Netstat -i 5-character interface name length? Message-Id: Date: Wed, 29 Jun 2022 10:56:41 -0400 Cc: Chris Ross To: freebsd-net@freebsd.org X-Mailer: Apple Mail (2.3696.100.31) X-Rspamd-Queue-Id: 4LY4LD0yX1z4m8K X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of cross@distal.com designates 168.235.105.136 as permitted sender) smtp.mailfrom=cross@distal.com X-Spamd-Result: default: False [-1.48 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+a:relay.dynu.com]; TAGGED_RCPT(0.00)[freebsd]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; ARC_NA(0.00)[]; DMARC_NA(0.00)[distal.com]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-0.68)[-0.678]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; MLMMJ_DEST(0.00)[freebsd-net]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:3842, ipnet:168.235.104.0/22, country:US]; TAGGED_FROM(0.00)[freebsd]; RCVD_TLS_ALL(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[108.45.159.88:received] X-ThisMailContainsUnwantedMimeParts: N --Apple-Mail=_8D107338-0FD8-46BD-8E46-ED3DF4257F07 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hello folks. I just noticed something that I=E2=80=99m sure has been = true forever, but I checked and it=E2=80=99s still true on my = 12.3-STABLE system. In the daily run output, I=E2=80=99m seeing the network interface names = truncated. This comes from netstat -I apparently only rendering the = first 5 characters of the interface name. Many of my systems have = `vlanNN` interfaces, but they show up as `vlanN` in netstat output. = Unfortautnely, I have all of vlan1, vlan3, vlan11, and vlan33 on one of = my systems (plus others). This makes it impossible to identify which of = the lines of output are which interface: vlan0 1500 90:e2:ba: dd:ee:ff 7898136066 0 0 = 6455161338 0 0 0=20 vlan0 - A.B.C.D/ pool-A.B.C.D 1172409474 - - 780810867 - = - -=20 vlan1 1500 90:e2:ba:dd:ee:ff 4317051938 0 0 = 4879301946 0 0 0=20 vlan1 - fe80::%vlan1/ fe80::92e2:baff:f 702196 - - = 4498316 - - -=20 vlan1 - 2001:470:e24c hostname 5966892 - - = 9302547 - - -=20 vlan3 1500 90:e2:ba:dd:ee:ff 230398636 0 0 = 317573885 0 0 0=20 vlan3 - fe80::%vlan3/ fe80::92e2:baff:f 399612 - - = 4042723 - - -=20 vlan3 - 2001:470:e24c 2001:470:e24c:66 523819 - - 7747524 = - - -=20 [=E2=80=A6] vlan1 1500 90:e2:ba:dd:ee:ff 220678168 0 0 = 525414925 0 0 0=20 vlan1 - 192.168.11.0 hostname 2931863 - - 6448727 = - - -=20 vlan1 - fe80::%vlan11 fe80::92e2:baff:f 518679 - - = 4145688 - - -=20 vlan1 - 2001:470:e24c 2001:470:e24c:11 614377 - - 7638691 = - - -=20 vlan3 1500 90:e2:ba:dd:ee:ff 179779 0 0 = 173578 0 0 0=20 vlan3 - 192.168.33.0/ hostname 12888 - - = 12311 - - -=20 vlan3 - fe80::%vlan33 fe80::92e2:baff:f 939 - - = 26025 - - -=20 vlan3 - 2001:470:e24c 2001:470:e24c:33: 2227 - - = 2915 - - -=20 Can someone check if this is still so in 13 or CURRENT, and/or let me = know if I=E2=80=99m doing something wrong? - Chris= --Apple-Mail=_8D107338-0FD8-46BD-8E46-ED3DF4257F07 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Hello= folks.  I just noticed something that I=E2=80=99m sure has been = true forever, but I checked and it=E2=80=99s still true on my = 12.3-STABLE system.

In= the daily run output, I=E2=80=99m seeing the network interface names = truncated.  This comes from netstat -I apparently only rendering = the first 5 characters of the interface name.  Many of my systems = have `vlanNN` interfaces, but they show up as `vlanN` in netstat output. =  Unfortautnely, I have all of vlan1, vlan3, vlan11, and vlan33 on = one of my systems (plus others).  This makes it impossible to = identify which of the lines of output are which interface:

vlan0=  1500 <Link#7> =      90:e2:ba: dd:ee:ff 7898136066 =     0     0 6455161338 =     0     0 =     0 
vlan0 =     - A.B.C.D/ pool-A.B.C.D 1172409474 =     -     - 780810867 =     -     - =     - 
vlan1  1500 = <Link#8>      90:e2:ba:dd:ee:ff = 4317051938     0     0 = 4879301946     0     0 =     0 
vlan1 =     - fe80::%vlan1/ fe80::92e2:baff:f =   702196     -     - =  4498316     -     - =     - 
vlan1 =     - 2001:470:e24c hostname       =     5966892     - =     -  9302547     - =     -     - 
vlan3  1500 <Link#9> =      90:e2:ba:dd:ee:ff 230398636     0 =     0 317573885     0 =     0     0 
vlan3     - fe80::%vlan3/ = fe80::92e2:baff:f   399612     - =     -  4042723     - =     -     - 
vlan3     - 2001:470:e24c = 2001:470:e24c:66   523819     - =     -  7747524     - =     -     - 
[=E2=80=A6]
vlan1  1500 <Link#13> =     90:e2:ba:dd:ee:ff 220678168     0 =     0 525414925     0 =     0 =     0 
vlan1 =     - 192.168.11.0 hostname          =  2931863     -     - =  6448727     -     - =     - 
vlan1 =     - fe80::%vlan11 fe80::92e2:baff:f =   518679     -     - =  4145688     -     - =     - 
vlan1 =     - 2001:470:e24c 2001:470:e24c:11   614377 =     -     -  7638691 =     -     - =     - 
vlan3  1500 = <Link#14>     90:e2:ba:dd:ee:ff   179779 =     0     0   173578 =     0     0 =     0 
vlan3 =     - 192.168.33.0/ hostname          =    12888     -     - =    12311     - =     -     - 
vlan3     - fe80::%vlan33 = fe80::92e2:baff:f      939 =     -     - =    26025     - =     -     - 
vlan3     - 2001:470:e24c = 2001:470:e24c:33:     2227     - =     -     2915 =     -     - =     - 

Can = someone check if this is still so in 13 or CURRENT, and/or let me know = if I=E2=80=99m doing something wrong?

            =  - Chris
= --Apple-Mail=_8D107338-0FD8-46BD-8E46-ED3DF4257F07--