This is automatically generated documentation. Edit after the "COMMENTS" heading; changes to the main body will be lost.

ToDevice.u Element Documentation


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
Drivers: userlevel
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:

Integer. Maximum number of packets to pull per scheduling. Defaults to 1.
Word. Defines the method ToDevice will use to write packets to the device. Linux targets generally support PCAP and LINUX; other targets support PCAP or, occasionally, other methods. Generally defaults to PCAP.
Boolean. If true, print out debug messages. This element is only available at user level.


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.


FromDevice.u, FromDump, ToDump, KernelTun, ToDevice

Generated by 'click-elem2man' from '../elements/userlevel/todevice.hh:11' on 12/Jul/2011.


elements/todevice.u.txt · Last modified: 2011/07/12 11:29 (external edit)
Recent changes RSS feed Driven by DokuWiki