Home
last modified time | relevance | path

Searched refs:SOCK_DGRAM (Results 1 - 25 of 333) sorted by relevance

12345678910>>...14

/third_party/ltp/testcases/kernel/syscalls/bind/
H A 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_UD
[all...]
H A Dbind06.c35 fd = SAFE_SOCKET(AF_PACKET, SOCK_DGRAM, PF_PACKET); in setup()
78 fd = SAFE_SOCKET(AF_PACKET, SOCK_DGRAM, PF_PACKET); in run()
/third_party/ltp/testcases/kernel/syscalls/sockioctl/
H A Dsockioctl01.c69 int type; /* SOCK_STREAM, SOCK_DGRAM ... */
98 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/
H A 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/
H A 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/
H A Dsendmsg01.c87 int type; /* SOCK_STREAM, SOCK_DGRAM ... */
140 .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, in start_server()
[all...]
/third_party/musl/src/network/
H A Dif_indextoname.c15 if ((fd = socket(AF_INET, SOCK_DGRAM|SOCK_CLOEXEC, 0)) < 0) return 0; in if_indextoname()
17 if ((fd = socket(AF_UNIX, SOCK_DGRAM|SOCK_CLOEXEC, 0)) < 0) return 0; in if_indextoname()
H A Dif_nametoindex.c13 if ((fd = socket(AF_INET, SOCK_DGRAM|SOCK_CLOEXEC, 0)) < 0) return 0; in if_nametoindex()
15 if ((fd = socket(AF_UNIX, SOCK_DGRAM|SOCK_CLOEXEC, 0)) < 0) return 0; in if_nametoindex()
H A Dlookup_serv.c34 case SOCK_DGRAM: in __lookup_serv()
84 buf[cnt].socktype = SOCK_DGRAM; in __lookup_serv()
121 buf[cnt].socktype = SOCK_DGRAM; in __lookup_serv()
/third_party/musl/porting/linux/user/src/network/
H A Dlookup_serv.c31 case SOCK_DGRAM: in __lookup_serv()
63 buf[cnt].socktype = SOCK_DGRAM; in __lookup_serv()
95 buf[cnt].socktype = SOCK_DGRAM; in __lookup_serv()
/third_party/ltp/testcases/kernel/syscalls/sendmmsg/
H A 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/recvmmsg/
H A 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/sendto/
H A Dsendto01.c56 int type; /* SOCK_STREAM, SOCK_DGRAM ... */
112 .type = SOCK_DGRAM,
155 .type = SOCK_DGRAM,
171 .type = SOCK_DGRAM,
186 .type = SOCK_DGRAM,
214 .type = SOCK_DGRAM,
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/drivers/
H A 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_standard/src/drivers/
H A 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/ltp/testcases/kernel/syscalls/socketcall/
H A 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/send/
H A 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/libwebsockets/lib/plat/freertos/
H A 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/libwebsockets/lib/plat/windows/
H A 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/
H A 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/ltp/testcases/kernel/syscalls/setsockopt/
H A Dsetsockopt05.c42 dst_sock = SAFE_SOCKET(AF_INET, SOCK_DGRAM, 0); in setup()
68 sock = SAFE_SOCKET(AF_INET, SOCK_DGRAM, 0); in run()
/third_party/python/Tools/demo/
H A Dmcast.py36 s = socket.socket(addrinfo[0], socket.SOCK_DGRAM)
56 s = socket.socket(addrinfo[0], socket.SOCK_DGRAM)
/third_party/ltp/testcases/kernel/syscalls/io_uring/
H A 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/lwip/src/core/distributed_net/
H A Ddistributed_net_core.c117 if (type != SOCK_DGRAM) { in distributed_net_sendto()
159 if (type != SOCK_DGRAM) { in distributed_net_sendmsg()
204 if (type != SOCK_DGRAM) { in distributed_net_recvfrom()
/third_party/musl/Benchmark/musl/
H A Dsocket_test.cpp339 int sfd = ConnectTo("127.0.0.1", "80", SOCK_DGRAM, nullptr); in Bm_function_getpeername_client_local()
357 int sfd = ConnectTo("www.baidu.com", "80", SOCK_DGRAM, nullptr); in Bm_function_getpeername_client_external()
434 int sfd = ConnectTo("127.0.0.1", "80", SOCK_DGRAM, nullptr); in Bm_function_getsockname_client_local()
452 int sfd = ConnectTo("www.baidu.com", "80", SOCK_DGRAM, nullptr); in Bm_function_getsockname_client_external()
492 int sfd = ConnectTo("127.0.0.1", "80", SOCK_DGRAM, &addr); in Bm_function_connect_local_dgram()

Completed in 8 milliseconds

12345678910>>...14