Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Payload (payload)

Reached from

No protocol of the catalog leads here: use it as the first layer or stack it explicitly.

Parameters

FieldTypeDefaultAutoDescription
modeenum(8)0 (fixed)How the payload is generated: fixed (data as given), pattern (data repeated to length), random (length octets from seed) or counter (data with a per-packet counter embedded).
databytes — rest of the PDU""Payload octets; in fixed mode cut or zero-extended to length when length is non-zero, in pattern mode the repeated unit (empty = 00 01 02 …).
lengthuint(32)0Payload length in octets; 0 keeps the length of data (fixed / counter mode).
seeduint(64)0Seed of the pseudo-random generator in random mode.
counter_offsetuint(32)0Octet offset of the embedded counter in counter mode.
counter_widthenum(8)4 (u32)Width of the embedded counter: 4 or 8 octets, big endian.
counter_valueuint(64)0Counter value written per packet by the stream expander (counter mode).

mode

ValueName
0 (0x00)fixed
1 (0x01)pattern
2 (0x02)random
3 (0x03)counter

counter_width

ValueName
4 (0x04)u32
8 (0x08)u64

Sample templates