From 786548060cb951be16e7efee7aedcb28ead62853 Mon Sep 17 00:00:00 2001 From: Yoshinobu Inoue Date: Tue, 28 Mar 2000 16:56:34 +0000 Subject: MFC: Don't suppress Flags and Refs info for IPv4 entries. (They need to be suppressed by default for IPv6 entries to keep the column size of each entries in 80.) --- usr.bin/netstat/route.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/netstat') diff --git a/usr.bin/netstat/route.c b/usr.bin/netstat/route.c index 90438cb20236..a35946c1e32d 100644 --- a/usr.bin/netstat/route.c +++ b/usr.bin/netstat/route.c @@ -251,7 +251,7 @@ pr_rthdr(wid_af) if (Aflag) printf("%-8.8s ","Address"); - if (lflag) + if (wid_af == AF_INET || lflag) printf("%-*.*s %-*.*s %-6.6s %6.6s%8.8s %8.8s %6s\n", wid_dst, wid_dst, "Destination", wid_gw, wid_gw, "Gateway", @@ -612,7 +612,7 @@ p_rtentry(rt) #endif WID_GW); p_flags(rt->rt_flags, "%-6.6s "); - if (lflag) + if (addr.u_sa.sa_family == AF_INET || lflag) printf("%6ld %8ld ", rt->rt_refcnt, rt->rt_use); if (rt->rt_ifp) { if (rt->rt_ifp != lastif) { -- cgit v1.3