Home
last modified time | relevance | path

Searched refs:inmessage (Results 1 – 19 of 19) sorted by relevance

/external/ltp/utils/sctp/func_tests/
Dtest_recvmsg.c67 struct msghdr inmessage, outmessage; in main() local
114 memset(&inmessage, 0, sizeof(inmessage)); in main()
117 inmessage.msg_iov = &iov; in main()
118 inmessage.msg_iovlen = 1; in main()
119 inmessage.msg_control = incmsg; in main()
122 inmessage.msg_controllen = sizeof(incmsg); in main()
123 error = test_recvmsg(clt_sk, &inmessage, 0); in main()
124 test_check_msg_notification(&inmessage, error, in main()
129 inmessage.msg_controllen = sizeof(incmsg); in main()
130 error = test_recvmsg(svr_sk, &inmessage, MSG_WAITALL); in main()
[all …]
Dtest_fragments.c81 struct msghdr inmessage; in main() local
169 memset(&inmessage, 0, sizeof(inmessage)); in main()
172 inmessage.msg_iov = &iov; in main()
173 inmessage.msg_iovlen = 1; in main()
174 inmessage.msg_control = incmsg; in main()
177 inmessage.msg_controllen = sizeof(incmsg); in main()
178 error = test_recvmsg(sk2, &inmessage, MSG_WAITALL); in main()
179 test_check_msg_notification(&inmessage, error, in main()
187 inmessage.msg_controllen = sizeof(incmsg); in main()
188 error = test_recvmsg(sk1, &inmessage, MSG_WAITALL); in main()
[all …]
Dtest_basic.c71 struct msghdr inmessage; in main() local
141 memset(&inmessage, 0, sizeof(inmessage)); in main()
144 inmessage.msg_iov = &iov; in main()
145 inmessage.msg_iovlen = 1; in main()
146 inmessage.msg_control = incmsg; in main()
147 inmessage.msg_name = &msgname; in main()
152 inmessage.msg_controllen = sizeof(incmsg); in main()
153 error = recvmsg(sk2, &inmessage, MSG_WAITALL); in main()
192 inmessage.msg_controllen = sizeof(incmsg); in main()
193 inmessage.msg_namelen = sizeof(msgname); in main()
[all …]
Dtest_peeloff.c68 struct msghdr inmessage; in main() local
157 memset(&inmessage, 0, sizeof(inmessage)); in main()
160 inmessage.msg_iov = &iov; in main()
161 inmessage.msg_iovlen = 1; in main()
162 inmessage.msg_control = incmsg; in main()
166 inmessage.msg_controllen = sizeof(incmsg); in main()
167 error = test_recvmsg(clt_sk[i], &inmessage, MSG_WAITALL); in main()
168 test_check_msg_notification(&inmessage, error, in main()
181 inmessage.msg_controllen = sizeof(incmsg); in main()
182 error = test_recvmsg(svr_sk, &inmessage, MSG_WAITALL); in main()
[all …]
Dtest_inaddr_any.c77 struct msghdr inmessage; in main() local
173 memset(&inmessage, 0, sizeof(inmessage)); in main()
176 inmessage.msg_iov = &iov; in main()
177 inmessage.msg_iovlen = 1; in main()
178 inmessage.msg_control = incmsg; in main()
181 inmessage.msg_controllen = sizeof(incmsg); in main()
182 error = test_recvmsg(sk2, &inmessage, MSG_WAITALL); in main()
183 test_check_msg_notification(&inmessage, error, in main()
188 inmessage.msg_controllen = sizeof(incmsg); in main()
189 error = test_recvmsg(sk1, &inmessage, MSG_WAITALL); in main()
[all …]
Dtest_autoclose.c66 struct msghdr inmessage, outmessage; in main() local
121 memset(&inmessage, 0, sizeof(inmessage)); in main()
124 inmessage.msg_iov = &iov; in main()
125 inmessage.msg_iovlen = 1; in main()
126 inmessage.msg_control = NULL; in main()
129 error = test_recvmsg(sk2, &inmessage, MSG_WAITALL); in main()
130 test_check_msg_notification(&inmessage, error, in main()
135 error = test_recvmsg(sk1, &inmessage, MSG_WAITALL); in main()
136 test_check_msg_notification(&inmessage, error, in main()
141 error = test_recvmsg(sk2, &inmessage, MSG_WAITALL); in main()
[all …]
Dtest_1_to_1_events.c58 struct msghdr inmessage, outmessage; in main() local
136 memset(&inmessage, 0, sizeof(inmessage)); in main()
146 inmessage.msg_iov = &iov; in main()
147 inmessage.msg_iovlen = 1; in main()
148 inmessage.msg_control = incmsg; in main()
149 inmessage.msg_controllen = sizeof(incmsg); in main()
151 error = test_recvmsg(clt_sk, &inmessage, MSG_WAITALL); in main()
152 test_check_msg_notification(&inmessage, in main()
160 error = test_recvmsg(acpt_sk, &inmessage, MSG_WAITALL); in main()
161 test_check_msg_notification(&inmessage, in main()
[all …]
Dtest_timetolive.c96 struct msghdr inmessage; in main() local
216 memset(&inmessage, 0, sizeof(inmessage)); in main()
219 inmessage.msg_iov = &iov; in main()
220 inmessage.msg_iovlen = 1; in main()
221 inmessage.msg_control = incmsg; in main()
224 inmessage.msg_controllen = sizeof(incmsg); in main()
225 error = test_recvmsg(sk2, &inmessage, MSG_WAITALL); in main()
226 test_check_msg_notification(&inmessage, error, in main()
235 inmessage.msg_controllen = sizeof(incmsg); in main()
236 error = test_recvmsg(sk1, &inmessage, MSG_WAITALL); in main()
[all …]
Dtest_1_to_1_recvmsg.c72 struct msghdr inmessage; in main() local
114 memset(&inmessage, 0, sizeof(inmessage)); in main()
119 inmessage.msg_iov = &iov_rcv; in main()
120 inmessage.msg_iovlen = 1; in main()
121 inmessage.msg_control = incmsg; in main()
122 inmessage.msg_controllen = sizeof(incmsg); in main()
125 count = recvmsg(-1, &inmessage, flag); in main()
138 count = recvmsg(fd, &inmessage, flag); in main()
150 inmessage.msg_iov = (struct iovec *)-1; in main()
151 count = recvmsg(acpt_sk, &inmessage, flag); in main()
[all …]
Dtest_assoc_shutdown.c69 struct msghdr inmessage; in main() local
147 memset(&inmessage, 0, sizeof(inmessage)); in main()
150 inmessage.msg_iov = &iov; in main()
151 inmessage.msg_iovlen = 1; in main()
152 inmessage.msg_control = incmsg; in main()
156 inmessage.msg_controllen = sizeof(incmsg); in main()
157 error = test_recvmsg(clt_sk[i], &inmessage, MSG_WAITALL); in main()
158 test_check_msg_notification(&inmessage, error, in main()
167 inmessage.msg_controllen = sizeof(incmsg); in main()
168 error = test_recvmsg(svr_sk, &inmessage, MSG_WAITALL); in main()
[all …]
Dtest_assoc_abort.c70 struct msghdr inmessage; in main() local
147 memset(&inmessage, 0, sizeof(inmessage)); in main()
150 inmessage.msg_iov = &iov; in main()
151 inmessage.msg_iovlen = 1; in main()
152 inmessage.msg_control = incmsg; in main()
156 inmessage.msg_controllen = sizeof(incmsg); in main()
157 error = test_recvmsg(clt_sk[i], &inmessage, MSG_WAITALL); in main()
158 test_check_msg_notification(&inmessage, error, in main()
167 inmessage.msg_controllen = sizeof(incmsg); in main()
168 error = test_recvmsg(svr_sk, &inmessage, MSG_WAITALL); in main()
[all …]
Dtest_connect.c65 struct msghdr inmessage; in main() local
136 memset(&inmessage, 0, sizeof(inmessage)); in main()
140 inmessage.msg_iov = &iov; in main()
141 inmessage.msg_iovlen = 1; in main()
142 inmessage.msg_control = NULL; in main()
145 error = test_recvmsg(clt_sk1, &inmessage, MSG_WAITALL); in main()
146 test_check_msg_notification(&inmessage, error, in main()
155 error = test_recvmsg(svr_sk, &inmessage, MSG_WAITALL); in main()
156 test_check_msg_notification(&inmessage, error, in main()
169 error = test_recvmsg(clt_sk2, &inmessage, MSG_WAITALL); in main()
[all …]
Dtest_connectx.c72 struct msghdr inmessage; in main() local
174 memset(&inmessage, 0, sizeof(inmessage)); in main()
178 inmessage.msg_iov = &iov; in main()
179 inmessage.msg_iovlen = 1; in main()
180 inmessage.msg_control = NULL; in main()
183 error = test_recvmsg(clt_sk1, &inmessage, MSG_WAITALL); in main()
184 test_check_msg_notification(&inmessage, error, in main()
200 error = test_recvmsg(svr_sk, &inmessage, MSG_WAITALL); in main()
201 test_check_msg_notification(&inmessage, error, in main()
214 error = test_recvmsg(clt_sk2, &inmessage, MSG_WAITALL); in main()
[all …]
Dtest_1_to_1_nonblock.c70 struct msghdr inmessage; in main() local
177 memset(&inmessage, 0, sizeof(inmessage)); in main()
182 inmessage.msg_iov = &iov_rcv; in main()
183 inmessage.msg_iovlen = 1; in main()
184 inmessage.msg_control = incmsg; in main()
185 inmessage.msg_controllen = sizeof(incmsg); in main()
190 error = recvmsg(sk, &inmessage, MSG_WAITALL); in main()
200 error = test_recvmsg(sk, &inmessage, flag); in main()
201 test_check_msg_data(&inmessage, error, msg_count, MSG_EOR, 0, 0); in main()
Dtest_1_to_1_threads.c69 struct msghdr inmessage; in t_recv() local
74 memset(&inmessage, 0, sizeof(inmessage)); in t_recv()
79 inmessage.msg_iov = &iov; in t_recv()
80 inmessage.msg_iovlen = 1; in t_recv()
81 inmessage.msg_control = incmsg; in t_recv()
82 inmessage.msg_controllen = sizeof(incmsg); in t_recv()
84 cnt = test_recvmsg(acpt_sk,&inmessage, MSG_WAITALL); in t_recv()
85 test_check_msg_data(&inmessage, cnt, strlen(message) + 1, MSG_EOR, in t_recv()
Dtest_sockopt.c72 struct msghdr inmessage; in main() local
203 memset(&inmessage, 0, sizeof(inmessage)); in main()
206 inmessage.msg_iov = &iov; in main()
207 inmessage.msg_iovlen = 1; in main()
208 inmessage.msg_control = incmsg; in main()
211 inmessage.msg_controllen = sizeof(incmsg); in main()
212 error = test_recvmsg(udp_svr_sk, &inmessage, MSG_WAITALL); in main()
213 test_check_msg_notification(&inmessage, error, in main()
220 inmessage.msg_controllen = sizeof(incmsg); in main()
221 error = test_recvmsg(udp_clt_sk, &inmessage, MSG_WAITALL); in main()
[all …]
Dtest_1_to_1_sendmsg.c84 struct msghdr inmessage; in main() local
304 memset(&inmessage, 0, sizeof(inmessage)); in main()
309 inmessage.msg_iov = &iov_rcv; in main()
310 inmessage.msg_iovlen = 1; in main()
311 inmessage.msg_control = incmsg; in main()
312 inmessage.msg_controllen = sizeof(incmsg); in main()
324 count = test_recvmsg(sk, &inmessage, flag); in main()
325 test_check_msg_data(&inmessage, count, msg_count, MSG_EOR, 0, 0); in main()
337 count = test_recvmsg(acpt_sk, &inmessage, flag); in main()
338 test_check_msg_data(&inmessage, count, msg_count, MSG_EOR, 0, 0); in main()
[all …]
Dtest_1_to_1_addrs.c84 struct msghdr inmessage; in main() local
135 memset(&inmessage, 0, sizeof(inmessage)); in main()
140 inmessage.msg_iov = &iov_rcv; in main()
141 inmessage.msg_iovlen = 1; in main()
142 inmessage.msg_control = incmsg; in main()
143 inmessage.msg_controllen = sizeof(incmsg); in main()
169 test_recvmsg(acpt_sk, &inmessage, MSG_NOSIGNAL); in main()
Dtest_tcp_style.c79 struct msghdr inmessage; in main() local
269 memset(&inmessage, 0, sizeof(inmessage)); in main()
272 inmessage.msg_iov = &iov; in main()
273 inmessage.msg_iovlen = 1; in main()
274 inmessage.msg_control = incmsg; in main()
275 inmessage.msg_controllen = sizeof(incmsg); in main()
278 error = test_recvmsg(clt_sk[0], &inmessage, MSG_WAITALL); in main()
279 test_check_msg_notification(&inmessage, error, in main()