Commit f0eb8da5 authored by Stephen Hemminger's avatar Stephen Hemminger

Merge branch 'master' into net-next

parents 811aca04 943c30de
......@@ -224,7 +224,7 @@ check_netnsid()
#include <linux/rtnetlink.h>
int test_def = RTM_GETNSID;
EOF
$CC -c $TMPDIR/netnsid.c >/dev/null 2>&1
$CC -I$INCLUDE -c $TMPDIR/netnsid.c >/dev/null 2>&1
if [ $? -eq 0 ]
then
echo "IP_CONFIG_NETNSID:=y" >> Config
......
......@@ -62,7 +62,9 @@ DEV
.ti 8
.IR OPTIONS " := {"
\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
.IR FORMAT " := {"
......@@ -463,6 +465,11 @@ to
.RI "-n[etns] " NETNS " [ " OPTIONS " ] " OBJECT " { " COMMAND " | "
.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
The show command has additional formatting options:
......@@ -494,6 +501,47 @@ option was specified. Classes can be filtered only by
.BR "dev"
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"
.PP
tc -g class show dev eth0
......
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