Skip to content
Tom Barbette edited this page Nov 25, 2022 · 3 revisions

IPMirror Element Documentation

NAME

IPMirror — Click element; swaps IP source and destination

SYNOPSIS

IPMirror([DST_ANNO])

Batching: Batching natively supported
Ports: 1 input, 1 output
Processing: agnostic

DESCRIPTION

Incoming packets must have their IP header annotations set. Swaps packets' source and destination IP addresses. Packets containing TCP or UDP headers---that is, first fragments of packets with protocol 6 or 17---also have their source and destination ports swapped. TCP packets also have their seq and ack numbers swapped.

The IP and TCP or UDP checksums are not changed. They don't need to be; these swap operations do not affect checksums.

By default the output packet's destination address annotation is set to the new destination address. Pass "false" for the DST_ANNO argument to leave the annotation as is. DST_ANNO defaults to true.

Generated by click-elem2man from ../elements/ip/ipmirror.hh:6 on 2022/11/25.

Clone this wiki locally