ip4_output() function
Simple interface to ip_output_if. It finds the outgoing network interface and calls upon ip_output_if to do the actual work.
Arguments
p
the packet to send (p->payload points to the data, e.g. next protocol header; if dest == LWIP_IP_HDRINCL, p already includes an IP header and p->payload points to that IP header)
src
the source IP address to send from (if src == IP4_ADDR_ANY, the IP address of the netif used to send is used as source address)
dest
the destination IP address to send the packet to
ttl
the TTL value to be set in the IP header
tos
the TOS value to be set in the IP header
proto
the PROTOCOL to be set in the IP header
Return value
ERR_RTE if no route is found see ip_output_if() for more return values
Functions called by ip4_output()
ip4_output()
printf() all items filtered out
Data read by ip4_output()
Data written by ip4_output()
ip4_output()::netif all items filtered out
ip4_output()
ip4_output()::netif all items filtered out
Type of ip4_output()
ip4_output()