This is automatically generated documentation. Edit after the "COMMENTS" heading; changes to the main body will be lost.
ToDump -- Click element; writes packets to a tcpdump file
ToDump(FILENAME [, keywords SNAPLEN, ENCAP, USE_ENCAP_FROM, EXTRA_LENGTH])
Ports: 1 input, at most 1 output
Processing: agnostic
Drivers: userlevel, ns
Package: userlevel (core)
Writes incoming packets to FILENAME in `tcpdump -w' format. This file can be read by `tcpdump -r', or by FromDump on a later run. FILENAME can be `-', in which case ToDump writes to the standard output. Writes at most SNAPLEN bytes of each packet to the file. The default SNAPLEN is 2000. If SNAPLEN is 0, the whole packet will be written to the file. ENCAP specifies the first header each packet is expected to have. This information is stored in the file header, and must be correct or tcpdump won't be able to read the file correctly. It can be ETHER (Ethernet encapsulation), IP (raw IP packets), FDDI, ATM, 802_11, SLL, AIRONET, HDLC, PPP_HDLC, PPP, SUNATM, PRISM, or NULL; the default is ETHER. ToDump may have zero or one output. If it has an output, then it emits all received packets on that output. ToDump will schedule itself on the task list if it is used as a pull element with no outputs. Keyword arguments are:
ToDump stores packets' true length annotations when available.
FromDump, FromDevice.u, ToDevice.u, tcpdump(1)
Generated by 'click-elem2man' from '../elements/userlevel/todump.hh' on 24/May/2007.