Home
last modified time | relevance | path

Searched refs:IPPROTO_UDP (Results 1 – 25 of 93) sorted by relevance

1234

/Zephyr-Core-3.6.0/tests/net/socket/register/src/
Dmain.c33 .test_case.proto = IPPROTO_UDP,
40 .test_case.proto = IPPROTO_UDP,
70 .test_case.proto = IPPROTO_UDP,
77 .test_case.proto = IPPROTO_UDP,
84 .test_case.proto = IPPROTO_UDP,
91 .test_case.proto = IPPROTO_UDP,
98 .test_case.proto = IPPROTO_UDP,
/Zephyr-Core-3.6.0/tests/net/ieee802154/6lo_fragment/src/
Dmain.c310 .ipv6.nexthdr = IPPROTO_UDP,
327 .ipv6.nexthdr = IPPROTO_UDP,
344 .ipv6.nexthdr = IPPROTO_UDP,
361 .ipv6.nexthdr = IPPROTO_UDP,
378 .ipv6.nexthdr = IPPROTO_UDP,
395 .ipv6.nexthdr = IPPROTO_UDP,
412 .ipv6.nexthdr = IPPROTO_UDP,
429 .ipv6.nexthdr = IPPROTO_UDP,
447 .ipv6.nexthdr = IPPROTO_UDP,
/Zephyr-Core-3.6.0/tests/net/6lo/src/
Dmain.c557 .ipv6.nexthdr = IPPROTO_UDP,
579 .ipv6.nexthdr = IPPROTO_UDP,
601 .ipv6.nexthdr = IPPROTO_UDP,
623 .ipv6.nexthdr = IPPROTO_UDP,
645 .ipv6.nexthdr = IPPROTO_UDP,
667 .ipv6.nexthdr = IPPROTO_UDP,
726 .ipv6.nexthdr = IPPROTO_UDP,
746 .ipv6.nexthdr = IPPROTO_UDP,
801 .ipv6.nexthdr = IPPROTO_UDP,
841 .ipv6.nexthdr = IPPROTO_UDP,
[all …]
/Zephyr-Core-3.6.0/tests/net/socket/
Dsocket_helpers.h25 ret = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); in prepare_listen_sock_udp_v4()
44 ret = socket(AF_INET6, SOCK_DGRAM, IPPROTO_UDP); in prepare_listen_sock_udp_v6()
66 *sock = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); in prepare_sock_udp_v4()
84 *sock = zsock_socket(AF_INET6, SOCK_DGRAM, IPPROTO_UDP); in prepare_sock_udp_v6()
/Zephyr-Core-3.6.0/tests/net/dhcpv4/client/src/
Dmain.c205 IPPROTO_UDP, K_FOREVER); in prepare_dhcp_offer()
232 net_ipv4_finalize(pkt, IPPROTO_UDP); in prepare_dhcp_offer()
246 IPPROTO_UDP, K_FOREVER); in prepare_dhcp_ack()
273 net_ipv4_finalize(pkt, IPPROTO_UDP); in prepare_dhcp_ack()
/Zephyr-Core-3.6.0/samples/net/promiscuous_mode/src/
Dmain.c105 case IPPROTO_UDP: in print_info()
131 if (next_hdr == IPPROTO_TCP || next_hdr == IPPROTO_UDP) { in print_info()
142 if (next_hdr == IPPROTO_TCP || next_hdr == IPPROTO_UDP) { in print_info()
/Zephyr-Core-3.6.0/tests/net/context/src/
Dmain.c80 ret = net_context_get(AF_UNSPEC, SOCK_DGRAM, IPPROTO_UDP, &context); in ZTEST()
84 ret = net_context_get(AF_INET6, 10, IPPROTO_UDP, &context); in ZTEST()
92 ret = net_context_get(99, SOCK_DGRAM, IPPROTO_UDP, &context); in ZTEST()
104 ret = net_context_get(AF_INET6, SOCK_DGRAM, IPPROTO_UDP, NULL); in ZTEST()
114 ret = net_context_get(AF_INET6, SOCK_DGRAM, IPPROTO_UDP, &context); in ZTEST()
135 IPPROTO_UDP, &contexts[i]); in ZTEST()
140 ret = net_context_get(AF_INET6, SOCK_DGRAM, IPPROTO_UDP, &context); in ZTEST()
155 ret = net_context_get(AF_INET6, SOCK_DGRAM, IPPROTO_UDP, in net_ctx_create()
160 ret = net_context_get(AF_INET6, SOCK_DGRAM, IPPROTO_UDP, in net_ctx_create()
165 ret = net_context_get(AF_INET, SOCK_DGRAM, IPPROTO_UDP, in net_ctx_create()
/Zephyr-Core-3.6.0/tests/posix/headers/src/
Dnetinet_in_h.c58 zassert_not_equal(-1, IPPROTO_UDP); in ZTEST()
/Zephyr-Core-3.6.0/tests/net/udp/src/
Dmain.c243 IPPROTO_UDP, K_SECONDS(1)); in send_ipv6_udp_msg()
253 net_ipv6_finalize(pkt, IPPROTO_UDP); in send_ipv6_udp_msg()
294 IPPROTO_UDP, K_SECONDS(1)); in send_ipv6_udp_long_msg()
322 net_ipv6_finalize(pkt, IPPROTO_UDP); in send_ipv6_udp_long_msg()
360 IPPROTO_UDP, K_SECONDS(1)); in send_ipv4_udp_msg()
370 net_ipv4_finalize(pkt, IPPROTO_UDP); in send_ipv4_udp_msg()
/Zephyr-Core-3.6.0/tests/net/checksum_offload/src/
Dmain.c233 if (test_proto == IPPROTO_UDP) { in test_receiving()
293 if (test_proto == IPPROTO_UDP) { in test_fragment()
356 if (test_proto == IPPROTO_UDP) { in eth_tx_offloading_disabled()
399 if (test_proto == IPPROTO_UDP) { in eth_tx_offloading_enabled()
695 ret = net_context_get(family, SOCK_DGRAM, IPPROTO_UDP, &net_ctx); in test_udp_context_prepare()
731 test_proto = IPPROTO_UDP; in test_tx_chksum()
779 test_proto = IPPROTO_UDP; in test_tx_chksum_udp_frag()
1008 test_proto = IPPROTO_UDP; in test_rx_chksum()
1065 test_proto = IPPROTO_UDP; in test_rx_chksum_udp_frag()
1123 test_proto = IPPROTO_UDP; in test_rx_chksum_udp_frag_bad()
/Zephyr-Core-3.6.0/tests/net/socket/misc/src/
Dmain.c308 sock_c = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); in test_ipv4_so_bindtodevice()
310 sock_s = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); in test_ipv4_so_bindtodevice()
336 sock_c = socket(AF_INET6, SOCK_DGRAM, IPPROTO_UDP); in test_ipv6_so_bindtodevice()
338 sock_s = socket(AF_INET6, SOCK_DGRAM, IPPROTO_UDP); in test_ipv6_so_bindtodevice()
378 sock_c = socket(family, SOCK_DGRAM, IPPROTO_UDP); in test_getpeername()
535 sock_c = socket(family, SOCK_DGRAM, IPPROTO_UDP); in test_getsockname_udp()
537 sock_s = socket(family, SOCK_DGRAM, IPPROTO_UDP); in test_getsockname_udp()
900 sock_u = socket(AF_INET6, SOCK_DGRAM, IPPROTO_UDP); in ZTEST()
/Zephyr-Core-3.6.0/subsys/net/lib/sockets/
Dgetaddrinfo.c101 ai->ai_protocol = (socktype == SOCK_DGRAM) ? IPPROTO_UDP : IPPROTO_TCP; in dns_resolve_cb()
175 res->ai_protocol = IPPROTO_UDP; in getaddrinfo_null_host()
339 protocol = IPPROTO_UDP; in try_resolve_literal_addr()
/Zephyr-Core-3.6.0/subsys/net/ip/
Dipv4.c132 next_header_proto == IPPROTO_UDP) { in net_ipv4_finalize()
342 !(hdr->proto == IPPROTO_UDP && in net_ipv4_input()
398 case IPPROTO_UDP: in net_ipv4_input()
Dnet_private.h264 uint16_t chksum = net_calc_chksum(pkt, IPPROTO_UDP); in net_calc_chksum_udp()
271 return net_calc_chksum(pkt, IPPROTO_UDP); in net_calc_verify_chksum_udp()
Dtp.c361 ret = net_ipv4_finalize(pkt, IPPROTO_UDP); in udp_finalize_pkt()
365 ret = net_ipv6_finalize(pkt, IPPROTO_UDP); in udp_finalize_pkt()
418 af, IPPROTO_UDP, K_NO_WAIT); in tp_output_pkt_alloc()
Dudp.c138 return net_conn_register(IPPROTO_UDP, family, remote_addr, local_addr, in net_udp_register()
/Zephyr-Core-3.6.0/samples/net/cellular_modem/src/
Dmain.c141 socket_fd = zsock_socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); in sample_echo_packet()
219 socket_fd = zsock_socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); in sample_transmit_packets()
/Zephyr-Core-3.6.0/subsys/net/lib/shell/
Dudp.c95 ret = net_context_get(addr.sa_family, SOCK_DGRAM, IPPROTO_UDP, in cmd_net_udp_bind()
222 ret = net_context_get(addr.sa_family, SOCK_DGRAM, IPPROTO_UDP, in cmd_net_udp_send()
Dsockets.c75 obj->socket_proto == IPPROTO_UDP ? 'U' : in walk_sockets()
/Zephyr-Core-3.6.0/subsys/net/lib/capture/
Dcapture.c341 ret = net_context_get(params.family, SOCK_DGRAM, IPPROTO_UDP, in net_capture_setup()
606 ret = net_pkt_alloc_buffer(ip, len, IPPROTO_UDP, PKT_ALLOC_TIME); in capture_send()
651 net_ipv4_finalize(pkt, IPPROTO_UDP); in capture_send()
656 net_ipv6_finalize(pkt, IPPROTO_UDP); in capture_send()
/Zephyr-Core-3.6.0/drivers/modem/
Dublox-sara-r4.c318 if (!sock->is_connected && sock->ip_proto != IPPROTO_UDP) { in send_socket_data()
323 if (!dst_addr && sock->ip_proto == IPPROTO_UDP) { in send_socket_data()
343 if (sock->ip_proto == IPPROTO_UDP) { in send_socket_data()
401 if (sock->ip_proto != IPPROTO_UDP) { in send_socket_data()
1401 if (sock->ip_proto == IPPROTO_UDP) { in create_socket()
1501 if (sock->is_connected || sock->ip_proto == IPPROTO_UDP) { in offload_close()
1574 if (sock->ip_proto == IPPROTO_UDP) { in offload_connect()
1633 if (!sock->is_connected && sock->ip_proto != IPPROTO_UDP) { in offload_recvfrom()
1652 sock->ip_proto == IPPROTO_UDP ? "RF" : "RD", sock->id, in offload_recvfrom()
1953 proto != IPPROTO_UDP && in offload_is_supported()
/Zephyr-Core-3.6.0/subsys/net/lib/zperf/
Dzperf_common.c118 int type = (proto == IPPROTO_UDP) ? SOCK_DGRAM : SOCK_STREAM; in zperf_prepare_upload_sock()
Dzperf_udp_receiver.c325 IPPROTO_UDP); in zperf_udp_receiver_init()
374 IPPROTO_UDP); in zperf_udp_receiver_init()
/Zephyr-Core-3.6.0/tests/net/pm/src/
Dmain.c133 sock = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); in ZTEST()
/Zephyr-Core-3.6.0/subsys/net/lib/tftp/
Dtftp_client.c261 sock = socket(client->server.sa_family, SOCK_DGRAM, IPPROTO_UDP); in tftp_get()
386 sock = socket(client->server.sa_family, SOCK_DGRAM, IPPROTO_UDP); in tftp_put()

1234