Module xenet_packet::tcp
source · Expand description
A TCP packet abstraction.
Modules
- Represents the TCP Flags https://www.iana.org/assignments/tcp-parameters/tcp-parameters.xhtml#tcp-header-flags
Structs
- A structure enabling manipulation of on the wire packets
- A structure enabling manipulation of on the wire packets
- Represents a TCP packet.
- Represents the TCP header.
- Used to iterate over a slice of
TcpPacket
s - A TCP option.
- Represents the TCP option header.
- Used to iterate over a slice of
TcpOptionPacket
s - A structure enabling manipulation of on the wire packets
- A structure enabling manipulation of on the wire packets
Enums
- Represents a TCP Option Kind. https://www.iana.org/assignments/tcp-parameters/tcp-parameters.xhtml#tcp-parameters-1
Constants
- Minimum TCP Header Length
- Maximum TCP Header Length (with options)
- Minimum TCP Data Offset
- Maximum TCP Option Length
Functions
- Calculate a checksum for a packet built on IPv4.
- Calculate the checksum for a packet built on IPv4, Advanced version which accepts an extra slice of data that will be included in the checksum as being part of the data portion of the packet.
- Calculate a checksum for a packet built on IPv6.
- Calculate the checksum for a packet built on IPv6, Advanced version which accepts an extra slice of data that will be included in the checksum as being part of the data portion of the packet.