mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-03-30 07:20:20 +00:00
use pcb->mss instead of TCP_MSS for preallocate mss-sized pbufs (bug #34019)
This commit is contained in:
parent
49369cc9ce
commit
2576a2e565
@ -32,6 +32,10 @@ HISTORY
|
|||||||
|
|
||||||
++ Bugfixes:
|
++ Bugfixes:
|
||||||
|
|
||||||
|
2011-09-11: Simon Goldschmidt
|
||||||
|
* tcp_out.c: use pcb->mss instead of TCP_MSS for preallocate mss-sized pbufs
|
||||||
|
(bug #34019)
|
||||||
|
|
||||||
2011-09-09: Simon Goldschmidt
|
2011-09-09: Simon Goldschmidt
|
||||||
* udp.c: fixed bug #34072: UDP broadcast is received from wrong UDP pcb if
|
* udp.c: fixed bug #34072: UDP broadcast is received from wrong UDP pcb if
|
||||||
udp port matches
|
udp port matches
|
||||||
|
@ -229,7 +229,7 @@ tcp_pbuf_prealloc(pbuf_layer layer, u16_t length, u16_t max_length,
|
|||||||
LWIP_UNUSED_ARG(apiflags);
|
LWIP_UNUSED_ARG(apiflags);
|
||||||
LWIP_UNUSED_ARG(first_seg);
|
LWIP_UNUSED_ARG(first_seg);
|
||||||
/* always create MSS-sized pbufs */
|
/* always create MSS-sized pbufs */
|
||||||
alloc = TCP_MSS;
|
alloc = pcb->mss;
|
||||||
#else /* LWIP_NETIF_TX_SINGLE_PBUF */
|
#else /* LWIP_NETIF_TX_SINGLE_PBUF */
|
||||||
if (length < max_length) {
|
if (length < max_length) {
|
||||||
/* Should we allocate an oversized pbuf, or just the minimum
|
/* Should we allocate an oversized pbuf, or just the minimum
|
||||||
|
Loading…
x
Reference in New Issue
Block a user