Embedded TCP/IP stack: fnet_netif_set_ip4_addr_type

FNET

void fnet_netif_set_ip4_addr_type ( fnet_netif_desc_t  netif_desc,
fnet_netif_ip_addr_type_t  ipaddr_type 
)

Sets the way IPv4 address parameters were obtained.

Parameters
netif_descNetwork interface descriptor.
ipaddr_typeType of IPv4 address parameters.
See also
fnet_netif_get_ip4_addr_type()

This function sets type of the interface IPv4 address parameters, if they were set manually, or obtained by the DHCP client or set during link-local autoconfiguartion (AutoIP).
fnet_netif_set_ip4_addr(), fnet_netif_set_ip4_gateway() and fnet_netif_set_ip4_dns() sets the type to FNET_NETIF_IP_ADDR_TYPE_MANUAL automatically.


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