Skip to content

Commit 340b0a2

Browse files
committed
fix(lwip): Fix contains more than one tcp pbuf single tx packet
Fix TX exist more pbufs after enable LWIP_NETIF_TX_SINGLE_PBUF. internal: 3d5f33f0
1 parent 9416bcb commit 340b0a2

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ gwen:
1313
gitlab:
1414
espconn: 3a998034
1515
freertos: ac047746
16-
lwip: 3e8cc2ef
16+
lwip: 3c4f800b
1717
driver: 7bee5263
1818
mbedtls: 1ac9f1f4
1919
ssl: eefb383a

lib/liblwip.a

-656 Bytes
Binary file not shown.

third_party/lwip/core/tcp_out.c

+2
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,7 @@ tcp_write(struct tcp_pcb *pcb, const void *arg, u16_t len, u8_t apiflags)
464464
LWIP_ASSERT("inconsistend oversize vs. len", (oversize == 0) || (pos == len));
465465
#endif /* TCP_OVERSIZE */
466466

467+
#if !LWIP_NETIF_TX_SINGLE_PBUF
467468
/*
468469
* Phase 2: Chain a new pbuf to the end of pcb->unsent.
469470
*
@@ -513,6 +514,7 @@ tcp_write(struct tcp_pcb *pcb, const void *arg, u16_t len, u8_t apiflags)
513514
pos += seglen;
514515
queuelen += pbuf_clen(concat_p);
515516
}
517+
#endif /* !LWIP_NETIF_TX_SINGLE_PBUF */
516518
} else {
517519
#if TCP_OVERSIZE
518520
LWIP_ASSERT("unsent_oversize mismatch (pcb->unsent is NULL)",

0 commit comments

Comments
 (0)