tcp_split_unsent_seg() is only used within LwIP.
 
Symbols
loading...
Files
loading...

tcp_split_unsent_seg() function

Split segment on the head of the unsent queue. If return is not ERR_OK, existing head remains intact The split is accomplished by creating a new TCP segment and pbuf which holds the remainder payload after the split. The original pbuf is trimmed to new length. This allows splitting of read-only pbufs

Syntax

err_t tcp_split_unsent_seg(struct tcp_pcb *pcb,     u16_t split);
Implemented in tcp_out.c:826

Arguments

pcb

the tcp_pcb for which to split the unsent head

split

the amount of payload to remain in the head

References

LocationReferrerText
tcp_out.c:827
tcp_split_unsent_seg(struct tcp_pcb *pcb, u16_t split)
tcp_priv.h:474
err_t tcp_split_unsent_seg(struct tcp_pcb *pcb, u16_t split);
tcp.c:1254tcp_slowtmr()
if (tcp_split_unsent_seg(pcb, (u16_t)pcb->snd_wnd) == ERR_OK) {

Call Tree

Functions calling tcp_split_unsent_seg()
Functions called by tcp_split_unsent_seg()
all items filtered out
tcp_split_unsent_seg()
Data read by tcp_split_unsent_seg()
Data written by tcp_split_unsent_seg()
tcp_split_unsent_seg()::seg
tcp_split_unsent_seg()::useg
tcp_split_unsent_seg()::p
tcp_split_unsent_seg()::optlen
tcp_split_unsent_seg()::optflags
tcp_split_unsent_seg()::split_flags
tcp_split_unsent_seg()::remainder_flags
tcp_split_unsent_seg()::remainder
tcp_split_unsent_seg()::offset
all items filtered out
tcp_split_unsent_seg()
tcp_split_unsent_seg()::seg
tcp_split_unsent_seg()::useg
tcp_split_unsent_seg()::p
tcp_split_unsent_seg()::optlen
tcp_split_unsent_seg()::optflags
tcp_split_unsent_seg()::split_flags
tcp_split_unsent_seg()::remainder_flags
tcp_split_unsent_seg()::remainder
tcp_split_unsent_seg()::offset
all items filtered out
Type of tcp_split_unsent_seg()
tcp_split_unsent_seg()
all items filtered out