From owner-freebsd-hackers@FreeBSD.ORG Fri Feb 24 13:40:26 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 986DA16A422; Fri, 24 Feb 2006 13:40:26 +0000 (GMT) (envelope-from nvass@teledomenet.gr) Received: from matrix.teledomenet.gr (dns1.teledomenet.gr [213.142.128.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id CF5F143D53; Fri, 24 Feb 2006 13:40:25 +0000 (GMT) (envelope-from nvass@teledomenet.gr) Received: from iris ([192.168.1.71]) by matrix.teledomenet.gr (8.12.10/8.12.10) with ESMTP id k1ODeNuq015943; Fri, 24 Feb 2006 15:40:23 +0200 From: Nikos Vassiliadis To: Giorgos Keramidas Date: Fri, 24 Feb 2006 15:36:52 +0200 User-Agent: KMail/1.8.3 References: <200602221550.17842.nvass@teledomenet.gr> <200602241512.05376.nvass@teledomenet.gr> <20060224132424.GA2353@flame.pc> In-Reply-To: <20060224132424.GA2353@flame.pc> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200602241536.53157.nvass@teledomenet.gr> Cc: freebsd-hackers@freebsd.org, Gary Corcoran , Eugene Grosbein Subject: Re: (feature change request) remove link-layer generated routes from netstat -r X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Feb 2006 13:40:26 -0000 On Friday 24 February 2006 15:24, Giorgos Keramidas wrote: > On 2006-02-24 15:12, Nikos Vassiliadis wrote: > >On Friday 24 February 2006 15:04, Giorgos Keramidas wrote: > >>On 2006-02-24 15:00, Giorgos Keramidas wrote: > >>> Unfortunately, the -s option is taken already. It enables the display > >>> of statistics. A possible alternative is the -c (compact) option, > >>> i.e. with a patch similar to the following: > >>> > >>> [...] > >> > >> I forgot to show sample output, sorry: > >> > >> Current netstat output format: > >> > >> % $ sudo ./netstat -rf inet -n > >> % Routing tables > >> % > >> % Internet: > >> % Destination Gateway Flags Refs Use Netif > >> Expire % default 10.6.0.1 UGS 0 4683 > >> bge0 % 10.6/24 link#2 UC 0 0 > >> bge0 % 10.6.0.1 00:04:e2:7c:23:b4 UHLW 2 0 > >> bge0 % 10.6.0.2 00:80:48:18:dd:27 UHLW 1 209 > >> bge0 % 10.6.0.14 00:50:8d:e9:ff:89 UHLW 1 363 > >> bge0 % 10.6.0.31 00:02:b3:9f:37:49 UHLW 1 15 > >> bge0 % 10.6.0.98 00:0a:e4:42:91:f5 UHLW 1 21110 > >> bge0 % 10.6.0.170 02:00:43:fe:16:c1 UHLW 1 175 > >> bge0 % 10.6.0.199 00:03:a0:89:90:c3 UHLW 2 0 > >> bge0 % 127.0.0.1 127.0.0.1 UH 0 6052 > >> lo0 % $ > >> > >> Compact netstat output format: > >> > >> % $ sudo ./netstat -rf inet -nc > >> % Routing tables > >> % > >> % Internet: > >> % Destination Gateway Flags Refs Use Netif > >> Expire % default 10.6.0.1 UGS 0 4683 > >> bge0 % 10.6/24 link#2 UC 0 0 > >> bge0 % 127.0.0.1 127.0.0.1 UH 0 6052 > >> lo0 % $ > >> > >> Niko, does this look ok? > > > > Yes, it's fine. Could you commit it to -HEAD? > > Not immediately, sorry. I'm not an src-committer. I'll ask for > approval, or let John Baldwin handle this. Perfect, thanks, Giorgo