sys/net/gnrc/transport_layer/tcp/internal/common.h¶
Internally used defines, macros and variable declarations.
-
STATUS_PASSIVE
¶ TCB status flags.
1
(1 << 0)
-
STATUS_ALLOW_ANY_ADDR
¶ 1
(1 << 1)
-
STATUS_NOTIFY_USER
¶ 1
(1 << 2)
-
STATUS_WAIT_FOR_MSG
¶ 1
(1 << 3)
-
TCP_EVENTLOOP_MSG_QUEUE_SIZE
¶ Defines for “eventloop” thread settings.
1
(8U)
-
TCP_EVENTLOOP_PRIO
¶ 1
(THREAD_PRIORITY_MAIN - 2U)
-
TCP_EVENTLOOP_STACK_SIZE
¶ 1
(THREAD_STACKSIZE_DEFAULT)
-
MSK_FIN
¶ Bitmasks for control bit field handling.
1
(0x0001)
-
MSK_SYN
¶ 1
(0x0002)
-
MSK_RST
¶ 1
(0x0004)
-
MSK_PSH
¶ 1
(0x0008)
-
MSK_ACK
¶ 1
(0x0010)
-
MSK_URG
¶ 1
(0x0020)
-
MSK_FIN_ACK
¶ 1
(0x0011)
-
MSK_SYN_ACK
¶ 1
(0x0012)
-
MSK_RST_ACK
¶ 1
(0x0014)
-
MSK_SYN_FIN_ACK
¶ 1
(0x0013)
-
MSK_FIN_ACK_PSH
¶ 1
(0x0019)
-
MSK_CTL
¶ 1
(0x003F)
-
MSK_OFFSET
¶ 1
(0xF000)
-
MSG_TYPE_CONNECTION_TIMEOUT
¶ Message types for GNRC TCPs internal message passing.
1
(GNRC_NETAPI_MSG_TYPE_ACK + 101)
-
MSG_TYPE_PROBE_TIMEOUT
¶ 1
(GNRC_NETAPI_MSG_TYPE_ACK + 102)
-
MSG_TYPE_USER_SPEC_TIMEOUT
¶ 1
(GNRC_NETAPI_MSG_TYPE_ACK + 103)
-
MSG_TYPE_RETRANSMISSION
¶ 1
(GNRC_NETAPI_MSG_TYPE_ACK + 104)
-
MSG_TYPE_TIMEWAIT
¶ 1
(GNRC_NETAPI_MSG_TYPE_ACK + 105)
-
MSG_TYPE_NOTIFY_USER
¶ 1
(GNRC_NETAPI_MSG_TYPE_ACK + 106)
-
LSS_32_BIT
( x, y)¶ Overflow tolerant comparision operators for sequence and acknowledgement number comparison.
1
(((int32_t) (x)) - ((int32_t) (y)) < 0)
-
LEQ_32_BIT
( x, y)¶ 1
(((int32_t) (x)) - ((int32_t) (y)) <= 0)
-
GRT_32_BIT
( x, y)¶ 1
(!LEQ_32_BIT(x, y))
-
GEQ_32_BIT
( x, y)¶ 1
(!LSS_32_BOT(x, y))
-
PORT_UNSPEC
¶ Port number unspecified.
1
(0)
See also
-
RTO_UNINITIALIZED
¶ Define for marking that time measurement is uninitialized.
1
(-1)
-
INSIDE_WND
( l_ed, seq_num, r_ed)¶ Check if a given sequence number falls into receive window.
1
(LEQ_32_BIT(l_ed, seq_num) && LSS_32_BIT(seq_num, r_ed))
-
GET_OFFSET
( x)¶ Extract offset value from “offctl” field in TCP header.
1
(((x) & MSK_OFFSET) >> 12)
-
kernel_types.h::kernel_pid_t
gnrc_tcp_pid
¶ PID of GNRC TCP event handling thread.
-
tcb.h::gnrc_tcp_tcb_t
*_list_tcb_head
¶ Head of linked TCB list.