TCP Header Constants

pcapkit.corekit.const.tcpheader holds the TCP header length and offset the RFC fixes and that code beyond TCP itself reads: the toolkit. Each is the one home of its value (#1739), and none is configurable.

Added in version 1.7.0: Moved here from pcapkit.protocols.transport.tcp.schema (#2883).

pcapkit.corekit.const.tcpheader.TCP_MIN_HEADER_LEN = 20

Minimum length of a TCP header, i.e. the fixed part with no options, RFC 9293 Section 3.1.

pcapkit.corekit.const.tcpheader.TCP_DATA_OFFSET_OCTET = 12

Offset of the octet whose high four bits are the Data Offset field – the header length in 32-bit words – within a TCP header, RFC 9293 Section 3.1.