Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
IPv4 address handling
[Network interface (NETIF)]
Functions | |
void | netif_set_addr (struct netif *netif, const ip4_addr_t *ipaddr, const ip4_addr_t *netmask, const ip4_addr_t *gw) |
Change IP address configuration for a network interface (including netmask and default gateway). | |
void | netif_set_ipaddr (struct netif *netif, const ip4_addr_t *ipaddr) |
Change the IP address of a network interface. | |
void | netif_set_gw (struct netif *netif, const ip4_addr_t *gw) |
Change the default gateway for a network interface. | |
void | netif_set_netmask (struct netif *netif, const ip4_addr_t *netmask) |
Change the netmask of a network interface. |
Function Documentation
void netif_set_addr | ( | struct netif * | netif, |
const ip4_addr_t * | ipaddr, | ||
const ip4_addr_t * | netmask, | ||
const ip4_addr_t * | gw | ||
) |
Change IP address configuration for a network interface (including netmask and default gateway).
- Parameters:
-
netif the network interface to change ipaddr the new IP address netmask the new netmask gw the new default gateway
Definition at line 356 of file lwip_netif.c.
void netif_set_gw | ( | struct netif * | netif, |
const ip4_addr_t * | gw | ||
) |
Change the default gateway for a network interface.
- Parameters:
-
netif the network interface to change gw the new default gateway
- Note:
- call netif_set_addr() if you also want to change ip address and netmask
Definition at line 561 of file lwip_netif.c.
void netif_set_ipaddr | ( | struct netif * | netif, |
const ip4_addr_t * | ipaddr | ||
) |
Change the IP address of a network interface.
- Parameters:
-
netif the network interface to change ipaddr the new IP address
- Note:
- call netif_set_addr() if you also want to change netmask and default gateway
Definition at line 511 of file lwip_netif.c.
void netif_set_netmask | ( | struct netif * | netif, |
const ip4_addr_t * | netmask | ||
) |
Change the netmask of a network interface.
- Parameters:
-
netif the network interface to change netmask the new netmask
- Note:
- call netif_set_addr() if you also want to change ip address and default gateway
Definition at line 584 of file lwip_netif.c.
Generated on Tue Aug 9 2022 00:37:29 by
