This is automatically generated documentation. Edit after the "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. Under Linux, a FromDevice element will not receive packets sent by a ToDevice element for the same device. Under other operating systems, your mileage may vary. 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 24/May/2007.

COMMENTS

 
elements/todevice.u.txt · Last modified: 2007/05/24 00:16 (external edit)
 
Recent changes RSS feed Driven by DokuWiki