lwIP  2.0.2
Lightweight IP stack

Modules

 MLD6
 

Functions

const ip_addr_tip6_select_source_address (struct netif *netif, const ip6_addr_t *dest)
 

Detailed Description

Function Documentation

◆ ip6_select_source_address()

const ip_addr_t* ip6_select_source_address ( struct netif netif,
const ip6_addr_t dest 
)

Select the best IPv6 source address for a given destination IPv6 address. Loosely follows RFC 3484. "Strong host" behavior is assumed.

Parameters
netifthe netif on which to send a packet
destthe destination we are trying to reach
Returns
the most suitable source address to use, or NULL if no suitable source address is found