From owner-freebsd-hackers@FreeBSD.ORG Fri Feb 24 13:25:11 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 8546416A420; Fri, 24 Feb 2006 13:25:11 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3C40E43D45; Fri, 24 Feb 2006 13:25:10 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from flame.pc (aris.bedc.ondsl.gr [62.103.39.226]) (authenticated bits=128) by igloo.linux.gr (8.13.5/8.13.5/Debian-3) with ESMTP id k1ODOsgq007349 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 24 Feb 2006 15:24:58 +0200 Received: from flame.pc (flame [127.0.0.1]) by flame.pc (8.13.4/8.13.4) with ESMTP id k1ODOOLv002368; Fri, 24 Feb 2006 15:24:24 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by flame.pc (8.13.4/8.13.4/Submit) id k1ODOOnl002367; Fri, 24 Feb 2006 15:24:24 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Fri, 24 Feb 2006 15:24:24 +0200 From: Giorgos Keramidas To: Nikos Vassiliadis Message-ID: <20060224132424.GA2353@flame.pc> References: <200602221550.17842.nvass@teledomenet.gr> <20060224130024.GA1800@flame.pc> <20060224130433.GB1800@flame.pc> <200602241512.05376.nvass@teledomenet.gr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200602241512.05376.nvass@teledomenet.gr> X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (score=-3.373, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.83, BAYES_00 -2.60, DNS_FROM_RFC_ABUSE 0.20) X-Hellug-MailScanner-From: keramida@ceid.upatras.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:25:11 -0000 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.