16#define TCP_OPTION_EOP 0
17#define TCP_OPTION_NOP 1
18#define TCP_OPTION_MSS 2
19#define TCP_OPTION_WS 3
20#define TCP_OPTION_TS 8
21#define TCP_OPTION_MSS_LEN 4
22#define TCP_OPTION_WS_LEN 3
23#define TCP_OPTION_TS_LEN 10
24#define TCP_OPTION_WS_ALIGNED_LEN 4
25#define TCP_OPTION_TS_ALIGNED_LEN 12
31#define TCP_OPTION_TS_FAST ((TCP_OPTION_NOP << 24) |\
32 (TCP_OPTION_NOP << 16) | \
33 (TCP_OPTION_TS << 8) | \
36#define TCP_OPTION_WS_FAST ((TCP_OPTION_NOP << 24) | \
37 (TCP_OPTION_WS << 16) | \
38 (TCP_OPTION_WS_LEN << 8))
40#define TCP_OPTION_MSS_FAST ((TCP_OPTION_MSS << 24) | (TCP_OPTION_MSS_LEN << 16))
45#define TCP_OPTION_RCVD_MSS 0x01
46#define TCP_OPTION_RCVD_WS 0x02
47#define TCP_OPTION_RCVD_TS 0x04
48#define TCP_OPTION_MAX_WS 14
49#define TCP_OPTION_MAX_WIN 0xffff
struct _TCP_OPTION TCP_OPTION
UINT16 TcpBuildOption(IN TCP_CB *Tcb, IN NET_BUF *Nbuf)
UINT16 TcpSynBuildOption(IN TCP_CB *Tcb, IN NET_BUF *Nbuf)
INTN TcpParseOption(IN TCP_HEAD *Tcp, IN OUT TCP_OPTION *Option)
UINT8 TcpComputeScale(IN TCP_CB *Tcb)
UINT32 TSEcr
The TSEcr field in a timestamp option.
UINT8 Flag
Flag such as TCP_OPTION_RCVD_MSS.
UINT8 WndScale
The WndScale received.
UINT32 TSVal
The TSVal field in a timestamp option.
UINT16 Mss
The Mss received.