Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
net-tools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
net-tools
Commits
d5d5db47
Commit
d5d5db47
authored
Jun 15, 2013
by
Bernd Eckenfels
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
route: document -4 and -6 for route command
parent
dc752cca
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
13 deletions
+27
-13
man/en_US/route.8
man/en_US/route.8
+20
-6
route.c
route.c
+7
-7
No files found.
man/en_US/route.8
View file @
d5d5db47
.TH ROUTE 8 "20
08\-10\-03
" "net\-tools" "Linux System Administrator's Manual"
.TH ROUTE 8 "20
13\-06\-15
" "net\-tools" "Linux System Administrator's Manual"
.SH NAME
route \- show / manipulate the IP routing table
.SH SYNOPSIS
.B route
.RB [ \-CFvnee ]
.RB [ \-CFvnNee ]
.RB [ \-A
family
.RB | \-4 | \-6 ]
.TP
.B route
.RB [ \-v ]
.RB [ \-A
family]
family
.RB | \-4 | \-6 ]
.B add
.RB [ \-net | \-host ]
target
...
...
@@ -34,7 +38,8 @@ If]
.B route
.RB [ \-v ]
.RB [ \-A
family]
family
.RB | \-4 | \-6 ]
.B del
.RB [ \-net | \-host ]
target
...
...
@@ -73,8 +78,17 @@ displays the current contents of the routing tables.
.SH OPTIONS
.TP
.B \-A family
use the specified address family (eg `inet'; use `route \-\-help' for a full
list).
use the specified address family (eg `inet'). Use
.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
.B \-F
...
...
route.c
View file @
d5d5db47
...
...
@@ -68,12 +68,12 @@
static
char
*
Release
=
RELEASE
;
int
opt_n
=
0
;
/* numerical output flag */
int
opt_v
=
0
;
/* debugging output flag */
int
opt_e
=
1
;
/* 1,2,3=type of routetable */
int
opt_fc
=
0
;
/* routing cache/FIB */
int
opt_h
=
0
;
/* help selected */
struct
aftype
*
ap
;
/* current address family */
int
opt_n
=
0
;
// numerical output FLAG_NUM | FLAG_SYM
int
opt_v
=
0
;
// debugging output flag
int
opt_e
=
1
;
// 1,2,3=type of routetable
int
opt_fc
=
0
;
// routing cache/FIB
int
opt_h
=
0
;
// help selected
struct
aftype
*
ap
;
// selected address family
static
void
usage
(
void
)
{
...
...
@@ -89,7 +89,7 @@ static void usage(void)
fprintf
(
stderr
,
_
(
" -F, --fib display Forwarding Information Base (default)
\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
"
));
print_aflist
(
1
);
/* 1 = routeable */
exit
(
E_USAGE
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment