Home
last modified time | relevance | path

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

12345

/third_party/musl/src/network/
Dlookup_serv.c33 proto = IPPROTO_UDP; in __lookup_serv()
34 case IPPROTO_UDP: in __lookup_serv()
55 if (proto != IPPROTO_UDP) { in __lookup_serv()
63 buf[cnt++].proto = IPPROTO_UDP; in __lookup_serv()
103 buf[cnt++].proto = IPPROTO_UDP; in __lookup_serv()
106 if (proto == IPPROTO_UDP) continue; in __lookup_serv()
Dgetservbyname_r.c34 else if (!strcmp(prots, "udp")) proto = IPPROTO_UDP; in getservbyname_r()
/third_party/ltp/testcases/kernel/syscalls/bind/
Dbind05.c48 {SOCK_DGRAM, IPPROTO_UDP, (struct sockaddr *)&ipv4_addr,
54 {SOCK_DGRAM, IPPROTO_UDP, (struct sockaddr *)&ipv4_any_addr,
62 {SOCK_DGRAM, IPPROTO_UDP, (struct sockaddr *)&ipv6_addr,
68 {SOCK_DGRAM, IPPROTO_UDP, (struct sockaddr *)&ipv6_any_addr,
/third_party/libnl/include/linux-private/linux/
Din.h43 IPPROTO_UDP = 17, /* User Datagram Protocol */ enumerator
44 #define IPPROTO_UDP IPPROTO_UDP macro
/third_party/musl/libc-test/src/functional/
Dsocket.c20 TESTE((s=socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP))>=0); in main()
27 TESTE((c=socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP))>=0); in main()
/third_party/python/Modules/
Dgetaddrinfo.c301 case IPPROTO_UDP: in getaddrinfo()
315 if (pai->ai_protocol != IPPROTO_UDP && in getaddrinfo()
318 pai->ai_protocol = IPPROTO_UDP; in getaddrinfo()
340 pai->ai_protocol = IPPROTO_UDP; in getaddrinfo()
368 pai->ai_protocol = IPPROTO_UDP; in getaddrinfo()
/third_party/toybox/toys/pending/
Dtraceroute.c273 && hip->ip_p == IPPROTO_UDP in do_trace()
400 if (hdr_next == IPPROTO_UDP) { in do_trace()
531 TT.snd_sock = xsocket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); in traceroute_main()
537 SOCK_DGRAM : SOCK_RAW), ((toys.optflags & FLAG_U) ? IPPROTO_UDP : in traceroute_main()
557 } else TT.snd_sock = xsocket(AF_INET6, SOCK_DGRAM, IPPROTO_UDP); in traceroute_main()
601 resolve_addr(toys.optargs[0], AF_INET6, SOCK_DGRAM, IPPROTO_UDP, &dest); in traceroute_main()
/third_party/ltp/testcases/kernel/syscalls/getsockopt/
Dgetsockopt01.c110 PF_INET, SOCK_STREAM, 0, IPPROTO_UDP, SO_OOBINLINE, &optval,
114 PF_INET, SOCK_STREAM, 0, IPPROTO_UDP, SO_OOBINLINE, &optval,
/third_party/musl/libc-test/src/functionalext/fortify/
Dsocket_ext.c128 TEST((recvFd = socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP)) >= 0); in sendto_and_recvfrom_0010()
135 TEST((sendFd = socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP)) >= 0); in sendto_and_recvfrom_0010()
/third_party/ltp/testcases/network/stress/ns-tools/
Dns-common.c447 hints.ai_protocol = IPPROTO_UDP; in get_maddrinfo()
545 hints.ai_protocol = IPPROTO_UDP; in create_source_filter()
552 hints.ai_protocol = IPPROTO_UDP; in create_source_filter()
Dns-mcast_join.c312 sock_array[idx] = socket(family, SOCK_DGRAM, IPPROTO_UDP); in join_group()
442 sd = socket(family, SOCK_DGRAM, IPPROTO_UDP); in join_leave_group()
/third_party/toybox/toys/net/
Dsntp.c84 ai = xgetaddrinfo(*toys.optargs, TT.p, AF_UNSPEC, SOCK_DGRAM, IPPROTO_UDP, in sntp_main()
100 } else fd = xsocket(ai->ai_family, SOCK_DGRAM, IPPROTO_UDP); in sntp_main()
/third_party/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_svcudp_create/
Drpc_svcudp_create.c51 sock = socket(AF_UNIX, SOCK_SEQPACKET, IPPROTO_UDP); in main()
Drpc_svcudp_create_stress.c59 sock = socket(AF_UNIX, SOCK_SEQPACKET, IPPROTO_UDP); in main()
/third_party/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_svcudp_bufcreate/
Drpc_svcudp_bufcreate.c55 sock = socket(AF_UNIX, SOCK_SEQPACKET, IPPROTO_UDP); in main()
/third_party/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_addrmanagmt_pmap_set/
Drpc_pmap_set.c60 test_status = !pmap_set(progNum, VERSNUM, IPPROTO_UDP, port); in main()
/third_party/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_addrmanagmt_pmap_unset/
Drpc_pmap_unset.c59 pmap_set(progNum, VERSNUM, IPPROTO_UDP, port); in main()
/third_party/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_addrmanagmt_pmap_getport/
Drpc_pmap_getport.c63 getPort = pmap_getport(&sin, progNum, VERSNUM, IPPROTO_UDP); in main()
/third_party/boost/boost/asio/ip/
Dudp.hpp70 return BOOST_ASIO_OS_DEF(IPPROTO_UDP); in protocol()
/third_party/boost/libs/asio/include/boost/asio/ip/
Dudp.hpp70 return BOOST_ASIO_OS_DEF(IPPROTO_UDP); in protocol()
/third_party/grpc/third_party/address_sorting/
Daddress_sorting_windows.c58 IPPROTO_UDP); in windows_source_addr_factory_get_source_addr()
/third_party/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_addrmanagmt_pmap_rmtcall/
Drpc_pmap_rmtcall.c69 port = pmap_getport(&sin, progNum, VERSNUM, IPPROTO_UDP); in main()
Drpc_pmap_rmtcall_stress.c73 port = pmap_getport(&sin, progNum, VERSNUM, IPPROTO_UDP); in main()
/third_party/musl/porting/liteos_a/user/src/network/
Dgetservbyname_r.c34 else if (!strcmp(prots, "udp")) proto = IPPROTO_UDP; in getservbyname_r()
/third_party/mbedtls/library/
Dnet_sockets.c187 hints.ai_protocol = proto == MBEDTLS_NET_PROTO_UDP ? IPPROTO_UDP : IPPROTO_TCP; in mbedtls_net_connect()
234 hints.ai_protocol = proto == MBEDTLS_NET_PROTO_UDP ? IPPROTO_UDP : IPPROTO_TCP; in mbedtls_net_bind()
415 SOCK_DGRAM, IPPROTO_UDP ) ) < 0 || in mbedtls_net_accept()

12345