net/tcp: add window scale support

Reference here:
https://tools.ietf.org/html/rfc1323

Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
chao.an
2021-07-07 03:55:41 -05:00
committed by Xiang Xiao
parent a5cdc4e69b
commit aab03ef86d
5 changed files with 81 additions and 7 deletions
+3
View File
@@ -76,8 +76,11 @@
#define TCP_OPT_END 0 /* End of TCP options list */
#define TCP_OPT_NOOP 1 /* "No-operation" TCP option */
#define TCP_OPT_MSS 2 /* Maximum segment size TCP option */
#define TCP_OPT_WS 3 /* Window size scaling factor */
#define TCP_OPT_NOOP_LEN 1 /* Length of TCP NOOP option. */
#define TCP_OPT_MSS_LEN 4 /* Length of TCP MSS option. */
#define TCP_OPT_WS_LEN 3 /* Length of TCP WS option. */
/* The TCP states used in the struct tcp_conn_s tcpstateflags field */