netif_set_gw() is only used within LwIP.
 
Symbols
loading...
Files
loading...

netif_set_gw() function

Change the default gateway for a network interface

Syntax

void netif_set_gw(struct netif *netif,     const ip4_addr_t *gw);
Implemented in netif.c:620

Arguments

netif

the network interface to change

gw

the new default gateway

Notes

call netif_set_addr() if you also want to change ip address and netmask

References

LocationText
netif.c:621
netif_set_gw(struct netif *netif, const ip4_addr_t *gw)
netif.h:437
void netif_set_gw(struct netif *netif, const ip4_addr_t *gw);

Call Tree

Functions called by netif_set_gw()
netif_set_gw()
printf()
all items filtered out
Data read by netif_set_gw()
Data written by netif_set_gw()
netif_set_gw()::old_gw
all items filtered out
netif_set_gw()
all items filtered out
Type of netif_set_gw()
netif_set_gw()
all items filtered out