Home
last modified time | relevance | path

Searched refs:PF_INET (Results 1 – 25 of 136) sorted by relevance

123456

/third_party/ltp/testcases/kernel/syscalls/accept/
Daccept01.c44 PF_INET, SOCK_STREAM, 0, &invalid_socketfd,
49 PF_INET, SOCK_STREAM, 0, &devnull_fd, (struct sockaddr *)&fsin1,
53 PF_INET, SOCK_STREAM, 0, &socket_fd, (struct sockaddr *)3,
57 PF_INET, SOCK_STREAM, 0, &socket_fd, (struct sockaddr *)&fsin1,
61 PF_INET, SOCK_STREAM, 0, &socket_fd, (struct sockaddr *)&fsin1,
65 PF_INET, SOCK_STREAM, 0, &udp_fd, (struct sockaddr *)&fsin1,
78 socket_fd = SAFE_SOCKET(PF_INET, SOCK_STREAM, 0); in test_setup()
85 udp_fd = SAFE_SOCKET(PF_INET, SOCK_DGRAM, 0); in test_setup()
/third_party/ltp/testcases/kernel/syscalls/socket/
Dsocket01.c32 {PF_INET, 75, 0, -1, EINVAL, "invalid type"},
34 {PF_INET, SOCK_RAW, 0, -1, EPROTONOSUPPORT, "raw open as non-root"},
35 {PF_INET, SOCK_DGRAM, 17, 0, 0, "UDP socket"},
36 {PF_INET, SOCK_STREAM, 17, -1, EPROTONOSUPPORT, "UDP stream"},
37 {PF_INET, SOCK_DGRAM, 6, -1, EPROTONOSUPPORT, "TCP dgram"},
38 {PF_INET, SOCK_STREAM, 6, 0, 0, "TCP socket"},
39 {PF_INET, SOCK_STREAM, 1, -1, EPROTONOSUPPORT, "ICMP stream"}
/third_party/ltp/testcases/kernel/syscalls/getsockopt/
Dgetsockopt01.c86 PF_INET, SOCK_STREAM, 0, SOL_SOCKET, SO_OOBINLINE, &optval,
90 PF_INET, SOCK_STREAM, 0, SOL_SOCKET, SO_OOBINLINE, &optval,
96 PF_INET, SOCK_STREAM, 0, SOL_SOCKET, SO_OOBINLINE, 0, &optlen,
100 PF_INET, SOCK_STREAM, 0, SOL_SOCKET, SO_OOBINLINE, &optval, 0,
106 PF_INET, SOCK_STREAM, 0, 500, SO_OOBINLINE, &optval, &optlen,
110 PF_INET, SOCK_STREAM, 0, IPPROTO_UDP, SO_OOBINLINE, &optval,
114 PF_INET, SOCK_STREAM, 0, IPPROTO_UDP, SO_OOBINLINE, &optval,
119 PF_INET, SOCK_STREAM, 0, IPPROTO_IP, -1, &optval, &optlen,
123 PF_INET, SOCK_STREAM, 0, IPPROTO_TCP, -1, &optval, &optlen,
/third_party/ltp/testcases/kernel/syscalls/socketpair/
Dsocketpair01.c34 {PF_INET, 75, 0, fds, -1, EINVAL, "invalid type"},
36 {PF_INET, SOCK_RAW, 0, fds, -1, EPROTONOSUPPORT, "raw open as non-root"},
41 {PF_INET, SOCK_DGRAM, 17, fds, -1, EOPNOTSUPP, "UDP socket"},
42 {PF_INET, SOCK_DGRAM, 6, fds, -1, EPROTONOSUPPORT, "TCP dgram"},
43 {PF_INET, SOCK_STREAM, 6, fds, -1, EOPNOTSUPP, "TCP socket"},
44 {PF_INET, SOCK_STREAM, 1, fds, -1, EPROTONOSUPPORT, "ICMP stream"}
/third_party/ltp/testcases/kernel/syscalls/setsockopt/
Dsetsockopt01.c39 {PF_INET, SOCK_STREAM, 0, SOL_SOCKET, SO_OOBINLINE, NULL,
41 {PF_INET, SOCK_STREAM, 0, SOL_SOCKET, SO_OOBINLINE, &optval, 0,
43 {PF_INET, SOCK_STREAM, 0, 500, SO_OOBINLINE, &optval, sizeof(optval),
45 {PF_INET, SOCK_STREAM, 0, IPPROTO_UDP, SO_OOBINLINE, &optval,
47 {PF_INET, SOCK_STREAM, 0, IPPROTO_IP, -1, &optval, sizeof(optval),
49 {PF_INET, SOCK_STREAM, 0, IPPROTO_TCP, -1, &optval, sizeof(optval),
/third_party/ltp/testcases/kernel/syscalls/sockioctl/
Dsockioctl01.c82 PF_INET, SOCK_STREAM, 0, SIOCATMARK, &optval,
86 PF_INET, SOCK_STREAM, 0, SIOCATMARK, &optval,
92 PF_INET, SOCK_STREAM, 0, SIOCATMARK, 0,
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/sendto/
Dsendto01.c81 {.domain = PF_INET,
111 {.domain = PF_INET,
126 {.domain = PF_INET,
140 {.domain = PF_INET,
154 {.domain = PF_INET,
170 {.domain = PF_INET,
185 {.domain = PF_INET,
199 {.domain = PF_INET,
213 {.domain = PF_INET,
243 sfd = socket(PF_INET, SOCK_STREAM, 0); in start_server()
/third_party/ltp/testcases/kernel/syscalls/getsockname/
Dgetsockname01.c80 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)&fsin1,
83 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)&fsin1,
89 PF_INET, SOCK_STREAM, 0, NULL,
93 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)&fsin1,
97 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)&fsin1,
/third_party/ltp/testcases/kernel/syscalls/connect/
Dconnect01.c83 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)&sin1,
89 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)-1,
94 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)&sin1,
100 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)&sin1,
104 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)&sin2,
108 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)&sin4,
249 sfd = socket(PF_INET, SOCK_STREAM, 0); in start_server()
/third_party/ltp/testcases/kernel/syscalls/recvfrom/
Drecvfrom01.c94 PF_INET, SOCK_STREAM, 0, buf, sizeof(buf), 0,
103 PF_INET, SOCK_STREAM, 0, (void *)buf, sizeof(buf), 0,
108 PF_INET, SOCK_STREAM, 0, (void *)buf, sizeof(buf), 0,
113 PF_INET, SOCK_STREAM, 0, (void *)-1, sizeof(buf), 0,
118 PF_INET, SOCK_STREAM, 0, (void *)buf, sizeof(buf), MSG_OOB,
123 PF_INET, SOCK_STREAM, 0, (void *)buf, sizeof(buf), MSG_ERRQUEUE,
257 sfd = socket(PF_INET, SOCK_STREAM, 0); in start_server()
/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()
38 TESTE((s=socket(PF_INET, SOCK_STREAM|SOCK_CLOEXEC, IPPROTO_TCP))>=0); in main()
46 TESTE((c=socket(PF_INET, SOCK_STREAM|SOCK_NONBLOCK, IPPROTO_TCP))>=0); in main()
/third_party/ltp/testcases/kernel/syscalls/recvmsg/
Drecvmsg01.c111 PF_INET, SOCK_STREAM, 0, iov, 1, buf, sizeof(buf), &msgdat, 0,
123 PF_INET, SOCK_STREAM, 0, iov, 1, (void *)buf, sizeof(buf),
129 PF_INET, SOCK_STREAM, 0, iov, 1, (void *)buf, sizeof(buf),
134 PF_INET, SOCK_STREAM, 0, iov, 1, (void *)-1, sizeof(buf),
140 PF_INET, SOCK_STREAM, 0, 0, 1, (void *)buf, sizeof(buf),
146 PF_INET, SOCK_STREAM, 0, iov, -1, (void *)buf, sizeof(buf),
158 PF_INET, SOCK_STREAM, 0, iov, 1, (void *)buf, sizeof(buf),
165 PF_INET, SOCK_STREAM, 0, iov, 1, (void *)buf, sizeof(buf),
301 if (tdat[testno].domain == PF_INET) { in setup1()
373 sfd = socket(PF_INET, SOCK_STREAM, 0); in start_server()
/third_party/ltp/testcases/kernel/syscalls/sendmsg/
Dsendmsg01.c105 {.domain = PF_INET,
139 {.domain = PF_INET,
156 {.domain = PF_INET,
173 {.domain = PF_INET,
190 {.domain = PF_INET,
206 {.domain = PF_INET,
222 {.domain = PF_INET,
239 {.domain = PF_INET,
256 {.domain = PF_INET,
273 {.domain = PF_INET,
[all …]
/third_party/ltp/testcases/kernel/syscalls/send/
Dsend01.c79 {.domain = PF_INET,
105 {.domain = PF_INET,
118 {.domain = PF_INET,
130 {.domain = PF_INET,
144 {.domain = PF_INET,
173 sfd = socket(PF_INET, SOCK_STREAM, 0); in start_server()
/third_party/ltp/testcases/kernel/syscalls/recv/
Drecv01.c84 PF_INET, SOCK_STREAM, 0, buf, sizeof(buf), 0,
93 PF_INET, SOCK_STREAM, 0, (void *)-1, sizeof(buf), 0,
98 PF_INET, SOCK_STREAM, 0, buf, sizeof(buf), MSG_OOB,
102 PF_INET, SOCK_STREAM, 0, buf, sizeof(buf), MSG_ERRQUEUE,
228 sfd = socket(PF_INET, SOCK_STREAM, 0); in start_server()
/third_party/pulseaudio/src/pulsecore/
Dpipe.c84 listener = socket(PF_INET, SOCK_STREAM, 0); in pipe()
88 filedes[0] = socket(PF_INET, SOCK_STREAM, 0); in pipe()
92 filedes[1] = socket(PF_INET, SOCK_STREAM, 0); in pipe()
/third_party/ltp/testcases/kernel/syscalls/socketcall/
Dsocketcall01.c27 {SYS_SOCKET, {PF_INET, SOCK_STREAM, 0}, "TCP stream"},
30 {SYS_SOCKET, {PF_INET, SOCK_DGRAM, 17}, "UDP dgram"}
/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()
/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()
/third_party/ltp/testcases/kernel/syscalls/bind/
Dbind01.c57 inet_socket = SAFE_SOCKET(PF_INET, SOCK_STREAM, 0); in verify_bind()
81 inet_socket = SAFE_SOCKET(PF_INET, SOCK_STREAM, 0); in test_setup()
/third_party/ltp/utils/sctp/func_tests/
Dtest_1_to_1_initmsg_connect.c52 sk1 = SAFE_SOCKET(PF_INET, SOCK_STREAM, IPPROTO_SCTP); in test_sctp()
53 sk3 = SAFE_SOCKET(PF_INET, SOCK_STREAM, IPPROTO_SCTP); in test_sctp()
Dtest_1_to_1_threads.c156 server_sk = test_socket(PF_INET, SOCK_STREAM, IPPROTO_SCTP); in main()
157 client_sk = test_socket(PF_INET, SOCK_STREAM, IPPROTO_SCTP); in main()
/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/tcp_cmds/include/
Dnetdefs.h56 #define PFI PF_INET
/third_party/ltp/testcases/network/stress/ns-tools/
Dns-udpsender.c175 udp_p->family = PF_INET; /* IPv4 */ in parse_options()
332 case PF_INET: /* IPv4 */ in create_udp_datagram()

123456