tcp_header.h File Reference

TCP header definition. More...

#include <sys/types.h>
Include dependency graph for tcp_header.h:
This graph shows which files directly or indirectly include this file:

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

Detailed Description

TCP header definition.

Based on the RFC~793.


Generated on Thu Mar 11 20:46:20 2010 for Networking and TCP/IP stack for HelenOS system by  doxygen 1.6.1