29 #ifndef ROHC_PROTOCOLS_TCP_H 30 #define ROHC_PROTOCOLS_TCP_H 56 #if WORDS_BIGENDIAN == 1 77 } __attribute__((packed));
81 #define RSF_RST_ONLY 0x04 82 #define RSF_SYN_ONLY 0x02 83 #define RSF_FIN_ONLY 0x01 98 #define ROHC_TCP_OPTS_LEN_MAX_PROTO (15U * 4U - (uint8_t) sizeof(struct tcphdr)) 109 #define ROHC_TCP_OPTS_MAX_PROTO ROHC_TCP_OPTS_LEN_MAX_PROTO 124 #define ROHC_TCP_OPTS_MAX 15U 128 #define ROHC_TCP_OPT_HDR_LEN 2U 132 #define ROHC_TCP_OPT_MAX_LEN_PROTO 0xffU 141 #define TCP_OLEN_MSS 4U 143 #define TCP_OLEN_WS 3U 145 #define TCP_OLEN_SACK_PERM 2U 148 #define TCP_OLEN_TS 10U 168 #define TCP_SACK_BLOCKS_MAX_NR 4U 176 } __attribute__((packed));
185 __attribute__((warn_unused_result,
const));
205 return "Window Scale";
207 return "SACK permitted";
uint8_t ecn_flags
Definition: tcp.h:71
uint32_t ts
Definition: tcp.h:174
uint16_t window
Definition: tcp.h:73
The Selective Acknowlegment TCP option.
Definition: tcp.h:160
uint32_t block_end
Definition: tcp.h:163
uint16_t dst_port
Definition: tcp.h:53
uint8_t urg_flag
Definition: tcp.h:70
uint16_t src_port
Definition: tcp.h:52
uint16_t urg_ptr
Definition: tcp.h:75
rohc_tcp_option_type_t
Definition: tcp.h:136
uint16_t checksum
Definition: tcp.h:74
uint32_t block_start
Definition: tcp.h:162
uint8_t options[0]
Definition: tcp.h:76
static char * tcp_opt_get_descr(const uint8_t opt_type)
Get a string that describes the given option type.
Definition: tcp.h:194
uint8_t res_flags
Definition: tcp.h:65
uint8_t data_offset
Definition: tcp.h:66
The TCP base header without options.
Definition: tcp.h:50
uint32_t ack_num
Definition: tcp.h:55
uint32_t seq_num
Definition: tcp.h:54
uint8_t rsf_flags
Definition: tcp.h:67
uint8_t psh_flag
Definition: tcp.h:68
uint8_t ack_flag
Definition: tcp.h:69
uint32_t ts_reply
Definition: tcp.h:175