Skip to main content

Module options

Module options 

Source
Expand description

TCP options parsing and building.

TCP options follow the header and are variable-length. Maximum options length is 40 bytes (60 byte header - 20 byte minimum).

§Option Format

Single-byte options (EOL, NOP):

+--------+
|  Kind  |
+--------+

Multi-byte options:

+--------+--------+--------...
|  Kind  | Length | Data
+--------+--------+--------...

Structs§

TcpAoValue
TCP Authentication Option (AO) value per RFC 5925.
TcpOptions
Collection of TCP options.
TcpOptionsBuilder
Builder for TCP options.
TcpSackBlock
TCP SACK block (pair of sequence numbers).
TcpTimestamp
TCP Timestamp option data.

Enums§

TcpOption
A parsed TCP option.
TcpOptionKind
TCP option kinds.

Constants§

MAX_OPTIONS_LEN
Maximum length of TCP options (in bytes).

Functions§

get_tcp_ao
Get the TCP-AO (Authentication Option) from a parsed options list.
parse_options
Parse TCP options from bytes.