**This is automatically generated documentation.** Edit after the "[[#COMMENTS|COMMENTS]]" heading; changes to the main body will be lost. ====== ToDevice.u Element Documentation ====== ===== NAME ===== **ToDevice.u** -- Click element; sends packets to network device (user-level) ===== SYNOPSIS ===== [[ToDevice]](DEVNAME [, //KEYWORDS//]) **Ports**: 1 input, at most 2 outputs\\ **Processing**: pull inputs, push outputs\\ **Drivers**: userlevel\\ **Package**: userlevel (core)\\ ===== DESCRIPTION ===== 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: ? **DEBUG** ! Boolean. If true, print out debug messages. This element is only available at user level. ===== NOTES ===== 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. ===== SEE ALSO ===== [[FromDevice.u]], [[FromDump]], [[ToDump]], [[KernelTun]], [[ToDevice]] Generated by 'click-elem2man' from '../elements/userlevel/todevice.hh' on 7/Mar/2009. ===== COMMENTS =====