tcp_create_segment() function
Create a TCP segment with prefilled header. Called by tcp_write, tcp_enqueue_flags and tcp_split_unsent_seg
Arguments
pcb
Protocol control block for the TCP connection.
p
pbuf that is used to hold the TCP header.
hdrflags
TCP flags for header.
seqno
TCP sequence number of this packet
optflags
options to include in TCP header
Return value
a new tcp_seg pointing to p, or NULL. The TCP header is filled in except ackno and wnd. p is freed on failure.
Functions calling tcp_create_segment()
Functions called by tcp_create_segment()
tcp_create_segment()
printf() all items filtered out
Data read by tcp_create_segment()
Data written by tcp_create_segment()
tcp_create_segment()::seg tcp_create_segment()::optlen all items filtered out
tcp_create_segment()
tcp_create_segment()::seg tcp_create_segment()::optlen all items filtered out
Type of tcp_create_segment()
tcp_create_segment()