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
Arguments
p_if_nbr
Pointer to a variable to :
- Pass the interface number to use for transmission,
Pass NULL otherwise. - Return the interface number associated with the selected source address.
- Pass the interface number to use for transmission,
p_addr_src
Pointer to a variable to :
Pass a suggested IPv6 source address,
Pass NULL otherwise.
p_addr_dest
Pointer to the IPv6 destination address.
p_addr_nexthop
Pointer to an IPv6 address that will received the Next Hop IPv6 address found in the process of founding the best source address.
p_err
Pointer to variable that will receive the error code from this function:
NET_IPv6_ERR_NONE
NET_IPv6_ERR_NULL_PTR
NET_IPv6_ERR_TX_NEXT_HOP_NONE
NET_IPv6_ERR_ADDR_NONE_AVAIL
NET_IPv6_ERR_ADDR_CFG_IN_PROGRESS
NET_IPv6_ERR_ADDR_TBL_SIZE
NET_IF_ERR_INVALID_IF
NET_IPv6_ERR_TX_SRC_SEL_FAILNET_ERR_LOCK
Returned Value
Pointer to the IPv6 addresses object associated with the best source address for the specified destination.
Required Configuration
None.
Notes / Warnings
None.