Home
last modified time | relevance | path

Searched refs:gw (Results 1 – 16 of 16) sorted by relevance

/Zephyr-latest/subsys/net/lib/mqtt_sn/
Dmqtt_sn.c129 struct mqtt_sn_gateway *gw; in encode_and_send() local
131 gw = SYS_SLIST_PEEK_HEAD_CONTAINER(&client->gateway, gw, next); in encode_and_send()
132 if (gw == NULL || gw->addr_len == 0) { in encode_and_send()
137 err = client->transport->sendto(client, client->tx.data, client->tx.len, gw->addr, in encode_and_send()
138 gw->addr_len); in encode_and_send()
317 static void mqtt_sn_gw_destroy(struct mqtt_sn_client *client, struct mqtt_sn_gateway *gw) in mqtt_sn_gw_destroy() argument
319 LOG_DBG("Destroying gateway %d", gw->gw_id); in mqtt_sn_gw_destroy()
320 sys_slist_find_and_remove(&client->gateway, &gw->next); in mqtt_sn_gw_destroy()
321 k_mem_slab_free(&gateways, (void *)gw); in mqtt_sn_gw_destroy()
326 struct mqtt_sn_gateway *gw; in mqtt_sn_gw_destroy_all() local
[all …]
/Zephyr-latest/subsys/net/lib/shell/
Droute.c119 struct in6_addr gw = {0}; in cmd_net_ip6_route_add() local
144 if (net_addr_pton(AF_INET6, argv[3], &gw)) { in cmd_net_ip6_route_add()
150 &gw, NET_IPV6_ND_INFINITE_LIFETIME, in cmd_net_ip6_route_add()
Diface.c543 net_sprint_ipv4_addr(&ipv4->gw)); in iface_cb()
/Zephyr-latest/samples/net/dhcpv4_client/src/
Dmain.c68 &iface->config.ip.ipv4->gw, in handler()
/Zephyr-latest/tests/net/arp/src/
Dmain.c343 struct in_addr gw = { { { 192, 168, 0, 42 } } }; in ZTEST() local
349 net_if_ipv4_set_gw(iface, &gw); in ZTEST()
473 (uint8_t *)&iface->config.ip.ipv4->gw)) { in ZTEST()
476 net_sprint_ipv4_addr(&iface->config.ip.ipv4->gw)); in ZTEST()
/Zephyr-latest/tests/boards/espressif/ethernet/src/
Dmain.c50 net_addr_ntop(AF_INET, &iface->config.ip.ipv4->gw, buf, sizeof(buf))); in ipv4_event()
/Zephyr-latest/samples/net/dns_resolve/src/
Dmain.c194 &iface->config.ip.ipv4->gw, in print_dhcpv4_addr()
/Zephyr-latest/drivers/wifi/esp_at/
Desp.h227 struct in_addr gw; member
Desp.c634 net_addr_pton(AF_INET, ip, &dev->gw); in MODEM_CMD_DEFINE()
674 net_if_ipv4_set_gw(dev->net_iface, &dev->gw); in esp_ip_addr_work()
/Zephyr-latest/tests/net/ip-addr/src/
Dmain.c480 struct in_addr gw = { { { 192, 168, 0, 42 } } }; in ZTEST() local
569 net_if_ipv4_set_gw(iface, &gw); in ZTEST()
/Zephyr-latest/subsys/net/lib/config/
Dinit.c90 net_addr_ntop(AF_INET, &iface->config.ip.ipv4->gw, in print_dhcpv4_info()
/Zephyr-latest/subsys/net/ip/
Dnet_if.c4092 struct in_addr gw = { 0 }; in net_if_ipv4_get_gw() local
4104 gw = iface->config.ip.ipv4->gw; in net_if_ipv4_get_gw()
4108 return gw; in net_if_ipv4_get_gw()
4111 void net_if_ipv4_set_gw(struct net_if *iface, const struct in_addr *gw) in net_if_ipv4_set_gw() argument
4123 net_ipaddr_copy(&iface->config.ip.ipv4->gw, gw); in net_if_ipv4_set_gw()
4129 const struct in_addr *gw) in z_impl_net_if_ipv4_set_gw_by_index() argument
4138 net_if_ipv4_set_gw(iface, gw); in z_impl_net_if_ipv4_set_gw_by_index()
4145 const struct in_addr *gw) in z_vrfy_net_if_ipv4_set_gw_by_index() argument
4155 K_OOPS(k_usermode_from_copy(&gw_addr, (void *)gw, sizeof(gw_addr))); in z_vrfy_net_if_ipv4_set_gw_by_index()
/Zephyr-latest/include/zephyr/net/
Dnet_if.h467 struct in_addr gw; member
2663 void net_if_ipv4_set_gw(struct net_if *iface, const struct in_addr *gw);
2673 __syscall bool net_if_ipv4_set_gw_by_index(int index, const struct in_addr *gw);
/Zephyr-latest/subsys/net/l2/ethernet/
Darp.c379 addr = &ipv4->gw; in net_arp_prepare()
/Zephyr-latest/subsys/net/lib/dhcpv4/
Ddhcpv4_server.c520 buf, buflen, &ctx->iface->config.ip.ipv4->gw); in dhcpv4_encode_requested_params()
/Zephyr-latest/drivers/wifi/nxp/
Dnxp_wifi_drv.c549 ap_addr4->gw = ap_addr4->address; in nxp_wifi_start_ap()