TCP_OVERSIZE is only used within LwIP.
 
Symbols
loading...
Files
loading...

TCP_OVERSIZE macro

TCP_OVERSIZE: The maximum number of bytes that tcp_write may allocate ahead of time in an attempt to create shorter pbuf chains for transmission. The meaningful range is 0 to TCP_MSS. Some suggested values are: 0: Disable oversized allocation. Each tcp_write() allocates a new pbuf (old behaviour). 1: Allocate size-aligned pbufs with minimal excess. Use this if your scatter-gather DMA requires aligned fragments. 128: Limit the pbuf/memory overhead to 20%. TCP_MSS: Try to create unfragmented TCP packets. TCP_MSS/4: Try to create 4 fragments or less per TCP packet.

Syntax

#define TCP_OVERSIZE TCP_MSS

References

LocationText
opt.h:1420
#define TCP_OVERSIZE TCP_MSS
init.c:229
#if LWIP_TCP && LWIP_NETIF_TX_SINGLE_PBUF && !TCP_OVERSIZE
tcp.c:2164
#if TCP_OVERSIZE
tcp.h:330
#if TCP_OVERSIZE
tcp_in.c:1303
#if TCP_OVERSIZE
tcp_out.c:120
#if TCP_OVERSIZE
tcp_out.c:123
#define TCP_OVERSIZE_CALC_LENGTH(length) ((length) + TCP_OVERSIZE)
tcp_out.c:223
#if TCP_OVERSIZE
tcp_out.c:398
#if TCP_OVERSIZE
tcp_out.c:496
#if TCP_OVERSIZE
tcp_out.c:585
#if TCP_OVERSIZE
tcp_out.c:624
#if TCP_OVERSIZE
tcp_out.c:710
#if TCP_OVERSIZE
tcp_out.c:972
#if TCP_OVERSIZE
tcp_out.c:1107
#if TCP_OVERSIZE
tcp_out.c:1410
#if TCP_OVERSIZE
tcp_out.c:1755
#if TCP_OVERSIZE
tcp_priv.h:243
#if TCP_OVERSIZE && defined(LWIP_DEBUG)