Skip to content

Commit 2b59dd2

Browse files
committed
fix(lwip): Fix send TCP data with two or more pbuf
internal gitlab: d3a48012
1 parent 775c579 commit 2b59dd2

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ phy:
1818

1919
gitlab:
2020
driver : 68fc7b06
21-
lwip : 84bab89d
21+
lwip : 3267f12f
2222
mbedtls : 1d0dfd8f

lib/liblwip.a

-596 Bytes
Binary file not shown.

third_party/lwip/core/tcp_out.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,7 @@ tcp_write(struct tcp_pcb *pcb, const void *arg, u16_t len, u8_t apiflags)
461461
return ERR_MEM;
462462
}
463463

464+
#if !LWIP_NETIF_TX_SINGLE_PBUF
464465
/*
465466
* Phase 2: Chain a new pbuf to the end of pcb->unsent.
466467
*
@@ -510,6 +511,7 @@ tcp_write(struct tcp_pcb *pcb, const void *arg, u16_t len, u8_t apiflags)
510511
pos += seglen;
511512
queuelen += pbuf_clen(concat_p);
512513
}
514+
#endif /* !LWIP_NETIF_TX_SINGLE_PBUF */
513515
} else {
514516
#if TCP_OVERSIZE
515517
LWIP_ASSERT("unsent_oversize mismatch (pcb->unsent is NULL)",

0 commit comments

Comments
 (0)