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

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.

Syntax

err_t ip4_output(struct pbuf *p,     const ip4_addr_t *src,     const ip4_addr_t *dest,     u8_t ttl,     u8_t tos,     u8_t proto);
Implemented in ip4.c:1027

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

References

LocationText
ip4.c:1028
ip4_output(struct pbuf *p, const ip4_addr_t *src, const ip4_addr_t *dest,
ip4.h:72
err_t ip4_output(struct pbuf *p, const ip4_addr_t *src, const ip4_addr_t *dest,

Call Tree

Functions called by ip4_output()
ip4_output()
printf()
all items filtered out
Data read by ip4_output()
Data written by ip4_output()
ip4_output()
ip4_output()::netif
all items filtered out
Type of ip4_output()
ip4_output()
all items filtered out