Lines Matching refs:gw
221 * @param gw default gateway IP address for the new netif
244 const ip4_addr_t *ipaddr, const ip4_addr_t *netmask, const ip4_addr_t *gw,
258 ip_addr_set_zero_ip4(&netif->gw);
307 netif_set_addr(netif, ipaddr, netmask, gw);
334 LWIP_DEBUGF(NETIF_DEBUG, (" gw "));
335 ip4_addr_debug_print(NETIF_DEBUG, gw);
350 * @param gw the new default gateway
354 const ip4_addr_t *gw)
357 /* when removing an address, we have to remove it *before* changing netmask/gw
361 netif_set_gw(netif, gw);
364 netif_set_gw(netif, gw);
365 /* set ipaddr last to ensure netmask/gw have been set when status callback is called */
553 * @param gw the new default gateway
558 netif_set_gw(struct netif *netif, const ip4_addr_t *gw)
560 ip4_addr_set(ip_2_ip4(&netif->gw), gw);
561 IP_SET_TYPE_VAL(netif->gw, IPADDR_TYPE_V4);