Home
last modified time | relevance | path

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

/external/ltp/utils/sctp/func_tests/
Dtest_autoclose.c64 int sk1, sk2; in main() local
87 sk1 = test_socket(AF_INET, SOCK_SEQPACKET, IPPROTO_SCTP); in main()
91 test_enable_assoc_change(sk1); in main()
95 test_bind(sk1, &loop1.sa, sizeof(loop1)); in main()
105 test_setsockopt(sk1, SCTP_AUTOCLOSE, &autoclose, sizeof(autoclose)); in main()
117 test_sendmsg(sk1, &outmessage, 0, strlen(message)+1); in main()
135 error = test_recvmsg(sk1, &inmessage, MSG_WAITALL); in main()
149 error = test_recvmsg(sk1, &inmessage, MSG_WAITALL); in main()
163 close(sk1); in main()
Dtest_sctp_sendrecvmsg.c75 int sk1, sk2; in main() local
124 sk1 = test_socket(pf_class, SOCK_SEQPACKET, IPPROTO_SCTP); in main()
130 test_setsockopt(sk1, SCTP_MAXSEG, &val, sizeof(val)); in main()
137 test_setsockopt(sk1, SCTP_EVENTS, &subscribe, sizeof(subscribe)); in main()
141 test_bind(sk1, &loop1.sa, sizeof(loop1)); in main()
168 test_sctp_sendmsg(sk1, message, strlen(message) + 1, in main()
202 error = test_sctp_recvmsg(sk1, big_buffer, buflen, in main()
228 error = getsockopt(sk1, IPPROTO_SCTP, SCTP_STATUS, &gstatus, &len); in main()
242 test_sctp_sendmsg(sk1, fillmsg, gstatus.sstat_rwnd+RWND_SLOP, in main()
247 test_sctp_sendmsg(sk1, ttlmsg, strlen(ttlmsg) + 1, in main()
[all …]
Dtest_fragments.c77 int sk1, sk2; in main() local
127 sk1 = test_socket(pf_class, SOCK_SEQPACKET, IPPROTO_SCTP); in main()
131 test_enable_assoc_change(sk1); in main()
135 test_bind(sk1, &loop1.sa, sizeof(loop1)); in main()
164 test_sendmsg(sk1, &outmessage, 0, msg_len); in main()
188 error = test_recvmsg(sk1, &inmessage, MSG_WAITALL); in main()
205 test_setsockopt(sk1, SCTP_DISABLE_FRAGMENTS, &disable_frag, in main()
213 error = test_getsockopt(sk1, SCTP_DISABLE_FRAGMENTS, &disable_frag, in main()
229 error = sendmsg(sk1, &outmessage, 0); in main()
238 test_setsockopt(sk1, SCTP_DISABLE_FRAGMENTS, &disable_frag, in main()
[all …]
Dtest_timetolive.c92 int sk1, sk2; in main() local
146 sk1 = test_socket(pf_class, SOCK_SEQPACKET, IPPROTO_SCTP); in main()
158 test_setsockopt(sk1, SCTP_MAXSEG, &val, sizeof(val)); in main()
165 test_setsockopt(sk1, SCTP_EVENTS, &subscribe, sizeof(subscribe)); in main()
169 test_bind(sk1, &loop1.sa, sizeof(loop1)); in main()
212 test_sendmsg(sk1, &outmessage, 0, strlen(message)+1); in main()
236 error = test_recvmsg(sk1, &inmessage, MSG_WAITALL); in main()
261 error = getsockopt(sk1, IPPROTO_SCTP, SCTP_STATUS, &gstatus, &len); in main()
292 test_sendmsg(sk1, &outmessage, MSG_NOSIGNAL, in main()
304 test_sendmsg(sk1, &outmessage, MSG_NOSIGNAL, strlen(ttlmsg) + 1); in main()
[all …]
Dtest_1_to_1_initmsg_connect.c58 int sk1, sk2, sk3, pf_class; in main() local
76 sk1 = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()
94 test_setsockopt(sk1, SCTP_INITMSG, &sinmsg, len); in main()
102 test_connect(sk1, (struct sockaddr *) &conn_addr, len); in main()
106 test_sctp_sendmsg(sk1, message, strlen(message) + 1, in main()
115 close (sk1); in main()
Dtest_inaddr_any.c67 int sk1, sk2; in main() local
116 sk1 = test_socket(pf_class, SOCK_SEQPACKET, IPPROTO_SCTP); in main()
120 test_enable_assoc_change(sk1); in main()
124 test_bind(sk1, &loop.sa, sizeof(loop)); in main()
134 error = getsockname(sk1, &loop.sa, &namelen); in main()
170 test_sendmsg(sk1, &outmessage, 0, strlen(message)+1); in main()
189 error = test_recvmsg(sk1, &inmessage, MSG_WAITALL); in main()
218 test_sendmsg(sk1, &outmessage, 0, strlen(telephone)+1); in main()
222 test_sendmsg(sk1, &outmessage, 0, strlen(telephone_resp)+1); in main()
236 close(sk1); in main()
Dtest_basic.c66 int sk1, sk2; in main() local
124 sk1 = test_socket(pf_class, SOCK_SEQPACKET, IPPROTO_SCTP); in main()
130 test_bind(sk1, &loop1.sa, sizeof(loop1)); in main()
136 test_enable_assoc_change(sk1); in main()
187 test_sendmsg(sk1, &outmessage, 0, strlen(message)+1); in main()
238 error = test_recvmsg(sk1, &inmessage, MSG_WAITALL); in main()
304 bytes_sent = sendmsg(sk1, &outmessage, MSG_NOSIGNAL); in main()
313 bytes_sent = sendmsg(sk1, &outmessage, MSG_NOSIGNAL); in main()
323 test_sendmsg(sk1, &outmessage, 0, strlen(telephone)+1); in main()
329 test_sendmsg(sk1, &outmessage, 0, strlen(telephone_resp)+1); in main()
[all …]
Dtest_1_to_1_sendmsg.c76 int sk,sk1,pf_class,lstn_sk,acpt_sk,acpt1_sk, flag; in main() local
102 sk1 = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()
239 test_connect(sk1, (struct sockaddr *) &lstn_addr, len); in main()
241 test_sendmsg(sk1, &outmessage, flag, strlen(message)+1); in main()
243 close(sk1); in main()
344 sk1 = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()
348 count = sendmsg(sk1, &outmessage, flag); in main()
360 test_shutdown(sk1, SHUT_RD); in main()
363 count = sendmsg(sk1, &outmessage, flag); in main()
373 close(sk1); in main()
Dtest_1_to_1_sockopt.c85 int sk, sk1, sk2, acpt_sk, pf_class; in main() local
222 sk1 = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()
236 test_getsockopt(sk1, SCTP_INITMSG, &ginmsg, &len); in main()
245 test_setsockopt(sk1, SCTP_INITMSG, &sinmsg, sizeof(sinmsg)); in main()
247 test_getsockopt(sk1, SCTP_INITMSG, &ginmsg, &len); in main()
272 test_bind(sk1, (struct sockaddr *) &lstn_addr, sizeof(lstn_addr)); in main()
273 test_listen(sk1, 10 ); in main()
277 acpt_sk = test_accept(sk1, (struct sockaddr *)&addr, &len); in main()
430 close(sk1); in main()
Dtest_1_to_1_send.c69 int sk,sk1,pf_class,lstn_sk,acpt_sk,acpt1_sk, flag, count; in main() local
87 sk1 = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()
157 test_connect(sk1, (struct sockaddr *) &lstn_addr, len); in main()
159 count = test_send(sk1, message, len_snd, flag); in main()
161 close(sk1); in main()
236 close(sk1); in main()
Dtest_1_to_1_sendto.c65 int sk,sk1,pf_class,lstn_sk,acpt_sk,flag; in main() local
135 sk1 = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()
139 count = sendto(sk1, message, msg_count, flag, in main()
159 close(sk1); in main()
Dtest_1_to_1_connectx.c74 int sk1,clnt2_sk; in main() local
88 sk1 = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()
213 error = sctp_connectx(sk1, (struct sockaddr *)&conn_addr, 1, NULL); in main()
222 close(sk1); in main()
Dtest_1_to_1_connect.c74 int sk1,clnt2_sk; in main() local
89 sk1 = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()
221 error = connect(sk1, (const struct sockaddr *)&conn_addr, len); in main()
230 close(sk1); in main()
Dtest_1_to_1_addrs.c82 int lstn_sk,clnt_sk,acpt_sk,pf_class,sk1; in main() local
199 sk1 = socket(pf_class, SOCK_STREAM, IPPROTO_IP); in main()
200 error = sctp_getladdrs(sk1, 0, &laddrs); in main()
257 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/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.cpp866 uint8_t sk1[1024], sk2[1024]; in run() local
867 uint8_t *oldSk = NULL, *newSk = sk1; in run()
914 newSk = (newSk == sk1)?sk2:sk1; in run()
/external/icu/icu4c/source/test/cintltst/
Dcmsccoll.c5548 uint8_t sk1[500]; in TestImport() local
5603 ucol_getSortKey(viescoll, str, 1, sk1, 500); in TestImport()
5605 if(compare_uint8_t_arrays(sk1, sk2) != 0){ in TestImport()
5611 ucol_getSortKey(viescoll, str, strLength, sk1, 500); in TestImport()
5613 if(compare_uint8_t_arrays(sk1, sk2) != 0){ in TestImport()
5655 uint8_t sk1[500]; in TestImportWithType() local
5713 ucol_getSortKey(videcoll, str, 1, sk1, 500); in TestImportWithType()
5715 if(compare_uint8_t_arrays(sk1, sk2) != 0){ in TestImportWithType()
5721 ucol_getSortKey(videcoll, str, strLength, sk1, 500); in TestImportWithType()
5723 if(compare_uint8_t_arrays(sk1, sk2) != 0){ in TestImportWithType()