Module tcp

Source
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§

MutableTcpOptionPacket
A structure enabling manipulation of on the wire packets
MutableTcpPacket
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 TcpPackets
TcpOption
A TCP option.
TcpOptionHeader
Represents the TCP option header.
TcpOptionIterable
Used to iterate over a slice of TcpOptionPackets
TcpOptionPacket
A structure enabling manipulation of on the wire packets
TcpPacket
A structure enabling manipulation of on the wire packets

Enums§

TcpOptionKind
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.