Hi,

The lenny version of the tc(8) manual page no longer contains broken
references, but the situation didn't improve much otherwise.

The manual page says:

       tc filter [ add | change | replace ]
       dev DEV
       [ parent qdisc-id | root]
       protocol protocol
       prio priority
       filtertype [ filtertype specific parameters ]
       flowid flow-id

Whereas the tc binary says:

% sudo tc filter help
Usage: tc filter [ add | del | change | get ] dev STRING
       [ pref PRIO ] [ protocol PROTO ]
       [ estimator INTERVAL TIME_CONSTANT ]
       [ root | classid CLASSID ] [ handle FILTERID ]
       [ [ FILTER_TYPE ] [ help | OPTIONS ] ]

       tc filter show [ dev STRING ] [ root | parent CLASSID ]
Where:
FILTER_TYPE := { rsvp | u32 | fw | route | etc. }
FILTERID := ... format depends on classifier, see there
OPTIONS := ... try tc filter add <desired FILTER_KIND> help

% sudo tc filter add dev eth0 parent 1:0 protocol ip rsvp help
Usage: ... rsvp ipproto PROTOCOL session DST[/PORT | GPI ]
                [ sender SRC[/PORT | GPI ]
                [ classid CLASSID ] [ police POLICE_SPEC ]
                [ tunnelid ID ] [ tunnel ID skip NUMBER ]
Where: GPI := { flowlabel NUMBER | spi/ah SPI | spi/esp SPI |
                u{8|16|32} NUMBER mask MASK at OFFSET}
       POLICE_SPEC := ... look at TBF
       FILTERID := X:Y

NOTE: CLASSID is parsed as hexadecimal input.

% sudo tc filter add dev eth0 parent 1:0 protocol ip u32 help
Usage: ... u32 [ match SELECTOR ... ] [ link HTID ] [ classid CLASSID ]
               [ police POLICE_SPEC ] [ offset OFFSET_SPEC ]
               [ ht HTID ] [ hashkey HASHKEY_SPEC ]
               [ sample SAMPLE ]
or         u32 divisor DIVISOR

Where: SELECTOR := SAMPLE SAMPLE ...
       SAMPLE := { ip | ip6 | udp | tcp | icmp | u{32|16|8} | mark } 
SAMPLE_ARGS [divisor DIVISOR]
       FILTERID := X:Y:Z

NOTE: CLASSID is parsed at hexadecimal input.

% sudo tc filter add dev eth0 parent 1:0 protocol ip fw help  
Usage: ... fw [ classid CLASSID ] [ police POLICE_SPEC ]
       POLICE_SPEC := ... look at TBF
       CLASSID := X:Y

NOTE: CLASSID is parsed as hexadecimal input.

% sudo tc filter add dev eth0 parent 1:0 protocol ip route help
Usage: ... route [ from REALM | fromif TAG ] [ to REALM ]
                [ flowid CLASSID ] [ police POLICE_SPEC ]
       POLICE_SPEC := ... look at TBF
       CLASSID := X:Y

NOTE: CLASSID is parsed as hexadecimal input.

<end>

Just making these two consistent would be an improvement :)
But an actual explanation of how u32 and others work would
be necessary to make the documentation really useful.

-- 
     2. That which causes joy or happiness.



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to