Skip to content
Tom Barbette edited this page Oct 3, 2018 · 2 revisions

ToHost.u Element Documentation

NAME

ToHost.u — Click element; sends packets to Linux via Universal TUN/TAP device.

SYNOPSIS

ToHost(DEVNAME)

Ports: 1 input, no outputs
Processing: push
Drivers: userlevel

DESCRIPTION

Hands packets to the ordinary Linux protocol stack. Expects packets with Ethernet headers.

You should probably give Linux IP packets addressed to the local machine (including broadcasts), and a copy of each ARP reply.

ToHost requires an initialized FromHost with the same DEVNAME.

IPv4 packets should have a destination IP address corresponding to DEVNAME, and a routable source address. Otherwise Linux will silently drop the packets.

ELEMENT HANDLERS

  • drops (read-only) — Reports the number of packets ToHost has dropped because they had a null device annotation.

SEE ALSO

FromHost.u, FromHost

Generated by click-elem2man from ../elements/userlevel/tohost.hh:10 on 2018/10/03.

Clone this wiki locally