Symbols
loading...
Files
loading...

netif_set_addr() function

Change IP address configuration for a network interface (including netmask and default gateway).

Syntax

void netif_set_addr(struct netif *netif,     const ip4_addr_t *ipaddr,     const ip4_addr_t *netmask,     const ip4_addr_t *gw);
Implemented in netif.c:657

Arguments

netif

the network interface to change

ipaddr

the new IP address

netmask

the new netmask

gw

the new default gateway

Examples

netif_set_addr() is referenced by 29 libraries and example projects.

References

LocationReferrerText
netif.c:658
netif_set_addr(struct netif *netif, const ip4_addr_t *ipaddr, const ip4_addr_t *netmask,
netif.h:419
void netif_set_addr(struct netif *netif, const ip4_addr_t *ipaddr, const ip4_addr_t *netmask,
dhcp.c:287dhcp_handle_nak()
dhcp.c:1139dhcp_bind()
netif_set_addr(netif, &dhcp->offered_ip_addr, &sn_mask, &gw_addr);
dhcp.c:1371dhcp_release_and_stop()
netif.c:367netif_add()
netif_set_addr(netif, ipaddr, netmask, gw);

Call Tree

Functions calling netif_set_addr()
Functions called by netif_set_addr()
netif_set_addr()
Data read by netif_set_addr()
Data written by netif_set_addr()
netif_set_addr()::old_nm
netif_set_addr()::old_gw
netif_set_addr()::remove
all items filtered out
netif_set_addr()
netif_set_addr()::remove
all items filtered out
Type of netif_set_addr()
netif_set_addr()
all items filtered out