summaryrefslogtreecommitdiffstats
path: root/usr.bin/netstat
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2000-09-18 11:14:40 +0000
committerru <ru@FreeBSD.org>2000-09-18 11:14:40 +0000
commit25d0042e1105a6e2ec7e8ef83b7e1a44bec7eebe (patch)
tree3fbbaa66dd2f8bed036b4dde5573000292806274 /usr.bin/netstat
parente368cca5cf2cf743b617c8f27433276757ed639e (diff)
downloadFreeBSD-src-25d0042e1105a6e2ec7e8ef83b7e1a44bec7eebe.zip
FreeBSD-src-25d0042e1105a6e2ec7e8ef83b7e1a44bec7eebe.tar.gz
Fixed the printing of header for IPv4 routing table without -l option.
Broken in rev 1.44.
Diffstat (limited to 'usr.bin/netstat')
-rw-r--r--usr.bin/netstat/route.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/netstat/route.c b/usr.bin/netstat/route.c
index b6b6382..0a52e56 100644
--- a/usr.bin/netstat/route.c
+++ b/usr.bin/netstat/route.c
@@ -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",
OpenPOWER on IntegriCloud