mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 11:56:10 +08:00
net/tcp: Make TCP_MAXRTX and TCP_MAXSYNRTX configurable
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Petro Karashchenko
parent
85b4177913
commit
a7e99346a1
@@ -499,7 +499,11 @@
|
|||||||
* This should not be changed.
|
* This should not be changed.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define TCP_MAXRTX 8
|
#ifdef CONFIG_NET_TCP_MAXRTX
|
||||||
|
# define TCP_MAXRTX CONFIG_NET_TCP_MAXRTX
|
||||||
|
#else
|
||||||
|
# define TCP_MAXRTX 8
|
||||||
|
#endif
|
||||||
|
|
||||||
/* The maximum number of times a SYN segment should be retransmitted
|
/* The maximum number of times a SYN segment should be retransmitted
|
||||||
* before a connection request should be deemed to have been
|
* before a connection request should be deemed to have been
|
||||||
@@ -508,7 +512,11 @@
|
|||||||
* This should not need to be changed.
|
* This should not need to be changed.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define TCP_MAXSYNRTX 5
|
#ifdef CONFIG_NET_TCP_MAXSYNRTX
|
||||||
|
# define TCP_MAXSYNRTX CONFIG_NET_TCP_MAXSYNRTX
|
||||||
|
#else
|
||||||
|
# define TCP_MAXSYNRTX 5
|
||||||
|
#endif
|
||||||
|
|
||||||
/* The TCP maximum segment size. This should not be set to more than
|
/* The TCP maximum segment size. This should not be set to more than
|
||||||
* NETDEV_PKTSIZE(dev) - NET_LL_HDRLEN(dev) - IPvN_HDRLEN - __TCP_HDRLEN.
|
* NETDEV_PKTSIZE(dev) - NET_LL_HDRLEN(dev) - IPvN_HDRLEN - __TCP_HDRLEN.
|
||||||
|
|||||||
@@ -67,6 +67,14 @@ config NET_TCP_RTO
|
|||||||
---help---
|
---help---
|
||||||
RTO of TCP/IP connections (all tasks)
|
RTO of TCP/IP connections (all tasks)
|
||||||
|
|
||||||
|
config NET_TCP_MAXRTX
|
||||||
|
int "Maximum retransmitted number of TCP/IP data packet"
|
||||||
|
default 8
|
||||||
|
|
||||||
|
config NET_TCP_MAXSYNRTX
|
||||||
|
int "Maximum retransmitted number of TCP/IP SYN packet"
|
||||||
|
default 5
|
||||||
|
|
||||||
config NET_TCP_WAIT_TIMEOUT
|
config NET_TCP_WAIT_TIMEOUT
|
||||||
int "TIME_WAIT Length of TCP/IP connections"
|
int "TIME_WAIT Length of TCP/IP connections"
|
||||||
default 120
|
default 120
|
||||||
|
|||||||
Reference in New Issue
Block a user