When using the tc target (see section 5.2), tcng can also configure filters directly, without using the if construct. Note that it is currently not possible to combine filters and if at the same queuing discipline
A filter consists of the filter and of its elements, just like a queuing discipline consists of the queuing discipline and its classes. With some filters, elements are optional.
A filter specification begins with the filter name, followed by an optional parameter list (in parentheses), and the optional filter body, in curly braces. The filter body contains classes.
Example:
prio { rsvp (ipproto "tcp") { class (1) on (dst 10.0.0.1); class (2) on (dst 10.0.0.2); } }
The priority of a filter is usually automatically assigned in the order in which filter specifications appear in the configuration. It can be explicitly set by including the number among the parameters. Automatic assignment takes manually assigned priorities into account and continues with the next available number. Priority numbers must always increase. Example:
... tcindex(3) ...