Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
iproute2
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
iproute2
Commits
f0eb8da5
Commit
f0eb8da5
authored
Apr 10, 2015
by
Stephen Hemminger
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into net-next
parents
811aca04
943c30de
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
50 additions
and
2 deletions
+50
-2
configure
configure
+1
-1
man/man8/tc.8
man/man8/tc.8
+49
-1
No files found.
configure
View file @
f0eb8da5
...
@@ -224,7 +224,7 @@ check_netnsid()
...
@@ -224,7 +224,7 @@ check_netnsid()
#include <linux/rtnetlink.h>
#include <linux/rtnetlink.h>
int test_def = RTM_GETNSID;
int test_def = RTM_GETNSID;
EOF
EOF
$CC
-c
$TMPDIR
/netnsid.c
>
/dev/null 2>&1
$CC
-
I
$INCLUDE
-
c
$TMPDIR
/netnsid.c
>
/dev/null 2>&1
if
[
$?
-eq
0
]
if
[
$?
-eq
0
]
then
then
echo
"IP_CONFIG_NETNSID:=y"
>>
Config
echo
"IP_CONFIG_NETNSID:=y"
>>
Config
...
...
man/man8/tc.8
View file @
f0eb8da5
...
@@ -62,7 +62,9 @@ DEV
...
@@ -62,7 +62,9 @@ DEV
.ti 8
.ti 8
.IR OPTIONS " := {"
.IR OPTIONS " := {"
\fB[ -force ] -b\fR[\fIatch\fR] \fB[ filename ] \fR|
\fB[ -force ] -b\fR[\fIatch\fR] \fB[ filename ] \fR|
\fB[ \fB-n\fR[\fIetns\fR] name \fB] \fR}
\fB[ \fB-n\fR[\fIetns\fR] name \fB] \fR|
\fB[ \fB-nm \fR| \fB-nam\fR[\fIes\fR] \fB] \fR|
\fB[ \fR{ \fB-cf \fR| \fB-c\fR[\fIonf\fR] \fR} \fB[ filename ] \fB] \fR}
.ti 8
.ti 8
.IR FORMAT " := {"
.IR FORMAT " := {"
...
@@ -463,6 +465,11 @@ to
...
@@ -463,6 +465,11 @@ to
.RI "-n[etns] " NETNS " [ " OPTIONS " ] " OBJECT " { " COMMAND " | "
.RI "-n[etns] " NETNS " [ " OPTIONS " ] " OBJECT " { " COMMAND " | "
.BR help " }"
.BR help " }"
.TP
.BR "\-cf" , " \-conf " <FILENAME>
specifies path to the config file. This option is used in conjuction with other options (e.g.
.BR -nm ")."
.SH FORMAT
.SH FORMAT
The show command has additional formatting options:
The show command has additional formatting options:
...
@@ -494,6 +501,47 @@ option was specified. Classes can be filtered only by
...
@@ -494,6 +501,47 @@ option was specified. Classes can be filtered only by
.BR "dev"
.BR "dev"
option.
option.
.TP
.BR "\-nm" , " \-name"
resolve class name from
.B /etc/iproute2/tc_cls
file or from file specified by
.B -cf
option. This file is just a mapping of
.B classid
to class name:
.RS 10
# Here is comment
.RE
.RS 10
1:40 voip # Here is another comment
.RE
.RS 10
1:50 web
.RE
.RS 10
1:60 ftp
.RE
.RS 10
1:2 home
.RE
.RS
.B tc
will not fail if
.B -nm
was specified without
.B -cf
option but
.B /etc/iproute2/tc_cls
file does not exist, which makes it possible to pass
.B -nm
option for creating
.B tc
alias.
.RE
.SH "EXAMPLES"
.SH "EXAMPLES"
.PP
.PP
tc -g class show dev eth0
tc -g class show dev eth0
...
...
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