Home
last modified time | relevance | path

Searched refs:SOCK_DGRAM (Results 1 – 25 of 281) sorted by relevance

12345678910>>...12

/third_party/ltp/testcases/kernel/syscalls/bind/
Dbind05.c40 {SOCK_DGRAM, 0, (struct sockaddr *)&unix_addr, sizeof(unix_addr),
42 {SOCK_DGRAM, 0, (struct sockaddr *)&abstract_addr,
46 {SOCK_DGRAM, 0, (struct sockaddr *)&ipv4_addr, sizeof(ipv4_addr),
48 {SOCK_DGRAM, IPPROTO_UDP, (struct sockaddr *)&ipv4_addr,
50 {SOCK_DGRAM, IPPROTO_UDPLITE, (struct sockaddr *)&ipv4_addr,
52 {SOCK_DGRAM, 0, (struct sockaddr *)&ipv4_any_addr,
54 {SOCK_DGRAM, IPPROTO_UDP, (struct sockaddr *)&ipv4_any_addr,
56 {SOCK_DGRAM, IPPROTO_UDPLITE, (struct sockaddr *)&ipv4_any_addr,
60 {SOCK_DGRAM, 0, (struct sockaddr *)&ipv6_addr, sizeof(ipv6_addr),
62 {SOCK_DGRAM, IPPROTO_UDP, (struct sockaddr *)&ipv6_addr,
[all …]
Dbind06.c45 fd = SAFE_SOCKET(AF_PACKET, SOCK_DGRAM, PF_PACKET); in setup()
88 fd = SAFE_SOCKET(AF_PACKET, SOCK_DGRAM, PF_PACKET); in run()
/third_party/ltp/testcases/kernel/syscalls/sockioctl/
Dsockioctl01.c98 PF_INET, SOCK_DGRAM, 0, SIOCATMARK, &optval,
102 PF_INET, SOCK_DGRAM, 0, SIOCGIFCONF, &ifc,
106 PF_INET, SOCK_DGRAM, 0, SIOCGIFFLAGS, &ifr,
110 PF_INET, SOCK_DGRAM, 0, SIOCGIFFLAGS, 0,
114 PF_INET, SOCK_DGRAM, 0, SIOCSIFFLAGS, 0,
/third_party/ltp/testcases/kernel/syscalls/socket/
Dsocket01.c33 {PF_UNIX, SOCK_DGRAM, 0, 0, 0, "UNIX domain dgram"},
35 {PF_INET, SOCK_DGRAM, 17, 0, 0, "UDP socket"},
37 {PF_INET, SOCK_DGRAM, 6, -1, EPROTONOSUPPORT, "TCP dgram"},
/third_party/ltp/testcases/kernel/syscalls/socketpair/
Dsocketpair01.c35 {PF_UNIX, SOCK_DGRAM, 0, fds, 0, 0, "UNIX domain dgram"},
41 {PF_INET, SOCK_DGRAM, 17, fds, -1, EOPNOTSUPP, "UDP socket"},
42 {PF_INET, SOCK_DGRAM, 6, fds, -1, EPROTONOSUPPORT, "TCP dgram"},
/third_party/ltp/testcases/kernel/syscalls/sendmsg/
Dsendmsg01.c140 .type = SOCK_DGRAM,
191 .type = SOCK_DGRAM,
207 .type = SOCK_DGRAM,
223 .type = SOCK_DGRAM,
291 .type = SOCK_DGRAM,
308 .type = SOCK_DGRAM,
325 .type = SOCK_DGRAM,
342 .type = SOCK_DGRAM,
448 ufd = socket(PF_UNIX, SOCK_DGRAM, 0); in start_server()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/drivers/
Ddriver_wired_common.c38 s = socket(PF_INET, SOCK_DGRAM, 0); in driver_wired_get_ifflags()
63 s = socket(PF_INET, SOCK_DGRAM, 0); in driver_wired_set_ifflags()
92 s = socket(PF_INET, SOCK_DGRAM, 0); in driver_wired_multi()
196 s = socket(PF_INET, SOCK_DGRAM, 0); in driver_wired_get_ifstatus()
228 common->pf_sock = socket(PF_PACKET, SOCK_DGRAM, 0); in driver_wired_init_common()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/drivers/
Ddriver_wired_common.c38 s = socket(PF_INET, SOCK_DGRAM, 0); in driver_wired_get_ifflags()
63 s = socket(PF_INET, SOCK_DGRAM, 0); in driver_wired_set_ifflags()
92 s = socket(PF_INET, SOCK_DGRAM, 0); in driver_wired_multi()
196 s = socket(PF_INET, SOCK_DGRAM, 0); in driver_wired_get_ifstatus()
228 common->pf_sock = socket(PF_PACKET, SOCK_DGRAM, 0); in driver_wired_init_common()
/third_party/musl/src/network/
Dlookup_serv.c30 case SOCK_DGRAM: in __lookup_serv()
62 buf[cnt].socktype = SOCK_DGRAM; in __lookup_serv()
102 buf[cnt].socktype = SOCK_DGRAM; in __lookup_serv()
/third_party/ltp/testcases/kernel/syscalls/recvmmsg/
Drecvmmsg01.c99 unsigned int port = TST_GET_UNUSED_PORT(AF_INET, SOCK_DGRAM); in setup()
104 send_sockfd = SAFE_SOCKET(AF_INET, SOCK_DGRAM, 0); in setup()
105 receive_sockfd = SAFE_SOCKET(AF_INET, SOCK_DGRAM, 0); in setup()
/third_party/ltp/testcases/kernel/syscalls/socketcall/
Dsocketcall01.c28 {SYS_SOCKET, {PF_UNIX, SOCK_DGRAM, 0}, "unix domain dgram"},
30 {SYS_SOCKET, {PF_INET, SOCK_DGRAM, 17}, "UDP dgram"}
/third_party/ltp/testcases/kernel/syscalls/sendmmsg/
Dsendmmsg01.c65 unsigned int port = TST_GET_UNUSED_PORT(AF_INET, SOCK_DGRAM); in setup()
67 send_sockfd = SAFE_SOCKET(AF_INET, SOCK_DGRAM, 0); in setup()
68 receive_sockfd = SAFE_SOCKET(AF_INET, SOCK_DGRAM, 0); in setup()
/third_party/ltp/testcases/kernel/syscalls/sendto/
Dsendto01.c112 .type = SOCK_DGRAM,
155 .type = SOCK_DGRAM,
171 .type = SOCK_DGRAM,
186 .type = SOCK_DGRAM,
214 .type = SOCK_DGRAM,
/third_party/ltp/testcases/kernel/syscalls/send/
Dsend02.c64 {AF_INET, SOCK_DGRAM, 0, do_send, 1, 0, "UDP send"},
65 {AF_INET, SOCK_DGRAM, 0, do_sendto, 0, 0, "UDP sendto"},
66 {AF_INET, SOCK_DGRAM, 0, do_sendmsg, 0, 0, "UDP sendmsg"}
/third_party/ltp/testcases/kernel/syscalls/setsockopt/
Dsetsockopt05.c52 dst_sock = SAFE_SOCKET(AF_INET, SOCK_DGRAM, 0); in setup()
78 sock = SAFE_SOCKET(AF_INET, SOCK_DGRAM, 0); in run()
/third_party/libwebsockets/lib/plat/freertos/
Dfreertos-pipe.c44 fd[0] = socket(AF_INET, SOCK_DGRAM, 0); in lws_plat_pipe_create()
48 fd[1] = socket(AF_INET, SOCK_DGRAM, 0); in lws_plat_pipe_create()
/third_party/python/Tools/demo/
Dmcast.py36 s = socket.socket(addrinfo[0], socket.SOCK_DGRAM)
56 s = socket.socket(addrinfo[0], socket.SOCK_DGRAM)
/third_party/libwebsockets/lib/plat/windows/
Dwindows-pipe.c52 fd[0] = socket(AF_INET, SOCK_DGRAM, 0); in lws_plat_pipe_create()
56 fd[1] = socket(AF_INET, SOCK_DGRAM, 0); in lws_plat_pipe_create()
/third_party/ltp/testcases/kernel/syscalls/recvmsg/
Drecvmsg02.c57 sdr = SAFE_SOCKET(PF_INET6, SOCK_DGRAM | SOCK_CLOEXEC, IPPROTO_IP); in verify_recvmsg()
61 sdw = SAFE_SOCKET(PF_INET6, SOCK_DGRAM|SOCK_CLOEXEC, IPPROTO_IP); in verify_recvmsg()
/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/boost/libs/asio/test/local/
Ddatagram_protocol.cpp68 int native_socket1 = ::socket(AF_UNIX, SOCK_DGRAM, 0); in test()
74 int native_socket2 = ::socket(AF_UNIX, SOCK_DGRAM, 0); in test()
90 int native_socket3 = ::socket(AF_UNIX, SOCK_DGRAM, 0); in test()
92 int native_socket4 = ::socket(AF_UNIX, SOCK_DGRAM, 0); in test()
/third_party/ltp/testcases/kernel/syscalls/io_uring/
Dio_uring02.c80 sendsock = SAFE_SOCKET(AF_UNIX, SOCK_DGRAM, 0); in setup()
81 recvsock = SAFE_SOCKET(AF_UNIX, SOCK_DGRAM, 0); in setup()
95 SAFE_SOCKETPAIR(AF_UNIX, SOCK_DGRAM, 0, sockpair); in drain_fallback()
/third_party/ltp/testcases/network/can/cve/
Dcan_bcm01.c57 sock1 = SAFE_SOCKET(AF_CAN, SOCK_DGRAM, CAN_BCM); in setup()
114 sock2 = SAFE_SOCKET(AF_CAN, SOCK_DGRAM, CAN_BCM); in run()
/third_party/curl/lib/
Dhostip6.c78 curl_socket_t s = socket(PF_INET6, SOCK_DGRAM, 0); in Curl_ipv6works()
154 SOCK_STREAM : SOCK_DGRAM; in Curl_getaddrinfo()
/third_party/musl/libc-test/src/functionalext/supplement/network/
D__recvmmsg_time64.c38 sockfd = socket(AF_INET, SOCK_DGRAM, 0); in sendsss()
86 sockfd = socket(AF_INET, SOCK_DGRAM, 0); in recvsss()

12345678910>>...12