Merge branch 'feature/tcp_msl_menuconfig' into 'master'

components/lwip: Expose TCP_MSL in menuconfig. (github #783)

See merge request !1175
This commit is contained in:
Angus Gratton 2017-09-05 14:18:36 +08:00
commit f17bbff4b5
2 changed files with 11 additions and 0 deletions

View File

@ -93,6 +93,12 @@ config TCP_MSS
Can be set lower to save RAM, the default value 1436 will give best throughput. Can be set lower to save RAM, the default value 1436 will give best throughput.
config TCP_MSL
int "Maximum segment lifetime (MSL)"
default 60000
help
Set maximum segment lifetime in in milliseconds.
config TCP_SND_BUF_DEFAULT config TCP_SND_BUF_DEFAULT
int "Default send buffer size" int "Default send buffer size"
default 5744 # 4 * default MSS default 5744 # 4 * default MSS

View File

@ -294,6 +294,11 @@
*/ */
#define TCP_MSS CONFIG_TCP_MSS #define TCP_MSS CONFIG_TCP_MSS
/**
* TCP_MSL: The maximum segment lifetime in milliseconds
*/
#define TCP_MSL CONFIG_TCP_MSL
/** /**
* TCP_MAXRTX: Maximum number of retransmissions of data segments. * TCP_MAXRTX: Maximum number of retransmissions of data segments.
*/ */