This is automatically generated documentation. Edit after the "COMMENTS" heading; changes to the main body will be lost.
ToDevice.u -- Click element; sends packets to network device (user-level)
ToDevice(DEVNAME [, keywords])
Ports: 1 input, at most 2 outputs
Processing: pull inputs, push outputs
Package: userlevel (core)
This manual page describes the user-level version of the ToDevice element. For the Linux kernel module element, read the ToDevice manual page. Pulls packets and sends them out the named device using Berkeley Packet Filters (or Linux equivalent). Keyword arguments are:
Packets sent via ToDevice should already have a link-level header prepended. This means that ARP processing, for example, must already have been done. The FromDevice element's OUTBOUND keyword argument determines whether FromDevice receives packets sent by a ToDevice element for the same device. Packets that are written successfully are sent on output 0, if it exists. Packets that fail to be written are pushed out output 1, if it exists. KernelTun lets you send IP packets to the host kernel's IP processing code, sort of like the kernel module's ToHost element.
Generated by 'click-elem2man' from '../elements/userlevel/todevice.hh:11' on 12/Jul/2011.