X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=man%2Fman8%2Ftc.8;h=8c0880fa5cd16d0a54645172d044db4beb5dcbf1;hb=7132284647c15ca30d942926bc506d6019d3b61c;hp=b9b8039100c3a14e20a9b2f1943487a06da837cb;hpb=105da95218c9d30375efc43f9edd8ef32998fedb;p=iproute2.git diff --git a/man/man8/tc.8 b/man/man8/tc.8 index b9b8039..8c0880f 100644 --- a/man/man8/tc.8 +++ b/man/man8/tc.8 @@ -34,16 +34,28 @@ priority filtertype .B flowid flow-id -.B tc [-s | -d ] qdisc show [ dev +.B tc +.RI "[ " FORMAT " ]" +.B qdisc show [ dev DEV .B ] .P -.B tc [-s | -d ] class show dev +.B tc +.RI "[ " FORMAT " ]" +.B class show dev DEV .P .B tc filter show dev DEV +.ti -8 +.IR FORMAT " := {" +\fB\-s\fR[\fItatistics\fR] | +\fB\-d\fR[\fIetails\fR] | +\fB\-r\fR[\fIaw\fR] | +\fB\-p\fR[\fIretty\fR] | +\fB\i\fR[\fIec\fR] } + .SH DESCRIPTION .B Tc is used to configure Traffic Control in the Linux kernel. Traffic Control consists @@ -202,8 +214,7 @@ qdiscs will use all three: tc filters If tc filters are attached to a class, they are consulted first for relevant instructions. Filters can match on all fields of a packet header, -as well as on the firewall mark applied by ipchains or iptables. See -.BR tc-filters (8). +as well as on the firewall mark applied by ipchains or iptables. .TP Type of Service Some qdiscs have built in rules for classifying packets based on the TOS field. @@ -242,8 +253,7 @@ qdiscs applies. .TP FILTERS Filters have a three part ID, which is only needed when using a hashed -filter hierarchy, for which see -.BR tc-filters (8). +filter hierarchy. .SH UNITS All parameters accept a floating point number, possibly followed by a unit. .P @@ -328,6 +338,29 @@ link Only available for qdiscs and performs a replace where the node must exist already. +.SH FORMAT +The show command has additional formatting options: + +.TP +.BR "\-s" , " \-stats", " \-statistics" +output more statistics about packet usage. + +.TP +.BR "\-d", " \-details" +output more detailed information about rates and cell sizes. + +.TP +.BR "\-r", " \-raw" +output raw hex values for handles. + +.TP +.BR "\-p", " \-pretty" +decode filter offset and mask values to equivalent filter commands based on TCP/IP. + +.TP +.BR "\-iec" +print rates in IEC units (ie. 1K = 1024). + .SH HISTORY .B tc @@ -341,7 +374,8 @@ was written by Alexey N. Kuznetsov and added in Linux 2.2. .BR tc-pfifo (8), .BR tc-bfifo (8), .BR tc-pfifo_fast (8), -.BR tc-filters (8) +.br +.RB "User documentation at " http://lartc.org/ ", but please direct bugreports and patches to: " .SH AUTHOR Manpage maintained by bert hubert (ahu@ds9a.nl)