#include <sys/types.h>
Go to the source code of this file.
Data Structures | |
struct | tcp_header |
Transmission datagram header. More... | |
struct | tcp_max_segment_size_option |
Maximum segment size TCP option. More... | |
struct | tcp_option |
Transmission datagram header option. More... | |
Defines | |
#define | GET_TCP_HEADER_ACKNOWLEDGE(header) (((header)->ruaprsf & 0x10) >> 4) |
#define | GET_TCP_HEADER_FINALIZE(header) ((header)->ruaprsf & 0x01) |
#define | GET_TCP_HEADER_LENGTH(header) (((header)->hlr & 0xf0) >> 4) |
#define | GET_TCP_HEADER_PUSH(header) (((header)->ruaprsf & 0x08) >> 3) |
#define | GET_TCP_HEADER_RESERVED1(header) ((header)->hlr & 0x0f) |
#define | GET_TCP_HEADER_RESERVED2(header) (((header)->ruaprsf & 0xc0) >> 6) |
#define | GET_TCP_HEADER_RESET(header) (((header)->ruaprsf & 0x04) >> 2) |
#define | GET_TCP_HEADER_SYNCHRONIZE(header) (((header)->ruaprsf & 0x02) >> 1) |
#define | GET_TCP_HEADER_URGENT(header) (((header)->ruaprsf & 0x20) >> 5) |
#define | SET_TCP_HEADER_ACKNOWLEDGE(header, acknowledge) |
#define | SET_TCP_HEADER_FINALIZE(header, finalize) |
#define | SET_TCP_HEADER_LENGTH(header, length) |
#define | SET_TCP_HEADER_PUSH(header, push) |
#define | SET_TCP_HEADER_RESERVED1(header, reserved1) |
#define | SET_TCP_HEADER_RESERVED2(header, reserved2) |
#define | SET_TCP_HEADER_RESET(header, reset) |
#define | SET_TCP_HEADER_SYNCHRONIZE(header, synchronize) |
#define | SET_TCP_HEADER_URGENT(header, urgent) |
#define | TCP_COMPUTE_HEADER_LENGTH(length) ((uint8_t) ((length) / 4U)) |
Returns the TCP header length. | |
#define | TCP_HEADER_LENGTH(header) (GET_TCP_HEADER_LENGTH(header) * 4U) |
Returns the actual TCP header length in bytes. | |
#define | TCP_HEADER_SIZE sizeof(tcp_header_t) |
TCP header size in bytes. | |
Typedefs | |
typedef tcp_header | tcp_header_t |
Type definition of the transmission datagram header. | |
typedef tcp_max_segment_size_option | tcp_max_segment_size_option_t |
Type definition of the Maximum segment size TCP option. | |
typedef tcp_option | tcp_option_t |
Type definition of the transmission datagram header option. |
Based on the RFC 793.
Definition in file tcp_header.h.