Home
last modified time | relevance | path

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

/external/ltp/utils/sctp/func_tests/
Dtest_autoclose.c65 int sk1, sk2; in main() local
91 sk1 = test_socket(AF_INET, SOCK_SEQPACKET, IPPROTO_SCTP); in main()
95 test_enable_assoc_change(sk1); in main()
99 test_bind(sk1, &loop1.sa, sizeof(loop1)); in main()
109 test_setsockopt(sk1, SCTP_AUTOCLOSE, &autoclose, sizeof(autoclose)); in main()
121 test_sendmsg(sk1, &outmessage, 0, strlen(message)+1); in main()
139 error = test_recvmsg(sk1, &inmessage, MSG_WAITALL); in main()
153 error = test_recvmsg(sk1, &inmessage, MSG_WAITALL); in main()
167 close(sk1); in main()
Dtest_sctp_sendrecvmsg.c76 int sk1, sk2; in main() local
128 sk1 = test_socket(pf_class, SOCK_SEQPACKET, IPPROTO_SCTP); in main()
134 test_setsockopt(sk1, SCTP_MAXSEG, &val, sizeof(val)); in main()
141 test_setsockopt(sk1, SCTP_EVENTS, &subscribe, sizeof(subscribe)); in main()
145 test_bind(sk1, &loop1.sa, sizeof(loop1)); in main()
172 test_sctp_sendmsg(sk1, message, strlen(message) + 1, in main()
206 error = test_sctp_recvmsg(sk1, big_buffer, buflen, in main()
232 error = getsockopt(sk1, IPPROTO_SCTP, SCTP_STATUS, &gstatus, &len); in main()
246 test_sctp_sendmsg(sk1, fillmsg, gstatus.sstat_rwnd+RWND_SLOP, in main()
251 test_sctp_sendmsg(sk1, ttlmsg, strlen(ttlmsg) + 1, in main()
[all …]
Dtest_fragments.c78 int sk1, sk2; in main() local
131 sk1 = test_socket(pf_class, SOCK_SEQPACKET, IPPROTO_SCTP); in main()
135 test_enable_assoc_change(sk1); in main()
139 test_bind(sk1, &loop1.sa, sizeof(loop1)); in main()
168 test_sendmsg(sk1, &outmessage, 0, msg_len); in main()
192 error = test_recvmsg(sk1, &inmessage, MSG_WAITALL); in main()
209 test_setsockopt(sk1, SCTP_DISABLE_FRAGMENTS, &disable_frag, in main()
217 error = test_getsockopt(sk1, SCTP_DISABLE_FRAGMENTS, &disable_frag, in main()
233 error = sendmsg(sk1, &outmessage, 0); in main()
242 test_setsockopt(sk1, SCTP_DISABLE_FRAGMENTS, &disable_frag, in main()
[all …]
Dtest_1_to_1_initmsg_connect.c42 int sk1, sk2, sk3, msglen; in test_sctp() local
52 sk1 = SAFE_SOCKET(PF_INET, SOCK_STREAM, IPPROTO_SCTP); in test_sctp()
66 SAFE_SETSOCKOPT(sk1, SOL_SCTP, SCTP_INITMSG, &sinmsg, len); in test_sctp()
74 TEST(connect(sk1, (struct sockaddr *) &lstn_addr, len)); in test_sctp()
78 SAFE_CLOSE(sk1); in test_sctp()
88 TEST(sctp_sendmsg(sk1, message, msglen, (struct sockaddr *)&lstn_addr, in test_sctp()
105 SAFE_CLOSE(sk1); in test_sctp()
Dtest_timetolive.c93 int sk1, sk2; in main() local
150 sk1 = test_socket(pf_class, SOCK_SEQPACKET, IPPROTO_SCTP); in main()
162 test_setsockopt(sk1, SCTP_MAXSEG, &val, sizeof(val)); in main()
169 test_setsockopt(sk1, SCTP_EVENTS, &subscribe, sizeof(subscribe)); in main()
173 test_bind(sk1, &loop1.sa, sizeof(loop1)); in main()
216 test_sendmsg(sk1, &outmessage, 0, strlen(message)+1); in main()
240 error = test_recvmsg(sk1, &inmessage, MSG_WAITALL); in main()
265 error = getsockopt(sk1, IPPROTO_SCTP, SCTP_STATUS, &gstatus, &len); in main()
296 test_sendmsg(sk1, &outmessage, MSG_NOSIGNAL, in main()
308 test_sendmsg(sk1, &outmessage, MSG_NOSIGNAL, strlen(ttlmsg) + 1); in main()
[all …]
Dtest_inaddr_any.c68 int sk1, sk2; in main() local
120 sk1 = test_socket(pf_class, SOCK_SEQPACKET, IPPROTO_SCTP); in main()
124 test_enable_assoc_change(sk1); in main()
128 test_bind(sk1, &loop.sa, sizeof(loop)); in main()
138 error = getsockname(sk1, &loop.sa, &namelen); in main()
174 test_sendmsg(sk1, &outmessage, 0, strlen(message)+1); in main()
193 error = test_recvmsg(sk1, &inmessage, MSG_WAITALL); in main()
222 test_sendmsg(sk1, &outmessage, 0, strlen(telephone)+1); in main()
226 test_sendmsg(sk1, &outmessage, 0, strlen(telephone_resp)+1); in main()
240 close(sk1); in main()
Dtest_basic.c67 int sk1, sk2; in main() local
128 sk1 = test_socket(pf_class, SOCK_SEQPACKET, IPPROTO_SCTP); in main()
134 test_bind(sk1, &loop1.sa, sizeof(loop1)); in main()
140 test_enable_assoc_change(sk1); in main()
191 test_sendmsg(sk1, &outmessage, 0, strlen(message)+1); in main()
242 error = test_recvmsg(sk1, &inmessage, MSG_WAITALL); in main()
308 bytes_sent = sendmsg(sk1, &outmessage, MSG_NOSIGNAL); in main()
317 bytes_sent = sendmsg(sk1, &outmessage, MSG_NOSIGNAL); in main()
327 test_sendmsg(sk1, &outmessage, 0, strlen(telephone)+1); in main()
333 test_sendmsg(sk1, &outmessage, 0, strlen(telephone_resp)+1); in main()
[all …]
Dtest_1_to_1_sendmsg.c77 int sk,sk1,pf_class,lstn_sk,acpt_sk,acpt1_sk, flag; in main() local
106 sk1 = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()
243 test_connect(sk1, (struct sockaddr *) &lstn_addr, len); in main()
245 test_sendmsg(sk1, &outmessage, flag, strlen(message)+1); in main()
247 close(sk1); in main()
348 sk1 = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()
352 count = sendmsg(sk1, &outmessage, flag); in main()
364 test_shutdown(sk1, SHUT_RD); in main()
367 count = sendmsg(sk1, &outmessage, flag); in main()
377 close(sk1); in main()
Dtest_1_to_1_sockopt.c86 int sk, sk1, sk2, acpt_sk, pf_class; in main() local
226 sk1 = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()
240 test_getsockopt(sk1, SCTP_INITMSG, &ginmsg, &len); in main()
249 test_setsockopt(sk1, SCTP_INITMSG, &sinmsg, sizeof(sinmsg)); in main()
251 test_getsockopt(sk1, SCTP_INITMSG, &ginmsg, &len); in main()
276 test_bind(sk1, (struct sockaddr *) &lstn_addr, sizeof(lstn_addr)); in main()
277 test_listen(sk1, 10 ); in main()
281 acpt_sk = test_accept(sk1, (struct sockaddr *)&addr, &len); in main()
434 close(sk1); in main()
Dtest_1_to_1_send.c70 int sk,sk1,pf_class,lstn_sk,acpt_sk,acpt1_sk, flag, count; in main() local
91 sk1 = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()
161 test_connect(sk1, (struct sockaddr *) &lstn_addr, len); in main()
163 count = test_send(sk1, message, len_snd, flag); in main()
165 close(sk1); in main()
240 close(sk1); in main()
Dtest_1_to_1_sendto.c66 int sk,sk1,pf_class,lstn_sk,acpt_sk,flag; in main() local
139 sk1 = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()
143 count = sendto(sk1, message, msg_count, flag, in main()
163 close(sk1); in main()
Dtest_1_to_1_connectx.c74 int sk1,clnt2_sk; in main() local
90 sk1 = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()
205 error = sctp_connectx(sk1, (struct sockaddr *)&conn_addr, 1, NULL); in main()
214 close(sk1); in main()
Dtest_1_to_1_connect.c75 int sk1,clnt2_sk; in main() local
93 sk1 = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()
225 error = connect(sk1, (const struct sockaddr *)&conn_addr, len); in main()
234 close(sk1); in main()
Dtest_1_to_1_addrs.c83 int lstn_sk,clnt_sk,acpt_sk,pf_class,sk1; in main() local
203 sk1 = socket(pf_class, SOCK_STREAM, IPPROTO_IP); in main()
204 error = sctp_getladdrs(sk1, 0, &laddrs); in main()
261 error = sctp_getpaddrs(sk1, 0, &laddrs); in main()
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/
DUCAConformanceTest.java202 RawCollationKey sk1 = new RawCollationKey(), sk2 = new RawCollationKey(); in conformanceTest() local
203 RawCollationKey oldSk = null, newSk = sk1; in conformanceTest()
270 if (oldSk == sk1) { in conformanceTest()
273 newSk = sk1; in conformanceTest()
DCollationMiscTest.java3078 CollationKey sk1 = viescoll.getCollationKey(t); in TestImport() local
3080 if(!sk1.equals(sk2)){ in TestImport()
3109 CollationKey sk1 = videcoll.getCollationKey(t); in TestImportWithType() local
3111 if(!sk1.equals(sk2)){ in TestImportWithType()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/collator/
DUCAConformanceTest.java205 RawCollationKey sk1 = new RawCollationKey(), sk2 = new RawCollationKey(); in conformanceTest() local
206 RawCollationKey oldSk = null, newSk = sk1; in conformanceTest()
273 if (oldSk == sk1) { in conformanceTest()
276 newSk = sk1; in conformanceTest()
DCollationMiscTest.java3081 CollationKey sk1 = viescoll.getCollationKey(t); in TestImport() local
3083 if(!sk1.equals(sk2)){ in TestImport()
3112 CollationKey sk1 = videcoll.getCollationKey(t); in TestImportWithType() local
3114 if(!sk1.equals(sk2)){ in TestImportWithType()
/external/linux-kselftest/tools/testing/selftests/bpf/progs/
Dtest_sk_lookup.c327 struct bpf_sock *sk1 = NULL, *sk2 = NULL; in access_ctx_sk() local
337 sk1 = bpf_map_lookup_elem(&redir_map, &KEY_SERVER_A); in access_ctx_sk()
338 if (!sk1) in access_ctx_sk()
340 err = bpf_sk_assign(ctx, sk1, 0); in access_ctx_sk()
343 if (ctx->sk != sk1) in access_ctx_sk()
377 if (sk1) in access_ctx_sk()
378 bpf_sk_release(sk1); in access_ctx_sk()
/external/cronet/third_party/icu/source/test/intltest/
Ducaconf.cpp197 uint8_t sk1[1024], sk2[1024]; in testConformance() local
198 uint8_t *oldSk = NULL, *newSk = sk1; in testConformance()
286 newSk = sk1; in testConformance()
Dtsmthred.cpp743 uint8_t sk1[1024], sk2[1024]; in run() local
744 uint8_t *oldSk = NULL, *newSk = sk1; in run()
789 newSk = (newSk == sk1)?sk2:sk1; in run()
/external/icu/icu4c/source/test/intltest/
Ducaconf.cpp197 uint8_t sk1[1024], sk2[1024]; in testConformance() local
198 uint8_t *oldSk = NULL, *newSk = sk1; in testConformance()
286 newSk = sk1; in testConformance()
Dtsmthred.cpp743 uint8_t sk1[1024], sk2[1024]; in run() local
744 uint8_t *oldSk = NULL, *newSk = sk1; in run()
789 newSk = (newSk == sk1)?sk2:sk1; in run()
/external/icu/icu4c/source/test/cintltst/
Dcmsccoll.c5551 uint8_t sk1[500]; in TestImport() local
5606 ucol_getSortKey(viescoll, str, 1, sk1, 500); in TestImport()
5608 if(compare_uint8_t_arrays(sk1, sk2) != 0){ in TestImport()
5614 ucol_getSortKey(viescoll, str, strLength, sk1, 500); in TestImport()
5616 if(compare_uint8_t_arrays(sk1, sk2) != 0){ in TestImport()
5658 uint8_t sk1[500]; in TestImportWithType() local
5716 ucol_getSortKey(videcoll, str, 1, sk1, 500); in TestImportWithType()
5718 if(compare_uint8_t_arrays(sk1, sk2) != 0){ in TestImportWithType()
5724 ucol_getSortKey(videcoll, str, strLength, sk1, 500); in TestImportWithType()
5726 if(compare_uint8_t_arrays(sk1, sk2) != 0){ in TestImportWithType()
/external/cronet/third_party/icu/source/test/cintltst/
Dcmsccoll.c5551 uint8_t sk1[500]; in TestImport() local
5606 ucol_getSortKey(viescoll, str, 1, sk1, 500); in TestImport()
5608 if(compare_uint8_t_arrays(sk1, sk2) != 0){ in TestImport()
5614 ucol_getSortKey(viescoll, str, strLength, sk1, 500); in TestImport()
5616 if(compare_uint8_t_arrays(sk1, sk2) != 0){ in TestImport()
5658 uint8_t sk1[500]; in TestImportWithType() local
5716 ucol_getSortKey(videcoll, str, 1, sk1, 500); in TestImportWithType()
5718 if(compare_uint8_t_arrays(sk1, sk2) != 0){ in TestImportWithType()
5724 ucol_getSortKey(videcoll, str, strLength, sk1, 500); in TestImportWithType()
5726 if(compare_uint8_t_arrays(sk1, sk2) != 0){ in TestImportWithType()