Re: (feature change request) remove link-layer generated routes from netstat -r



On 2006-02-24 15:12, Nikos Vassiliadis <nvass@xxxxxxxxxxxxxx> wrote:
On Friday 24 February 2006 15:04, Giorgos Keramidas wrote:
On 2006-02-24 15:00, Giorgos Keramidas <keramida@xxxxxxxxxxxxxxx> 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.

_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"



Relevant Pages