Module tcp

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§

TcpHeader
Represents the TCP header.
TcpOptionHeader
Represents the TCP option header.
TcpOptionPacket
A TCP option.
TcpPacket
Represents a TCP packet.

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§

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