20#ifndef GNRC_TCP_OPTION_H
21#define GNRC_TCP_OPTION_H
56 return (nopts << 12) | ctl;
POSIX.1-2008 compliant version of the assert macro.
#define assert(cond)
abort the program if assertion is false
int _gnrc_tcp_option_parse(gnrc_tcp_tcb_t *tcb, tcp_hdr_t *hdr)
Parses options of a given TCP header.
static uint32_t _gnrc_tcp_option_build_mss(uint16_t mss)
Helper function to build the MSS option.
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
#define TCP_OPTION_LENGTH_MSS
MSS Option Size always 4.
#define TCP_HDR_OFFSET_MAX
Header offset maximum value.
#define TCP_HDR_OFFSET_MIN
TCP offset value boundaries.
GNRC TCP transmission control block (TCB)
TCP header and helper functions.