Skip to content
Eddie Kohler edited this page Oct 18, 2017 · 1 revision

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 2017/10/17.

Clone this wiki locally