next up previous contents
Next: System configuration Up: Configuration Previous: Configuration   Contents

System definition

Syntax:
dev name $[$speed$]$ $[${ tcng-spec }$]$
Example:
dev eth0 10 Mbps
Effect:
Creates network interface name sending at the specified rate. The rate is given as an integer followed by the unit: bps for bits per second, or Bps for bytes per second; plus optionally one of the prefixes k (kilo), M (mega), or G (giga). For backward-compatibility, the unit can be omitted. In this case, the unit defaults to kilobits per second.

If the rate is omitted, the interface will only send when polled. The interface definition can be followed by a configuration specification in tcng syntax, in curly braces. In this case, tcsim invokes tcc to translate the specification.

The interface name begins with an alphabetic character or an underscore and is followed by any number of alphanumeric characters, or underscores. The interface name must not be a keyword of the tcsim language (e.g. send, dev, x, etc.)

Alternatively, the interface name can be put in double quotes. In this case, any printable characters and also spaces are allowed in the name.

Syntax:
host { items $\ldots$ }
Effect:
Defines a host structure. See section 6.4, below.


next up previous contents
Next: System configuration Up: Configuration Previous: Configuration   Contents
Martin A. Brown 2003-11-06