tcp_output_control_segment() is only used within LwIP.
 
Symbols
loading...
Files
loading...
CodeScopeSTM32 Libraries and SamplesLwIPtcp_output_control_segment()

tcp_output_control_segment() function

Output a control segment pbuf to IP. Called from tcp_rst, tcp_send_empty_ack, tcp_keepalive and tcp_zero_window_probe, this function combines selecting a netif for transmission, generating the tcp header checksum and calling ip_output_if while handling netif hints and stats.

Syntax

static err_t tcp_output_control_segment(const struct tcp_pcb *pcb,     struct pbuf *p,     const ip_addr_t *src,     const ip_addr_t *dst);

Arguments

pcb

p

src

dst

References

LocationReferrerText
tcp_out.c:1921
tcp_output_control_segment(const struct tcp_pcb *pcb, struct pbuf *p,
tcp_out.c:2009tcp_rst()
tcp_output_control_segment(pcb, p, local_ip, remote_ip);
tcp_out.c:2057tcp_send_empty_ack()
err = tcp_output_control_segment(pcb, p, &pcb->local_ip, &pcb->remote_ip);
tcp_out.c:2100tcp_keepalive()
err = tcp_output_control_segment(pcb, p, &pcb->local_ip, &pcb->remote_ip);
tcp_out.c:2183tcp_zero_window_probe()
err = tcp_output_control_segment(pcb, p, &pcb->local_ip, &pcb->remote_ip);

Call Tree

Functions calling tcp_output_control_segment()
Functions called by tcp_output_control_segment()
tcp_output_control_segment()
printf()
all items filtered out
Data read by tcp_output_control_segment()
Data written by tcp_output_control_segment()
tcp_output_control_segment()::err
tcp_output_control_segment()::netif
tcp_output_control_segment()::ttl
tcp_output_control_segment()::tos
all items filtered out
tcp_output_control_segment()
tcp_output_control_segment()::err
tcp_output_control_segment()::netif
tcp_output_control_segment()::ttl
tcp_output_control_segment()::tos
all items filtered out
Type of tcp_output_control_segment()
tcp_output_control_segment()
all items filtered out