Embedded TCP/IP stack: fnet_netif_set_ip4_dns

FNET

void fnet_netif_set_ip4_dns ( fnet_netif_desc_t  netif_desc,
fnet_ip4_addr_t  dns 
)

Sets the DNS server IPv4 address of the specified network interface.

Parameters
netif_descNetwork interface descriptor.
dnsThe DNS server IPv4 address of the network interface.
See also
fnet_netif_get_ip4_dns(), FNET_CFG_DNS

This function sets the DNS server IPv4 address of the netif interface to the dns value.
It is present only if FNET_CFG_DNS is set to 1.


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