Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Description

Find the best matched source address in the IPv6 configured host addresses for the specified destination address.

Files

net_ipv6.h/net_ipv6.c

Prototype

Code Block
          NET_IPv6_ADDRS NetIPv6_GetAddrSrc(NET_IF_NBR     *p_if_nbr,
                                            NET_IPv6_ADDR  *p_addr_src,
                                            NET_IPv6_ADDR  *p_addr_dest,
                                            NET_IPv6_ADDR  *p_addr_nexthop,
                                            NET_ERR        *p_err);

Arguments

p_if_nbr

Pointer to a variable to : 

...

NET_IPv6_ERR_NONE
NET_ERR_FAULT_NULL_PTR
NET_IPv6_ERR_TX_NEXT_HOP_NONE
NET_IPv6_ERR_TX_SRC_SEL_FAIL

NET_ERR_FAULT_LOCK_ACQUIRE

Returned Value

Pointer to the IPv6 addresses object associated with the best source address for the specified destination.

Required Configuration

None.

Notes / Warnings

None.