Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Feb 2006 15:04:33 +0200
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        Nikos Vassiliadis <nvass@teledomenet.gr>
Cc:        freebsd-hackers@freebsd.org, Gary Corcoran <gcorcoran@rcn.com>, Eugene Grosbein <eugen@kuzbass.ru>
Subject:   Re: (feature change request) remove link-layer generated routes	from netstat -r
Message-ID:  <20060224130433.GB1800@flame.pc>
In-Reply-To: <20060224130024.GA1800@flame.pc>
References:  <200602221550.17842.nvass@teledomenet.gr> <43FDED8A.90208@rcn.com> <20060223182412.GA33297@flame.pc> <200602241132.54728.nvass@teledomenet.gr> <20060224130024.GA1800@flame.pc>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2006-02-24 15:00, Giorgos Keramidas <keramida@ceid.upatras.gr> 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?




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060224130433.GB1800>