Commit d5d5db47 authored by Bernd Eckenfels's avatar Bernd Eckenfels

route: document -4 and -6 for route command

parent dc752cca
.TH ROUTE 8 "2008\-10\-03" "net\-tools" "Linux System Administrator's Manual" .TH ROUTE 8 "2013\-06\-15" "net\-tools" "Linux System Administrator's Manual"
.SH NAME .SH NAME
route \- show / manipulate the IP routing table route \- show / manipulate the IP routing table
.SH SYNOPSIS .SH SYNOPSIS
.B route .B route
.RB [ \-CFvnee ] .RB [ \-CFvnNee ]
.RB [ \-A
family
.RB | \-4 | \-6 ]
.TP .TP
.B route .B route
.RB [ \-v ] .RB [ \-v ]
.RB [ \-A .RB [ \-A
family] family
.RB | \-4 | \-6 ]
.B add .B add
.RB [ \-net | \-host ] .RB [ \-net | \-host ]
target target
...@@ -34,7 +38,8 @@ If] ...@@ -34,7 +38,8 @@ If]
.B route .B route
.RB [ \-v ] .RB [ \-v ]
.RB [ \-A .RB [ \-A
family] family
.RB | \-4 | \-6 ]
.B del .B del
.RB [ \-net | \-host ] .RB [ \-net | \-host ]
target target
...@@ -73,8 +78,17 @@ displays the current contents of the routing tables. ...@@ -73,8 +78,17 @@ displays the current contents of the routing tables.
.SH OPTIONS .SH OPTIONS
.TP .TP
.B \-A family .B \-A family
use the specified address family (eg `inet'; use `route \-\-help' for a full use the specified address family (eg `inet'). Use
list). .B route \-\-help
for a full list. You can use
.B \-6
as an alias for
.B \-\-inet6
and
.B \-4
as an alias for
.B -A inet
.
.TP .TP
.B \-F .B \-F
......
...@@ -68,12 +68,12 @@ ...@@ -68,12 +68,12 @@
static char *Release = RELEASE; static char *Release = RELEASE;
int opt_n = 0; /* numerical output flag */ int opt_n = 0; // numerical output FLAG_NUM | FLAG_SYM
int opt_v = 0; /* debugging output flag */ int opt_v = 0; // debugging output flag
int opt_e = 1; /* 1,2,3=type of routetable */ int opt_e = 1; // 1,2,3=type of routetable
int opt_fc = 0; /* routing cache/FIB */ int opt_fc = 0; // routing cache/FIB
int opt_h = 0; /* help selected */ int opt_h = 0; // help selected
struct aftype *ap; /* current address family */ struct aftype *ap; // selected address family
static void usage(void) static void usage(void)
{ {
...@@ -89,7 +89,7 @@ static void usage(void) ...@@ -89,7 +89,7 @@ static void usage(void)
fprintf(stderr, _(" -F, --fib display Forwarding Information Base (default)\n")); fprintf(stderr, _(" -F, --fib display Forwarding Information Base (default)\n"));
fprintf(stderr, _(" -C, --cache display routing cache instead of FIB\n\n")); fprintf(stderr, _(" -C, --cache display routing cache instead of FIB\n\n"));
fprintf(stderr, _(" <AF>=Use '-A <af>' or '--<af>'; default: %s\n"), DFLT_AF); fprintf(stderr, _(" <AF>=Use -4, -6, '-A <af>' or '--<af>'; default: %s\n"), DFLT_AF);
fprintf(stderr, _(" List of possible address families (which support routing):\n")); fprintf(stderr, _(" List of possible address families (which support routing):\n"));
print_aflist(1); /* 1 = routeable */ print_aflist(1); /* 1 = routeable */
exit(E_USAGE); exit(E_USAGE);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment