TCP header definition. More...
#include <sys/types.h>
Data Structures | |
struct | tcp_header |
Transmission datagram header. More... | |
struct | tcp_option |
Transmission datagram header option. More... | |
struct | tcp_max_segment_size_option |
Maximum segment size TCP option. More... | |
Defines | |
#define | TCP_HEADER_SIZE sizeof(tcp_header_t) |
TCP header size in bytes. | |
#define | TCP_HEADER_LENGTH(header) ((header)->header_length * 4u) |
Returns the actual TCP header length in bytes. | |
#define | TCP_COMPUTE_HEADER_LENGTH(length) ((uint8_t) ((length) / 4u)) |
Returns the TCP header length. | |
Typedefs | |
typedef struct tcp_header | tcp_header_t |
Type definition of the transmission datagram header. | |
typedef tcp_header_t * | tcp_header_ref |
Type definition of the transmission datagram header pointer. | |
typedef struct tcp_option | tcp_option_t |
Type definition of the transmission datagram header option. | |
typedef tcp_option_t * | tcp_option_ref |
Type definition of the transmission datagram header option pointer. | |
typedef struct tcp_max_segment_size_option | tcp_max_segment_size_option_t |
Type definition of the Maximum segment size TCP option. | |
typedef tcp_max_segment_size_option_t * | tcp_max_segment_size_option_ref |
Type definition of the Maximum segment size TCP option pointer. |
TCP header definition.
Based on the RFC~793.