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
This commit is contained in:
Espressif Systems
2018-02-13 19:35:16 +08:00
parent 9416bcb821
commit 340b0a234e
3 changed files with 3 additions and 1 deletions

View File

@ -13,7 +13,7 @@ gwen:
gitlab:
espconn: 3a998034
freertos: ac047746
lwip: 3e8cc2ef
lwip: 3c4f800b
driver: 7bee5263
mbedtls: 1ac9f1f4
ssl: eefb383a

Binary file not shown.

View File

@ -464,6 +464,7 @@ tcp_write(struct tcp_pcb *pcb, const void *arg, u16_t len, u8_t apiflags)
LWIP_ASSERT("inconsistend oversize vs. len", (oversize == 0) || (pos == len));
#endif /* TCP_OVERSIZE */
#if !LWIP_NETIF_TX_SINGLE_PBUF
/*
* Phase 2: Chain a new pbuf to the end of pcb->unsent.
*
@ -513,6 +514,7 @@ tcp_write(struct tcp_pcb *pcb, const void *arg, u16_t len, u8_t apiflags)
pos += seglen;
queuelen += pbuf_clen(concat_p);
}
#endif /* !LWIP_NETIF_TX_SINGLE_PBUF */
} else {
#if TCP_OVERSIZE
LWIP_ASSERT("unsent_oversize mismatch (pcb->unsent is NULL)",