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.)
This commit is contained in:
Yoshinobu Inoue 2000-03-14 17:18:43 +00:00
parent 4a447c7023
commit b1d49ce7b6

View File

@ -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) {