Home
last modified time | relevance | path

Searched refs:net_ctx (Results 1 – 4 of 4) sorted by relevance

/Zephyr-latest/subsys/net/lib/shell/
Dwebsocket.c27 struct net_context *net_ctx; in websocket_context_cb() local
33 net_ctx = zvfs_get_fd_obj(context->real_sock, NULL, 0); in websocket_context_cb()
34 if (net_ctx == NULL) { in websocket_context_cb()
44 get_addresses(net_ctx, addr_local, sizeof(addr_local), in websocket_context_cb()
48 (*count) + 1, context, net_ctx, in websocket_context_cb()
49 net_if_get_by_iface(net_context_get_iface(net_ctx)), in websocket_context_cb()
/Zephyr-latest/tests/net/checksum_offload/src/
Dmain.c638 struct net_context *net_ctx; in test_udp_context_prepare() local
695 ret = net_context_get(family, SOCK_DGRAM, IPPROTO_UDP, &net_ctx); in test_udp_context_prepare()
699 ret = net_context_bind(net_ctx, &src_addr, addrlen); in test_udp_context_prepare()
715 return net_ctx; in test_udp_context_prepare()
723 struct net_context *net_ctx; in test_tx_chksum() local
727 net_ctx = test_udp_context_prepare(family, offloaded, &dst_addr); in test_tx_chksum()
728 zassert_not_null(net_ctx, "Failed to obtain net_ctx"); in test_tx_chksum()
734 ret = net_context_sendto(net_ctx, test_data, len, &dst_addr, in test_tx_chksum()
743 net_context_unref(net_ctx); in test_tx_chksum()
771 struct net_context *net_ctx; in test_tx_chksum_udp_frag() local
[all …]
/Zephyr-latest/tests/bsim/bluetooth/mesh/src/
Dtest_beacon.c2087 } net_ctx[2] = { in test_rx_priv_multi_net_id() local
2097 for (size_t i = 0; i < ARRAY_SIZE(net_ctx); i++) { in test_rx_priv_multi_net_id()
2099 proxy_adv_hash_calc(net_ctx[i].net, beacon.pp_random, NULL, true)) { in test_rx_priv_multi_net_id()
2103 net_ctx[i].start = k_uptime_get(); in test_rx_priv_multi_net_id()
2104 net_ctx[i].recv_cnt++; in test_rx_priv_multi_net_id()
2109 ASSERT_IN_RANGE(k_uptime_get() - net_ctx[old_idx].start, in test_rx_priv_multi_net_id()
2111 ASSERT_IN_RANGE(net_ctx[old_idx].recv_cnt, 9, 12); in test_rx_priv_multi_net_id()
2112 net_ctx[old_idx].recv_cnt = 0; in test_rx_priv_multi_net_id()
2118 net_ctx[i].start = k_uptime_get(); in test_rx_priv_multi_net_id()
2119 net_ctx[i].recv_cnt++; in test_rx_priv_multi_net_id()
[all …]
/Zephyr-latest/subsys/net/ip/
Dnet_context.c15 LOG_MODULE_REGISTER(net_ctx, CONFIG_NET_CONTEXT_LOG_LEVEL);