| Argument | Type | Description |
|---|
| name | string | Descriptive name of the RAW packet template. |
| port | enum | Name of the port (from the port menu) the packets are sent out through. |
| string | RAW packet header as a hexadecimal string; it fully defines the header stack. |
| data | enum (uninitialized | random | specific-byte | incrementing) { uninitialized:0, random:1, specific-byte:2, incrementing:3 } | How the packet payload (after the header) is filled: uninitialized (not zeroed; fastest), specific-byte (with data-byte), incrementing (bytes 00 01 02 ...), random (random bytes; slowest). |
| data-byte | num | Byte used to fill the payload when data=specific-byte. |
| random-byte-offsets-and-masks | multi { array-id, array-id, offset-and-mask: composite { offset: num [ .. 256]
, mask: num [ .. 255]
}
} | Byte offsets in the packet, each with a bit mask, that are filled with random values. |
| random-ranges | object { random-range: super { offset: num [ .. 256]
, [width] :enum (8 | 16 | 32) { 8:8, 16:16, 32:32 }
, [range] :range
}
} | Fields at given byte offsets that are filled with random values: width sets the field size (8, 16 or 32 bits) and range the range of the values. |
| multi { ip-header-offset: num [ .. 65535]
} | Byte offset of the IPv4 header within the packet, so the generator can locate and parse it. |
| multi { ipv6-header-offset: num [ .. 65535]
} | Byte offset of the IPv6 header within the packet. |
| multi { udp-header-offset: num [ .. 65535]
} | Byte offset of the UDP header within the packet. |
| udp-compute-checksum | multi { udp-compute-checksum: bool
} | Whether the UDP checksum is computed by the generator. |
| multi { tcp-header-offset: num [ .. 65535]
} | Byte offset of the TCP header within the packet. |
| bool | Whether a special footer is appended to the generated packets. |
| compute-checksum-from-offset | num | Byte offset from which the 2-byte checksum is calculated; for example 14 skips the Ethernet header. no-checksum disables the checksum. |