next up previous contents
Next: Queuing disciplines Up: The tcng language Previous: Basic syntax   Contents

Interfaces

Each configuration file contains the traffic control configuration of one or more network interfaces. Each interface section begins with the keyword dev, followed by the interface name, and the elements configured at that interface, in curly braces. The interface name can be an arbitrary string expression.

Examples:

dev "eth0" {
    ...
}

$number = "0";
dev "eth"+$number {
    ...
}

In some cases, e.g. when using tcsim, the interface name is omitted, see section 4.1.



Martin A. Brown 2003-11-06