aboutsummaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2001-03-15 14:52:12 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2001-03-15 14:52:12 +0000
commit089cdfad789bebd55c52712f9148cd271079f866 (patch)
treec7b9991abe57958ae0b8a73c6cef3bcc45c8e18c /usr.bin
parent009344d130ea99732792ba10e921373129caa958 (diff)
Notes
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/netstat/netstat.111
-rw-r--r--usr.bin/netstat/route.c4
2 files changed, 10 insertions, 5 deletions
diff --git a/usr.bin/netstat/netstat.1 b/usr.bin/netstat/netstat.1
index 2f4a02dd79d3b..2568227d95e4f 100644
--- a/usr.bin/netstat/netstat.1
+++ b/usr.bin/netstat/netstat.1
@@ -100,9 +100,14 @@ With the default display,
show the state of all sockets; normally sockets used by
server processes are not shown.
With the routing table display (option
-.Fl r
-, as described below), show protocol-cloned routes (routes
-generated by a RTF_PRCLONING parent route); normally these routes are
+.Fl r ,
+as described below), show cloned routes (routes
+generated by a
+parent route with either
+.Dv RTF_CLONING
+or
+.Dv RTF_PRCLONING
+flag set); normally these routes are
not shown.
.It Fl b
With the interface display (option
diff --git a/usr.bin/netstat/route.c b/usr.bin/netstat/route.c
index e10d07a0e9ceb..7e4b69d857d86 100644
--- a/usr.bin/netstat/route.c
+++ b/usr.bin/netstat/route.c
@@ -588,9 +588,9 @@ p_rtentry(rt)
sa_u addr, mask;
/*
- * Don't print protocol-cloned routes unless -a.
+ * Don't print cloned routes unless -a.
*/
- if (rt->rt_parent && !aflag)
+ if (rt->rt_flags & RTF_WASCLONED && !aflag)
return;
bzero(&addr, sizeof(addr));