Fixed the printing of header for IPv4 routing table without -l option.

Broken in rev 1.44.
This commit is contained in:
Ruslan Ermilov 2000-09-18 11:14:40 +00:00
parent c74c29ca6b
commit 3f320c4e60

View file

@ -248,7 +248,7 @@ pr_rthdr(af)
if (Aflag)
printf("%-8.8s ","Address");
if (lflag)
if (af == AF_INET || lflag)
printf("%-*.*s %-*.*s %-6.6s %6.6s%8.8s %8.8s %6s\n",
WID_DST(af), WID_DST(af), "Destination",
WID_GW(af), WID_GW(af), "Gateway",