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§
- TcpAo
Value - TCP Authentication Option (AO) value per RFC 5925.
- TcpOptions
- Collection of TCP options.
- TcpOptions
Builder - Builder for TCP options.
- TcpSack
Block - TCP SACK block (pair of sequence numbers).
- TcpTimestamp
- TCP Timestamp option data.
Enums§
- TcpOption
- A parsed TCP option.
- TcpOption
Kind - 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.