net/tcp: change the tcp optdata to dynamic arrays

Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
chao.an
2021-07-05 17:03:15 +08:00
committed by Xiang Xiao
parent 87bffc190c
commit a5cdc4e69b
2 changed files with 10 additions and 8 deletions
+1 -1
View File
@@ -171,7 +171,7 @@ struct tcp_hdr_s
uint8_t wnd[2];
uint16_t tcpchksum;
uint8_t urgp[2];
uint8_t optdata[4];
uint8_t optdata[0];
};
/* The structure holding the TCP/IP statistics that are gathered if