From nobody Fri Jul 1 09:11:07 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 6DAEB87AF32 for ; Fri, 1 Jul 2022 09:11:18 +0000 (UTC) (envelope-from SRS0=v7xp=XG=klop.ws=ronald-lists@realworks.nl) Received: from smtp-relay-int.realworks.nl (smtp-relay-int.realworks.nl [194.109.157.24]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4LZ8ZY3sZqz3CVY for ; Fri, 1 Jul 2022 09:11:17 +0000 (UTC) (envelope-from SRS0=v7xp=XG=klop.ws=ronald-lists@realworks.nl) Date: Fri, 1 Jul 2022 11:11:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=klop.ws; s=rw2; t=1656666669; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=KYzjjNTsYh/5+t9fuLB3lGBNWQVyVVJ4zVKcIQx3olw=; b=mIJKByZ4ArtsEwCO3qTaU4bi3ZcwCxufL3KBsrWrIPXDJDQzQzqbuWh0Q+gDwYAsuv0FzH YjDnlNO/4WGPb4X2n0XTDXkFBV+6kps3iF8/cI7NZFkaKgdHBCAAS3DrjwZMdXMKfbdEZt 9Rvxs7ZMfhaH4AtHhwJfE2ASFWXg1jCdRATs9H2AyUVaCLQpxA4kFdQsiqwdaULBL9UUyv rH5ZOVHkJbQHaSb0fPs141T+F4K12drzYxlAMfXj0Q6HclhfqP2eY5oix3Dqn1XezY/xED TFTptGTxBVbxw46fz55uPBWvS6Z9o4nvSdUkX4iJrU390ZuzRLtw8saVESUvKg== From: Ronald Klop To: George Michaelson Cc: freebsd-net@freebsd.org, "Rodney W. Grimes" , mike tancsa , Chris Ross Message-ID: <1823295646.70.1656666667833@localhost> In-Reply-To: References: <0843509a-fe0c-ffe8-2cfe-534872bc33bd@sentex.net> <202206301516.25UFGSrM090126@gndrsh.dnsmgr.net> Subject: Re: Netstat -i 5-character interface name length? 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 Content-Type: multipart/alternative; boundary="----=_Part_69_1342544045.1656666667825" X-Mailer: Realworks (613.97.a0c3c70) Importance: Normal X-Priority: 3 (Normal) X-Rspamd-Queue-Id: 4LZ8ZY3sZqz3CVY X-Spamd-Bar: + Authentication-Results: mx1.freebsd.org; dkim=pass header.d=klop.ws header.s=rw2 header.b=mIJKByZ4; dmarc=pass (policy=quarantine) header.from=klop.ws; spf=pass (mx1.freebsd.org: domain of "SRS0=v7xp=XG=klop.ws=ronald-lists@realworks.nl" designates 194.109.157.24 as permitted sender) smtp.mailfrom="SRS0=v7xp=XG=klop.ws=ronald-lists@realworks.nl" X-Spamd-Result: default: False [1.26 / 15.00]; MID_RHS_NOT_FQDN(0.50)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[klop.ws:s=rw2]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:194.109.157.0/24]; NEURAL_HAM_LONG(-1.00)[-1.000]; TAGGED_RCPT(0.00)[freebsd]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RCPT_COUNT_FIVE(0.00)[5]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_SHORT(0.96)[0.959]; DKIM_TRACE(0.00)[klop.ws:+]; DMARC_POLICY_ALLOW(-0.50)[klop.ws,quarantine]; HAS_X_PRIO_THREE(0.00)[3]; MLMMJ_DEST(0.00)[freebsd-net]; FORGED_SENDER(0.30)[ronald-lists@klop.ws,SRS0=v7xp=XG=klop.ws=ronald-lists@realworks.nl]; RCVD_COUNT_ZERO(0.00)[0]; MIME_TRACE(0.00)[0:+,1:+,2:~]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:3265, ipnet:194.109.0.0/16, country:NL]; FROM_NEQ_ENVFROM(0.00)[ronald-lists@klop.ws,SRS0=v7xp=XG=klop.ws=ronald-lists@realworks.nl]; SUSPICIOUS_RECIPS(1.50)[] X-ThisMailContainsUnwantedMimeParts: N ------=_Part_69_1342544045.1656666667825 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Van: George Michaelson Datum: vrijdag, 1 juli 2022 00:50 Aan: "Rodney W. Grimes" CC: mike tancsa , Chris Ross , freebsd-net@freebsd.org Onderwerp: Re: Netstat -i 5-character interface name length? > > Is there a reason (avoid bikeshedding) the field width can't be > increased to allow the bgeXhexIsVeryLong0 names to work? I agree. I hope POLA is more leaning towards "why does netstat not print the interface name correctly?" than "my 15 year old script parsing the output of netstat doesn't understand strings longer than 5 chars". $ netstat -i | grep Link Name Mtu Network Address Ipkts Ierrs Idrop Opkts Oerrs Coll genet 1500 dc:a6:32:da:f4:3b 62095311 0 0 105591894 0 0 lo0 16384 lo0 1 0 0 1 0 0 bridg 1500 58:9c:fc:00:3e:aa 18616989 0 0 18652615 8 0 vlan3 1500 dc:a6:32:da:f4:3b 9673278 0 0 5695824 8 0 epair 1500 02:c8:49:24:bd:0a 3041667 0 0 4467006 17 0 epair 1500 02:d5:f0:fe:9e:0a 1529717 0 0 1932170 17 0 epair 1500 02:96:17:58:ce:0a 2384154 0 0 4740683 17 0 epair 1500 02:b2:7f:d6:da:0a 8746 0 0 22125 22 0 epair 1500 02:81:38:75:d1:0a 87264 0 0 178535 21 0 epair 1500 02:ad:f2:49:60:0a 78055 0 0 160252 21 0 epair 1500 02:0d:07:81:b2:0a 1814108 0 0 1455889 16 0 So all "default" interface names do not fit. I don't like the solution of "rename all your interfaces" as I think the out-of-the-box experience can be made better. I'll vote for enabling -W by default and add an option for backwards compatibility. Regards, Ronald. > > I'm not saying "you can alias around this" is bad, but I sense we're > walking into a world which is where Linux is, with every physical > device called eth0/1/2 and then "which" device is eth0 becomes a > question.. > > On Fri, Jul 1, 2022 at 1:17 AM Rodney W. Grimes > wrote: > > > > [ Charset UTF-8 unsupported, converting... ] > > > On 6/29/2022 10:56 AM, Chris Ross wrote: > > > > Hello folks. ?I just noticed something that I?m sure has been true > > > > forever, but I checked and it?s still true on my 12.3-STABLE system. > > > > > > > One of the first local mods I do is alias netstat to netstat -W for this > > > reason. e.g. > > > alias netstat?? netstat -W > > > > > > in /etc/csh.cshrc > > > > That only fixes it for your interactive csh processes, the > > original poster had specifically mentioned output from > > periodic scrips, aka daily iirc. > > > > One thing that can be done to mitigate the long vlan > > dev name (imho the vlan driver should of just named > > itself much short, like "vl", as most network devices > > are 2 litter names anyway) is to use the "name" option > > of ifconfig to give them a better name than the default. > > > > ifconfig vlan2 create vlandev em0 vlan 2 name v2 > > > > -- > > Rod Grimes rgrimes@freebsd.org > > > > ------=_Part_69_1342544045.1656666667825 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit  

Van: George Michaelson <ggm@algebras.org>
Datum: vrijdag, 1 juli 2022 00:50
Aan: "Rodney W. Grimes" <freebsd-rwg@gndrsh.dnsmgr.net>
CC: mike tancsa <mike@sentex.net>, Chris Ross <cross+freebsd@distal.com>, freebsd-net@freebsd.org
Onderwerp: Re: Netstat -i 5-character interface name length?

Is there a reason (avoid bikeshedding) the field width can't be
increased to allow the bgeXhexIsVeryLong0 names to work?


I agree. I hope POLA is more leaning towards "why does netstat not print the interface name correctly?" than "my 15 year old script parsing the output of netstat doesn't understand strings longer than 5 chars".
$ netstat -i | grep Link
Name    Mtu Network       Address              Ipkts Ierrs Idrop    Opkts Oerrs  Coll
genet  1500 <Link#1>      dc:a6:32:da:f4:3b 62095311     0     0 105591894     0     0
lo0   16384 <Link#2>      lo0                      1     0     0        1     0     0
bridg  1500 <Link#3>      58:9c:fc:00:3e:aa 18616989     0     0 18652615     8     0
vlan3  1500 <Link#4>      dc:a6:32:da:f4:3b  9673278     0     0  5695824     8     0
epair  1500 <Link#5>      02:c8:49:24:bd:0a  3041667     0     0  4467006    17     0
epair  1500 <Link#7>      02:d5:f0:fe:9e:0a  1529717     0     0  1932170    17     0
epair  1500 <Link#9>      02:96:17:58:ce:0a  2384154     0     0  4740683    17     0
epair  1500 <Link#11>     02:b2:7f:d6:da:0a     8746     0     0    22125    22     0
epair  1500 <Link#17>     02:81:38:75:d1:0a    87264     0     0   178535    21     0
epair  1500 <Link#19>     02:ad:f2:49:60:0a    78055     0     0   160252    21     0
epair  1500 <Link#21>     02:0d:07:81:b2:0a  1814108     0     0  1455889    16     0

So all "default" interface names do not fit. I don't like the solution of "rename all your interfaces" as I think the out-of-the-box experience can be made better.
I'll vote for enabling -W by default and add an option for backwards compatibility.

Regards,
Ronald.



 

I'm not saying "you can alias around this" is bad, but I sense we're
walking into a world which is where Linux is, with every physical
device called eth0/1/2 and then "which" device is eth0 becomes a
question..

On Fri, Jul 1, 2022 at 1:17 AM Rodney W. Grimes
<freebsd-rwg@gndrsh.dnsmgr.net> wrote:
>
> [ Charset UTF-8 unsupported, converting... ]
> > On 6/29/2022 10:56 AM, Chris Ross wrote:
> > > Hello folks. ?I just noticed something that I?m sure has been true
> > > forever, but I checked and it?s still true on my 12.3-STABLE system.
> > >
> > One of the first local mods I do is alias netstat to netstat -W for this
> > reason. e.g.
> > alias netstat?? netstat -W
> >
> > in /etc/csh.cshrc
>
> That only fixes it for your interactive csh processes, the
> original poster had specifically mentioned output from
> periodic scrips, aka daily iirc.
>
> One thing that can be done to mitigate the long vlan
> dev name (imho the vlan driver should of just named
> itself much short, like "vl", as most network devices
> are 2 litter names anyway) is to use the "name" option
> of ifconfig to give them a better name than the default.
>
> ifconfig vlan2 create vlandev em0 vlan 2 name v2
>
> --
> Rod Grimes                                                 rgrimes@freebsd.org
>
 
------=_Part_69_1342544045.1656666667825--