Lines Matching refs:gw
278 const ip4_addr_t *ipaddr, const ip4_addr_t *netmask, const ip4_addr_t *gw, in netif_add() argument
305 if (gw == NULL) { in netif_add()
306 gw = ip_2_ip4(IP4_ADDR_ANY); in netif_add()
312 ip_addr_set_zero_ip4(&netif->gw); in netif_add()
367 netif_set_addr(netif, ipaddr, netmask, gw); in netif_add()
432 ip4_addr_debug_print(NETIF_DEBUG, gw); in netif_add()
587 netif_do_set_gw(struct netif *netif, const ip4_addr_t *gw, ip_addr_t *old_gw) in netif_do_set_gw() argument
590 if (ip4_addr_cmp(gw, netif_ip4_gw(netif)) == 0) { in netif_do_set_gw()
598 ip4_addr_set(ip_2_ip4(&netif->gw), gw); in netif_do_set_gw()
599 IP_SET_TYPE_VAL(netif->gw, IPADDR_TYPE_V4); in netif_do_set_gw()
621 netif_set_gw(struct netif *netif, const ip4_addr_t *gw) in netif_set_gw() argument
634 if (gw == NULL) { in netif_set_gw()
635 gw = IP4_ADDR_ANY4; in netif_set_gw()
638 if (netif_do_set_gw(netif, gw, old_gw)) { in netif_set_gw()
659 const ip4_addr_t *gw) in netif_set_addr() argument
684 if (gw == NULL) { in netif_set_addr()
685 gw = IP4_ADDR_ANY4; in netif_set_addr()
705 if (netif_do_set_gw(netif, gw, old_gw)) { in netif_set_addr()