diff options
| author | Yoshinobu Inoue <shin@FreeBSD.org> | 2000-03-28 16:56:34 +0000 |
|---|---|---|
| committer | Yoshinobu Inoue <shin@FreeBSD.org> | 2000-03-28 16:56:34 +0000 |
| commit | 786548060cb951be16e7efee7aedcb28ead62853 (patch) | |
| tree | 91cc8f0d852c4ef6f72ddb3b26490b29d809c467 /usr.bin/netstat | |
| parent | 7c1ac0f2e415abcdf4eaeb7785c07568c4bc52cc (diff) | |
Notes
Diffstat (limited to 'usr.bin/netstat')
| -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 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) { |
