TCP_QUEUE_OOSEQ (LWIP_TCP) TCP接收队列外数据块排序 TCP_MSS 1460 tcp报文最大分段长度 TCP_CALCULATE_EFF_SEND_MSS 1 tcp预计发送的分段长度,为1则根据窗口大小分配 TCP_SND_BUF (8*TCP_MSS) TCP发送缓冲区 TCP_SND_QUEUELEN (4*(TCP_SND_BUF/TCP_MSS)) TCP发送队列长度 TCP_SNDLOWAT (TCP_SND_BU...
/* TCP writable space (bytes). This must be less than or equal to TCP_SND_BUF. It is the amount of space which must be available in the tcp snd_buf for select to return writable */ #define TCP_SNDLOWAT (TCP_SND_BUF/2) /* TCP receive window. */ ...
//#define TCP_CALCULATE_EFF_SEND_MSS 1 #define TCP_SND_BUF (6 * TCP_MSS) //改变该值并不影响ZI的大小,但稍稍影响code大小,几个字节。 // default is 256 //#define TCP_SND_QUEUELEN (4 * (TCP_SND_BUF/TCP_MSS)) //#define TCP_SNDLOWAT (TCP_SND_BUF/2) //#define TCP_LISTEN_BACKL...
* LWIP_TCP_KEEPALIVE==1: Enable TCP_KEEPIDLE, TCP_KEEPINTVL and TCP_KEEPCNT * options processing. Note that TCP_KEEPIDLE and TCP_KEEPINTVL have to be set * in seconds. (does not require sockets.c, and will affect tcp.c) */ #if !defined LWIP_TCP_KEEPALIVE || defined __DOXYGEN__...
This must be less than or equal to TCP_SND_BUF. It is the amount of space which must be available in the tcp snd_buf for select to return writable */ #define TCP_SNDLOWAT (TCP_SND_BUF/2) /* TCP receive window. */ #define TCP_WND (20 * 1024) /* Maximum number of ...
--- 用于限制mmsTCP_SND_BUF --- TCP发送缓冲空间(字节)TCP_SND_QUEUELEN ---TCP发送缓冲空间(pbufs)TCP_SNDLOWAT --- TCP写空间(字节)TCP_LISTEN_BACKLOG --- 启用TCP积压选择听协议控制块TCP_DEFAULT_LISTEN_BACKLOG --- 允许最大协议控制块监听数LWIP_TCP_TIMESTAMPS ---支持TCP时间戳选项TCP_...
LWIP配置说明
2010-01-27: Simon Goldschmidt * opt.h, tcp.h, init.c, api_msg.c: Added TCP_SNDQUEUELOWAT corresponding to TCP_SNDLOWAT and added tcp_sndqueuelen() - this fixes bug #28605 2010-01-26: Simon Goldschmidt * snmp: Use memp pools for snmp instead of the heap; added 4 new pools. ...
api_msg.c:构建api msg,被netconn调用,发送到内核锁或tcpip内核线程执行指定的回调函数。 api_lib.c:netconn API。 sockets.c:socket套接字接口层,封装netconn接口。供用户使用。 NETCONN重要组成 内核回调接口 在raw/callback API编程时,用户编程的方法就是向内核注册各种自定义的回调函数,回...
//TCP定时器设置选项#defineTCP_MSL 10000UL//TCP连接存在时间 单位ms#defineTCP_FIN_WAIT_TIMEOUT 20000UL//FIN等到ACK应答时间 单位ms#defineTCP_TMR_INTERVAL 20//TCP定时器计数间隔 20ms//***///--- Internal Memory Pool Sizes ---///***...