aboutsummaryrefslogtreecommitdiff
path: root/sbin/route/route.8
diff options
context:
space:
mode:
authorAlexander V. Chernikov <melifaro@FreeBSD.org>2014-01-10 23:08:18 +0000
committerAlexander V. Chernikov <melifaro@FreeBSD.org>2014-01-10 23:08:18 +0000
commit17ed2e8ea8d7432c4312ef81b07236cac96d965a (patch)
treef4617f8897892f4bfd8d685e4ce507b3239d0b82 /sbin/route/route.8
parent67619a4120eb99647d806a73a9967370e10db67a (diff)
downloadsrc-17ed2e8ea8d7432c4312ef81b07236cac96d965a.tar.gz
src-17ed2e8ea8d7432c4312ef81b07236cac96d965a.zip
Add -4/-6 shorthand for -finet/-finet6 in route(8) and netstat(8).
MFC after: 2 weeks
Notes
Notes: svn path=/head/; revision=260524
Diffstat (limited to 'sbin/route/route.8')
-rw-r--r--sbin/route/route.822
1 files changed, 20 insertions, 2 deletions
diff --git a/sbin/route/route.8 b/sbin/route/route.8
index ea41cb6c1dae..8906cf7a090a 100644
--- a/sbin/route/route.8
+++ b/sbin/route/route.8
@@ -62,6 +62,14 @@ programmatic interface discussed in
.Pp
The following options are available:
.Bl -tag -width indent
+.It Fl 4
+Specify
+.Cm inet
+address family as family hint for subcommands.
+.It Fl 6
+Specify
+.Cm inet
+address family as family hint for subcommands.
.It Fl d
Run in debug-only mode, i.e., do not actually modify the routing table.
.It Fl n
@@ -138,10 +146,20 @@ When the address family may is specified by any of the
.Fl xns ,
.Fl atalk ,
.Fl inet6 ,
+.Fl 6,
+.Fl inet,
or
-.Fl inet
+.Fl 4
modifiers, only routes having destinations with addresses in the
-delineated family will be deleted.
+delineated family will be deleted. Additionally,
+.Fl 4
+or
+.Fl 6
+can be used as aliases for
+.Fl inet
+and
+.Fl inet6
+modifiers.
When a
.Fl fib
option is specified, the operation will be applied to