Embedded TCP/IP stack
4.7.0
|
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.
netif_desc | Network interface descriptor. |
ipaddr | The IPv4 address of the network interface. |
subnet_mask | The subnet mask of the network interface. |
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.