diff options
author | shin <shin@FreeBSD.org> | 2000-03-14 17:18:43 +0000 |
---|---|---|
committer | shin <shin@FreeBSD.org> | 2000-03-14 17:18:43 +0000 |
commit | a6a887a7e3e616488db05ad03799365e524f5603 (patch) | |
tree | dea7da74300bc806b07ee4e32ba99f0c7981fb65 /usr.bin | |
parent | daf0d5fb1284cd54875750e481e6ee53cf592ec2 (diff) | |
download | FreeBSD-src-a6a887a7e3e616488db05ad03799365e524f5603.zip FreeBSD-src-a6a887a7e3e616488db05ad03799365e524f5603.tar.gz |
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.)
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/netstat/route.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/netstat/route.c b/usr.bin/netstat/route.c index 90438cb..a35946c 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) { |