-
Notifications
You must be signed in to change notification settings - Fork 82
Shifter
Tom Barbette edited this page Nov 25, 2022
·
1 revision
Shifter — Click element; Shifts IP and ports.
Shifter(IP_OFFSET, PORT_OFFSET, keywords)
Batching: Batching natively supported
Ports: 1 input, 1 output
Processing: push
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
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.