Home
last modified time | relevance | path

Searched refs:sk1 (Results 1 - 24 of 24) sorted by relevance

/third_party/ltp/utils/sctp/func_tests/
H A 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()
202 /* Get the communication up message on sk1. */ 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, fillms in main()
[all...]
H A 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()
105 /* Set the autoclose duration for the associations created on sk1 in main()
109 test_setsockopt(sk1, SCTP_AUTOCLOSE, &autoclose, sizeof(autoclose)); in main()
121 test_sendmsg(sk1, &outmessage, 0, strlen(message)+1); in main()
138 /* Get the communication up message on sk1. */ in main()
139 error = test_recvmsg(sk1, &inmessage, MSG_WAITALL); in main()
152 /* Get the shutdown complete notification from sk1 in main()
[all...]
H A 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()
191 /* Get the communication up message on sk1. */ 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, in main()
[all...]
H A 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()
190 /* Get the communication up message on sk1. */ 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, in main()
[all...]
H A 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()
H A 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()
238 /* Get the communication up message on sk1. */ 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, in main()
[all...]
H A 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()
237 /* Get the communication up message on sk1. */ 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, in main()
[all...]
H A 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()
H A 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()
[all...]
H A 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()
H A 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()
H A 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()
H A 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()
H A 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()
/third_party/openssl/test/helpers/
H A Dcmp_testlib.c33 * Returns 0 if sk1 and sk2 are equal and another value otherwise
35 int STACK_OF_X509_cmp(const STACK_OF(X509) *sk1, const STACK_OF(X509) *sk2) in STACK_OF()
40 if (sk1 == sk2) in STACK_OF()
42 if (sk1 == NULL) in STACK_OF()
46 if ((res = sk_X509_num(sk1) - sk_X509_num(sk2))) in STACK_OF()
48 for (i = 0; i < sk_X509_num(sk1); i++) { in STACK_OF()
49 a = sk_X509_value(sk1, i); in STACK_OF()
H A Dcmp_testlib.h26 int STACK_OF_X509_cmp(const STACK_OF(X509) *sk1, const STACK_OF(X509) *sk2);
/third_party/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/
H A DUCAConformanceTest.java202 RawCollationKey sk1 = new RawCollationKey(), sk2 = new RawCollationKey(); in conformanceTest()
203 RawCollationKey oldSk = null, newSk = sk1; in conformanceTest()
270 if (oldSk == sk1) { in conformanceTest()
273 newSk = sk1; in conformanceTest()
H A DCollationMiscTest.java3076 CollationKey sk1 = viescoll.getCollationKey(t); in TestImport()
3078 if(!sk1.equals(sk2)){ in TestImport()
3105 CollationKey sk1 = videcoll.getCollationKey(t); in TestImportWithType()
3107 if(!sk1.equals(sk2)){ in TestImportWithType()
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/collator/
H A DUCAConformanceTest.java205 RawCollationKey sk1 = new RawCollationKey(), sk2 = new RawCollationKey(); in conformanceTest()
206 RawCollationKey oldSk = null, newSk = sk1; in conformanceTest()
273 if (oldSk == sk1) { in conformanceTest()
276 newSk = sk1; in conformanceTest()
H A DCollationMiscTest.java3079 CollationKey sk1 = viescoll.getCollationKey(t); in TestImport()
3081 if(!sk1.equals(sk2)){ in TestImport()
3108 CollationKey sk1 = videcoll.getCollationKey(t); in TestImportWithType()
3110 if(!sk1.equals(sk2)){ in TestImportWithType()
/third_party/icu/icu4c/source/test/intltest/
H A 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()
H A Dtsmthred.cpp743 uint8_t sk1[1024], sk2[1024]; variable
744 uint8_t *oldSk = NULL, *newSk = sk1;
789 newSk = (newSk == sk1)?sk2:sk1;
/third_party/icu/icu4c/source/test/cintltst/
H A 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, sk in TestImportWithType()
[all...]
/third_party/openssl/test/
H A Dsslapitest.c8600 STACK_OF(X509_NAME) *sk1 = NULL, *sk2 = NULL; in test_ca_names_int()
8624 if (!TEST_ptr(sk1 = sk_X509_NAME_new_null()) in test_ca_names_int()
8625 || !TEST_true(sk_X509_NAME_push(sk1, X509_NAME_dup(name[0]))) in test_ca_names_int()
8626 || !TEST_true(sk_X509_NAME_push(sk1, X509_NAME_dup(name[1]))) in test_ca_names_int()
8632 SSL_CTX_set0_CA_list(sctx, sk1); in test_ca_names_int()
8634 sk1 = sk2 = NULL; in test_ca_names_int()
8637 if (!TEST_ptr(sk1 = sk_X509_NAME_new_null()) in test_ca_names_int()
8638 || !TEST_true(sk_X509_NAME_push(sk1, X509_NAME_dup(name[2]))) in test_ca_names_int()
8639 || !TEST_true(sk_X509_NAME_push(sk1, X509_NAME_dup(name[3]))) in test_ca_names_int()
8645 SSL_CTX_set_client_CA_list(sctx, sk1); in test_ca_names_int()
[all...]

Completed in 36 milliseconds