mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-04 05:39:53 +00:00
tcp_out: Fix comment for last_unsent->oversize_left and tcp_pcb.unsent_oversize
Both last_unsent->unsent_oversize and tcp_pcb.unsent_oversized fields are not exist, fix the comments. Signed-off-by: Axel Lin <axel.lin@ingics.com>
This commit is contained in:
parent
df8e404abd
commit
30aedfc3f7
@ -461,7 +461,7 @@ tcp_write(struct tcp_pcb *pcb, const void *arg, u16_t len, u8_t apiflags)
|
|||||||
*/
|
*/
|
||||||
#if TCP_OVERSIZE
|
#if TCP_OVERSIZE
|
||||||
#if TCP_OVERSIZE_DBGCHECK
|
#if TCP_OVERSIZE_DBGCHECK
|
||||||
/* check that pcb->unsent_oversize matches last_unsent->unsent_oversize */
|
/* check that pcb->unsent_oversize matches last_unsent->oversize_left */
|
||||||
LWIP_ASSERT("unsent_oversize mismatch (pcb vs. last_unsent)",
|
LWIP_ASSERT("unsent_oversize mismatch (pcb vs. last_unsent)",
|
||||||
pcb->unsent_oversize == last_unsent->oversize_left);
|
pcb->unsent_oversize == last_unsent->oversize_left);
|
||||||
#endif /* TCP_OVERSIZE_DBGCHECK */
|
#endif /* TCP_OVERSIZE_DBGCHECK */
|
||||||
|
@ -249,7 +249,7 @@ struct tcp_seg {
|
|||||||
#if TCP_OVERSIZE_DBGCHECK
|
#if TCP_OVERSIZE_DBGCHECK
|
||||||
u16_t oversize_left; /* Extra bytes available at the end of the last
|
u16_t oversize_left; /* Extra bytes available at the end of the last
|
||||||
pbuf in unsent (used for asserting vs.
|
pbuf in unsent (used for asserting vs.
|
||||||
tcp_pcb.unsent_oversized only) */
|
tcp_pcb.unsent_oversize only) */
|
||||||
#endif /* TCP_OVERSIZE_DBGCHECK */
|
#endif /* TCP_OVERSIZE_DBGCHECK */
|
||||||
#if TCP_CHECKSUM_ON_COPY
|
#if TCP_CHECKSUM_ON_COPY
|
||||||
u16_t chksum;
|
u16_t chksum;
|
||||||
|
Loading…
Reference in New Issue
Block a user