tcp.h File Reference

TCP header and helper functions. More...

Detailed Description

TCP header and helper functions.

Author
Simon Brummer simon.nosp@m..bru.nosp@m.mmer@.nosp@m.post.nosp@m.eo.de

Definition in file tcp.h.

#include "byteorder.h"
+ Include dependency graph for tcp.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  tcp_hdr_t
 TCP header definition. More...
 
struct  tcp_hdr_opt_t
 TCP option field helper structure. More...
 

Functions

void tcp_hdr_print (tcp_hdr_t *hdr)
 Print the given TCP header to STDOUT. More...
 
#define TCP_HDR_OFFSET_MIN   (0x05)
 TCP offset value boundaries.
 
#define TCP_HDR_OFFSET_MAX   (0x0F)
 
#define TCP_OPTION_KIND_EOL   (0x00)
 TCP Option "Kind"-field defines. More...
 
#define TCP_OPTION_KIND_NOP   (0x01)
 "No Operation"-Option
 
#define TCP_OPTION_KIND_MSS   (0x02)
 "Maximum Segment Size"-Option
 
#define TCP_OPTION_LENGTH_MIN   (2U)
 TCP option "length"-field values. More...
 
#define TCP_OPTION_LENGTH_MSS   (0x04)
 MSS Option Size always 4.