This is automatically generated documentation. Edit after the "COMMENTS" heading; changes to the main body will be lost.
Click user-level driver
click [options] [param=value ...] [router-file]
The click driver executes a Click modular router specification in a user-level program. It reads a router configuration file, sets up the router according to that file, and generally continues until interrupted. The router configuration is written in the Click language (see click(5)), and can contain dynamically loadable code, which click will link against before installing the configuration.
The click program can read and write packets from the network using Berkeley Packet Filters -- see FromDevice.u and ToDevice.u. It can also read and write BPF dump files, such as those created by tcpdump(1) -- see FromDump and ToDump. The InfiniteSource element, and others like it, may be useful for testing configurations without affecting the network.
Arguments such as "NAME=value" set configuration parameters, overriding any existing settings. Thus, "echo 'Message($MSG)' | click MSG=Hi" will print "Hi".
If any filename argument is a single dash "-", click will use the standard input or output instead, as appropriate.
If you get an unaligned access error, try running your configuration through click-align first.
click-align, language, linuxmodule, ControlSocket, FromDevice.u, ToDevice.u, FromDump, ToDump, tcpdump(1), InfiniteSource
Eddie Kohler, kohler@cs.ucla.edu
http://www.pdos.lcs.mit.edu/click/