Embedded TCP/IP stack: fnet_netif_get_ip6_dns

FNET

fnet_bool_t fnet_netif_get_ip6_dns ( fnet_netif_desc_t  netif_desc,
fnet_index_t  n,
fnet_ip6_addr_t addr_dns 
)

Retrieves the n-th DNS IPv6 address of the specified network interface.

Parameters
netif_descNetwork interface descriptor.
nSequence number of DNS IPv6 address to retrieve (from 0).
addr_dnsPointer to DNS IPv6 address that will contain the result.
Returns
This function returns:
  • FNET_TRUE if no error occurs and addr_dns is filled.
  • FNET_FALSE in case of error or n-th DNS address is not available.
See also
FNET_CFG_ND6_RDNSS, FNET_CFG_DNS

This function is used to retrieve all DNS IPv6 addresses registered with the given interface.
It is present only if FNET_CFG_DNS is set to 1.


© 2005-2018 by Andrey Butok. http://fnet.sourceforge.net