Go to the documentation of this file.
20 #ifndef GNRC_TCP_OPTION_H
21 #define GNRC_TCP_OPTION_H
56 return (nopts << 12) | ctl;
#define assert(cond)
abort the program if assertion is false
POSIX.1-2008 compliant version of the assert macro.
#define TCP_HDR_OFFSET_MIN
TCP offset value boundaries.
static uint32_t _gnrc_tcp_option_build_mss(uint16_t mss)
Helper function to build the MSS option.
int _gnrc_tcp_option_parse(gnrc_tcp_tcb_t *tcb, tcp_hdr_t *hdr)
Parses options of a given TCP header.
Transmission control block of GNRC TCP.
static uint16_t _gnrc_tcp_option_build_offset_control(uint16_t nopts, uint16_t ctl)
Helper function to build the combined option and control flag field.
#define TCP_OPTION_KIND_MSS
"Maximum Segment Size"-Option
TCP header and helper functions.
GNRC TCP transmission control block (TCB)
#define TCP_OPTION_LENGTH_MSS
MSS Option Size always 4.