You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.5 KiB
49 lines
1.5 KiB
// lwip_tcp_opts.h — hardcoded TCP configuration (no #ifdefs) |
|
#ifndef LWIP_TCP_OPTS_H |
|
#define LWIP_TCP_OPTS_H |
|
|
|
#define TCP_MSS 1460 |
|
#define TCP_SND_BUF (16 * TCP_MSS) |
|
#define TCP_WND (8 * TCP_MSS) |
|
#define TCP_SND_QUEUELEN (4 * TCP_SND_BUF / TCP_MSS) |
|
#define TCP_SNDLOWAT (2 * TCP_MSS < TCP_SND_BUF / 2 ? 2 * TCP_MSS : TCP_SND_BUF / 2) |
|
|
|
#define TCP_MAXRTX 12 |
|
#define TCP_SYNMAXRTX 6 |
|
#define TCP_TMR_INTERVAL 250 // ms for tcp_tmr |
|
#define TCP_FAST_INTERVAL TCP_TMR_INTERVAL |
|
#define TCP_SLOW_INTERVAL (2 * TCP_TMR_INTERVAL) |
|
|
|
#define TCP_FIN_WAIT_TIMEOUT 20000 // ms |
|
#define TCP_SYN_RCVD_TIMEOUT 20000 // ms |
|
#define TCP_MSL 60000 // ms |
|
#define TCP_OOSEQ_TIMEOUT 6 // x RTO |
|
|
|
#define TCP_KEEPIDLE_DEFAULT 7200000 // ms (unused, no keepalive) |
|
#define TCP_KEEPINTVL_DEFAULT 75000 |
|
#define TCP_KEEPCNT_DEFAULT 9 |
|
|
|
#define TCP_WND_SCALE 0 // disabled |
|
#define TCP_TIMESTAMPS 0 // disabled |
|
#define TCP_SACK_OUT 0 // disabled |
|
#define TCP_QUEUE_OOSEQ 1 |
|
#define TCP_OVERSIZE 0 |
|
#define TCP_LISTEN_BACKLOG 0 |
|
#define TCP_KEEPALIVE 0 |
|
#define TCP_CHECKSUM_ON_COPY 0 |
|
#define TCP_CALCULATE_EFF_SEND_MSS 0 |
|
|
|
#define TCP_LOCAL_PORT_RANGE_START 0xc000 |
|
#define TCP_LOCAL_PORT_RANGE_END 0xffff |
|
|
|
#if TCP_MSS > 536 |
|
#define INITIAL_MSS 536 |
|
#else |
|
#define INITIAL_MSS TCP_MSS |
|
#endif |
|
|
|
#define TCP_PRIO_MIN 1 |
|
#define TCP_PRIO_NORMAL 64 |
|
#define TCP_PRIO_MAX 127 |
|
|
|
#endif
|
|
|