From owner-freebsd-bugs@FreeBSD.ORG Fri Nov 18 10:30:14 2011 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CFC091065674 for ; Fri, 18 Nov 2011 10:30:13 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id B47FD8FC17 for ; Fri, 18 Nov 2011 10:30:13 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id pAIAUDpW044611 for ; Fri, 18 Nov 2011 10:30:13 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id pAIAUDVN044604; Fri, 18 Nov 2011 10:30:13 GMT (envelope-from gnats) Date: Fri, 18 Nov 2011 10:30:13 GMT Message-Id: <201111181030.pAIAUDVN044604@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Dennis Yusupoff Cc: Subject: Re: bin/161986: [patch] netstat(1): Interface auto-width in " netstat -rn" X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Dennis Yusupoff List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Nov 2011 10:30:14 -0000 The following reply was made to PR bin/161986; it has been noted by GNATS. From: Dennis Yusupoff To: bug-followup@FreeBSD.org, pershin87@yandex.ru Cc: Subject: Re: bin/161986: [patch] netstat(1): Interface auto-width in "netstat -rn" Date: Fri, 18 Nov 2011 14:21:32 +0400 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig5D86B41D394D8570270AFE3F Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Thank you for your patch, it works excellent, what I really wanted to see al this years! :) Example after patch: =3D=3D=3D netstat -rn Routing tables Internet: Destination Gateway Flags Refs Use Netif Exp= ire default 10.78.77.35 UGS 0 2538 em0 1.1.1.0/30 link#7 U 0 0 em0.3050 1.1.1.1 link#7 UHS 0 0 lo0 127.0.0.1 link#6 UH 0 1 lo0 =3D=3D=3D It's even works with renamed interfaces also: =3D=3D=3D # ifconfig em0.3050 name eth0.tag.3050 # netstat -rn|grep eth0 1.1.1.0/30 link#7 U 0 0 eth0.tag.305= 0 # =3D=3D=3D Brilliant! And, there is also same problem with interface counters view (netstat -i). Moreover, it doesn't viewed correctly even in wide mode! See: =3D=3D=3D root@exBastinda:/usr/src/usr.bin/netstat (387) netstat -inW|grep em0 em0 1500 00:30:48:64:e9:4a 133090 0 0 =20 18862 0 0 em0 1500 10.78.77.0/24 10.78.77.22 23468 - - =20 16827 - - em0.305 1500 00:30:48:64:e9:4a 0 0 =20 0 2 0 0 em0.305 1500 1.1.1.0/30 1.1.1.1 0 - =20 - 0 - - root@exBastinda:/usr/src/usr.bin/netstat (388) netstat -in|grep em0 em0 1500 00:30:48:64:e9:4a 133117 0 0 =20 18889 0 0 em0 1500 10.78.77.0/24 10.78.77.22 23495 - - =20 16854 - - em0.3 1500 00:30:48:64:e9:4a 0 0 0 =20 2 0 0 em0.3 1500 1.1.1.0/30 1.1.1.1 0 - - =20 0 - - =3D=3D=3D So would you be so kind to fix this behavior also? --=20 With best regards, Dennis Yusupoff, network engineer of Smart-Telecom ISP Russia, Saint-Petersburg=20 --------------enig5D86B41D394D8570270AFE3F Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJOxjGsAAoJEBUTaqBS2NB4PfwH/A6qP6RC6VhekbFSYZ0+LPx1 HcePtxzawbZH0Yguw4qs4zuy/pbzIs7YyfRWsj36JkpRCUBn6hN7mYt9whNQ0Ai/ H2orGTa/EPTx+3yBmufZ06rKr42oU2UhsIKH+PIjADpIIL80q7ZOtysLu0d5HWY/ qvDAfq6PqJLqvrmBe/8sjhklGFLNPSnQUxk+F/1VOel6V91utYZa6XzkWkTk25NO KtjTUWIZMk6BSLqXfJCx+1UVqncvdxlQw6Iw14nroNgsxsNG2oP1lIn4F1ELFNkJ piRy8Ojn+MP+XMdkjmBjah/Uz1kuI0YMLSA+Nk54f+CqGiJs4VkQoCa+Iq8jUiA= =YavP -----END PGP SIGNATURE----- --------------enig5D86B41D394D8570270AFE3F--