Skip to content
Tom Barbette edited this page Nov 25, 2022 · 1 revision

Shifter Element Documentation

NAME

Shifter — Click element; Shifts IP and ports.

SYNOPSIS

Shifter(IP_OFFSET, PORT_OFFSET, keywords)

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

DESCRIPTION

Shifts IPs and ports by the given offset, modulo the size of the field. Accepts TCP and UDP packets encapsulated in IPv4. Other L4 packets will be emitted untouched.

Keywords:

  • IP_OFFSET — Shifting for the source IP
  • PORT_OFFSET — Shifting for the source port
  • IP_OFFSET_DST — Shifting for the destination IP
  • PORT_OFFSET_DST — Shifting for the destination port

EXAMPLES

FromDump(trace.pcap) -> Strip(14) -> CheckIPHeader(CHECKSUM false) -> Shifter(1,1,1,1) -> CheckIPHeader(CHECKSUM false) -> ToDump(trace_1.pcap)

Generated by click-elem2man from ../elements/tcpudp/shifter.hh:10 on 2022/11/25.

Clone this wiki locally