Embedded TCP/IP stack  4.7.0

◆ fnet_netif_set_ip4_addr()

void fnet_netif_set_ip4_addr ( fnet_netif_desc_t  netif_desc,
fnet_ip4_addr_t  ipaddr,
fnet_ip4_addr_t  subnet_mask 
)

Sets the IPv4 address of the specified network interface.

Parameters
netif_descNetwork interface descriptor.
ipaddrThe IPv4 address of the network interface.
subnet_maskThe subnet mask of the network interface.
See also
fnet_netif_get_ip4_addr(), fnet_netif_get_ip4_subnet_mask

This function sets the IPv4 address and the subnet mask of the netif interface.
If subnet_mask is INADDR_ANY, the function makes a recalculation of the subnet mask automatically.


© 2005-2020 by Andrej Butok. http://fnet.sourceforge.net