Skip to content
Tom Barbette edited this page May 7, 2020 · 3 revisions

PaintTee Element Documentation

NAME

PaintTee — Click element; duplicates packets with given paint annotation

SYNOPSIS

PaintTee(COLOR [, ANNO])

Batching: Batching natively supported
Ports: 1 input, 2 outputs
Processing: agnostic, but output 1 is push

DESCRIPTION

PaintTee sends every packet through output 0. If the packet's paint annotation is equal to COLOR (an integer), it also sends a copy through output 1.

PaintTee uses the PAINT annotation by default, but the ANNO argument can specify any one-byte annotation.

EXAMPLES

Intended to produce redirects in conjunction with Paint and ICMPError as follows:

 FromDevice(eth7) -> Paint(7) -> ...
 routingtable[7] -> pt :: PaintTee(7) -> ... -> ToDevice(eth7)
 pt[1] -> ICMPError(18.26.4.24, 5, 1) -> [0]routingtable;

SEE ALSO

Paint, ICMPError

Generated by click-elem2man from ../elements/standard/painttee.hh:6 on 2020/05/07.

Clone this wiki locally