This is automatically generated documentation. Edit after the "COMMENTS" heading; changes to the main body will be lost.
ToDevice -- Click element; sends packets to network device (Linux kernel)
ToDevice(DEVNAME [, BURST, KEYWORDS])
Ports: 1 input, no outputs
Package: linuxmodule (core)
This manual page describes the Linux kernel module version of the ToDevice element. For the user-level element, read the ToDevice.u manual page. Pulls packets from its single input and sends them out the Linux network interface named DEVNAME. DEVNAME may also be an Ethernet address, in which case ToDevice searches for a device with that address. Sends up to BURST packets each time it is scheduled. By default, BURST is 16. For good performance, you should set BURST to be 8 times the number of elements that could generate packets for this device. Packets must have a link header. For Ethernet, ToDevice makes sure every packet is at least 60 bytes long (but see NO_PAD). Keyword arguments are:
The Linux networking code may also send packets out the device. If the device is in polling mode, Click will try to ensure that Linux eventually sends its packets. Linux may cause the device to be busy when a ToDevice wants to send a packet. Click is not clever enough to re-queue such packets, and discards them. In Linux 2.2, whether or not the device is running in polling mode, ToDevice depends on the device driver's send operation for synchronization (e.g. tulip send operation uses a bit lock). In Linux 2.4, we use the device's "xmit_lock" to synchronize. Packets sent via ToDevice will not be received by any packet sniffers on the machine. Use Tee and ToHostSniffers to send packets to sniffers explicitly.
Generated by 'click-elem2man' from '../elements/linuxmodule/todevice.hh' on 28/Feb/2010.