ON Semiconductor / mbed-os

Dependents:   mbed-TFT-example-NCS36510 mbed-Accelerometer-example-NCS36510 mbed-Accelerometer-example-NCS36510

Embed: (wiki syntax)

« Back to documentation index

lwip_ethip6.c File Reference

lwip_ethip6.c File Reference

Ethernet output for IPv6. More...

Go to the source code of this file.

Functions

static err_t ethip6_send (struct netif *netif, struct pbuf *p, struct eth_addr *src, struct eth_addr *dst)
 Send an IPv6 packet on the network using netif->linkoutput The ethernet header is filled in before sending.
err_t ethip6_output (struct netif *netif, struct pbuf *q, const ip6_addr_t *ip6addr)
 Resolve and fill-in Ethernet address header for outgoing IPv6 packet.

Detailed Description

Ethernet output for IPv6.

Uses ND tables for link-layer addressing.

Definition in file lwip_ethip6.c.


Function Documentation

err_t ethip6_output ( struct netif netif,
struct pbuf q,
const ip6_addr_t ip6addr 
)

Resolve and fill-in Ethernet address header for outgoing IPv6 packet.

For IPv6 multicast, corresponding Ethernet addresses are selected and the packet is transmitted on the link.

For unicast addresses, ...

Parameters:
netifThe lwIP network interface which the IP packet will be sent on.
qThe pbuf(s) containing the IP packet to be sent.
ip6addrThe IP address of the packet destination.
Returns:
  • ERR_RTE No route to destination (no gateway to external networks), or the return type of either etharp_query() or etharp_send_ip().

Definition at line 102 of file lwip_ethip6.c.

static err_t ethip6_send ( struct netif netif,
struct pbuf p,
struct eth_addr *  src,
struct eth_addr *  dst 
) [static]

Send an IPv6 packet on the network using netif->linkoutput The ethernet header is filled in before sending.

netif the lwIP network interface on which to send the packet p the packet to send, p->payload pointing to the (uninitialized) ethernet header src the source MAC address to be copied into the ethernet header dst the destination MAC address to be copied into the ethernet header

Returns:
ERR_OK if the packet was sent, any other err_t on failure

Definition at line 69 of file lwip_ethip6.c.