Expand description
Parsing and serialization of TCP segments.
The TCP segment format is defined in [RFC 791 Section 3.3].
Modules§
- options
 - Parsing and serialization of TCP options.
 
Structs§
- TcpFlow
AndSeq Num  - Contains the TCP flow info and its sequence number.
 - TcpFlow
Header  - The minimal information required from a TCP segment header.
 - TcpOptions
TooLong Error  - Options provided to 
TcpSegmentBuilderWithOptions::newexceedMAX_OPTIONS_LENwhen serialized. - TcpParse
Args  - Arguments required to parse a TCP segment.
 - TcpSegment
 - A TCP segment.
 - TcpSegment
Builder  - A builder for TCP segments.
 - TcpSegment
Builder With Options  - A builder for TCP segments with options
 - TcpSegment
Raw  - A partially-parsed and not yet validated TCP segment.
 
Constants§
- HDR_
PREFIX_ LEN  - The length of the fixed prefix of a TCP header (preceding the options).
 - MAX_
HDR_ LEN  - The maximum length of a TCP header.
 - MAX_
OPTIONS_ LEN  - The maximum length of the options in a TCP header.
 
Functions§
- aligned_
options_ length  - Calculates the total aligned length of a collection of options in a TCP header.