Expand description
A TCP packet abstraction.
Modules§
- TcpFlags
- Represents the TCP Flags https://www.iana.org/assignments/tcp-parameters/tcp-parameters.xhtml#tcp-header-flags
Structs§
- Mutable
TcpOption Packet - A structure enabling manipulation of on the wire packets
- Mutable
TcpPacket - A structure enabling manipulation of on the wire packets
- Tcp
- Represents a TCP packet.
- TcpHeader
- Represents the TCP header.
- TcpIterable
- Used to iterate over a slice of
TcpPacket
s - TcpOption
- A TCP option.
- TcpOption
Header - Represents the TCP option header.
- TcpOption
Iterable - Used to iterate over a slice of
TcpOptionPacket
s - TcpOption
Packet - A structure enabling manipulation of on the wire packets
- TcpPacket
- A structure enabling manipulation of on the wire packets
Enums§
- TcpOption
Kind - Represents a TCP Option Kind. https://www.iana.org/assignments/tcp-parameters/tcp-parameters.xhtml#tcp-parameters-1
Constants§
- TCP_
HEADER_ LEN - Minimum TCP Header Length
- TCP_
HEADER_ MAX_ LEN - Maximum TCP Header Length (with options)
- TCP_
MIN_ DATA_ OFFSET - Minimum TCP Data Offset
- TCP_
OPTION_ MAX_ LEN - Maximum TCP Option Length
Functions§
- ipv4_
checksum - Calculate a checksum for a packet built on IPv4.
- ipv4_
checksum_ adv - 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.
- ipv6_
checksum - Calculate a checksum for a packet built on IPv6.
- ipv6_
checksum_ adv - 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.