/external/ltp/utils/sctp/func_tests/ |
test_1_to_1_initmsg_connect.c | 58 int sk1, sk2, sk3, pf_class; local 76 sk1 = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); 94 test_setsockopt(sk1, SCTP_INITMSG, &sinmsg, len); 102 test_connect(sk1, (struct sockaddr *) &conn_addr, len); 106 test_sctp_sendmsg(sk1, message, strlen(message) + 1, 115 close (sk1);
|
test_autoclose.c | 64 int sk1, sk2; local 87 sk1 = test_socket(AF_INET, SOCK_SEQPACKET, IPPROTO_SCTP); 91 test_enable_assoc_change(sk1); 95 test_bind(sk1, &loop1.sa, sizeof(loop1)); 101 /* Set the autoclose duration for the associations created on sk1 105 test_setsockopt(sk1, SCTP_AUTOCLOSE, &autoclose, sizeof(autoclose)); 117 test_sendmsg(sk1, &outmessage, 0, strlen(message)+1); 134 /* Get the communication up message on sk1. */ 135 error = test_recvmsg(sk1, &inmessage, MSG_WAITALL); 148 /* Get the shutdown complete notification from sk1. * [all...] |
test_sctp_sendrecvmsg.c | 75 int sk1, sk2; local 124 sk1 = test_socket(pf_class, SOCK_SEQPACKET, IPPROTO_SCTP); 130 test_setsockopt(sk1, SCTP_MAXSEG, &val, sizeof(val)); 137 test_setsockopt(sk1, SCTP_EVENTS, &subscribe, sizeof(subscribe)); 141 test_bind(sk1, &loop1.sa, sizeof(loop1)); 168 test_sctp_sendmsg(sk1, message, strlen(message) + 1, 198 /* Get the communication up message on sk1. */ 202 error = test_sctp_recvmsg(sk1, big_buffer, buflen, 228 error = getsockopt(sk1, IPPROTO_SCTP, SCTP_STATUS, &gstatus, &len); 242 test_sctp_sendmsg(sk1, fillmsg, gstatus.sstat_rwnd+RWND_SLOP, [all...] |
test_fragments.c | 77 int sk1, sk2; local 127 sk1 = test_socket(pf_class, SOCK_SEQPACKET, IPPROTO_SCTP); 131 test_enable_assoc_change(sk1); 135 test_bind(sk1, &loop1.sa, sizeof(loop1)); 164 test_sendmsg(sk1, &outmessage, 0, msg_len); 186 /* Get the communication up message on sk1. */ 188 error = test_recvmsg(sk1, &inmessage, MSG_WAITALL); 205 test_setsockopt(sk1, SCTP_DISABLE_FRAGMENTS, &disable_frag, 213 error = test_getsockopt(sk1, SCTP_DISABLE_FRAGMENTS, &disable_frag, 229 error = sendmsg(sk1, &outmessage, 0) [all...] |
test_inaddr_any.c | 67 int sk1, sk2; local 116 sk1 = test_socket(pf_class, SOCK_SEQPACKET, IPPROTO_SCTP); 120 test_enable_assoc_change(sk1); 124 test_bind(sk1, &loop.sa, sizeof(loop)); 134 error = getsockname(sk1, &loop.sa, &namelen); 170 test_sendmsg(sk1, &outmessage, 0, strlen(message)+1); 187 /* Get the communication up message on sk1. */ 189 error = test_recvmsg(sk1, &inmessage, MSG_WAITALL); 218 test_sendmsg(sk1, &outmessage, 0, strlen(telephone)+1); 222 test_sendmsg(sk1, &outmessage, 0, strlen(telephone_resp)+1) [all...] |
test_timetolive.c | 92 int sk1, sk2; local 146 sk1 = test_socket(pf_class, SOCK_SEQPACKET, IPPROTO_SCTP); 158 test_setsockopt(sk1, SCTP_MAXSEG, &val, sizeof(val)); 165 test_setsockopt(sk1, SCTP_EVENTS, &subscribe, sizeof(subscribe)); 169 test_bind(sk1, &loop1.sa, sizeof(loop1)); 212 test_sendmsg(sk1, &outmessage, 0, strlen(message)+1); 234 /* Get the communication up message on sk1. */ 236 error = test_recvmsg(sk1, &inmessage, MSG_WAITALL); 261 error = getsockopt(sk1, IPPROTO_SCTP, SCTP_STATUS, &gstatus, &len); 292 test_sendmsg(sk1, &outmessage, MSG_NOSIGNAL [all...] |
test_basic.c | 66 int sk1, sk2; local 124 sk1 = test_socket(pf_class, SOCK_SEQPACKET, IPPROTO_SCTP); 130 test_bind(sk1, &loop1.sa, sizeof(loop1)); 136 test_enable_assoc_change(sk1); 187 test_sendmsg(sk1, &outmessage, 0, strlen(message)+1); 233 /* Get the communication up message on sk1. */ 238 error = test_recvmsg(sk1, &inmessage, MSG_WAITALL); 304 bytes_sent = sendmsg(sk1, &outmessage, MSG_NOSIGNAL); 313 bytes_sent = sendmsg(sk1, &outmessage, MSG_NOSIGNAL); 323 test_sendmsg(sk1, &outmessage, 0, strlen(telephone)+1) [all...] |
test_1_to_1_sendto.c | 65 int sk,sk1,pf_class,lstn_sk,acpt_sk,flag; local 135 sk1 = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); 139 count = sendto(sk1, message, msg_count, flag, 159 close(sk1);
|
test_1_to_1_send.c | 69 int sk,sk1,pf_class,lstn_sk,acpt_sk,acpt1_sk, flag, count; local 87 sk1 = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); 157 test_connect(sk1, (struct sockaddr *) &lstn_addr, len); 159 count = test_send(sk1, message, len_snd, flag); 161 close(sk1); 236 close(sk1);
|
test_1_to_1_sendmsg.c | 76 int sk,sk1,pf_class,lstn_sk,acpt_sk,acpt1_sk, flag; local 102 sk1 = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); 239 test_connect(sk1, (struct sockaddr *) &lstn_addr, len); 241 test_sendmsg(sk1, &outmessage, flag, strlen(message)+1); 243 close(sk1); 344 sk1 = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); 348 count = sendmsg(sk1, &outmessage, flag); 360 test_shutdown(sk1, SHUT_RD); 363 count = sendmsg(sk1, &outmessage, flag); 373 close(sk1); [all...] |
test_1_to_1_sockopt.c | 85 int sk, sk1, sk2, acpt_sk, pf_class; local 222 sk1 = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); 236 test_getsockopt(sk1, SCTP_INITMSG, &ginmsg, &len); 245 test_setsockopt(sk1, SCTP_INITMSG, &sinmsg, sizeof(sinmsg)); 247 test_getsockopt(sk1, SCTP_INITMSG, &ginmsg, &len); 272 test_bind(sk1, (struct sockaddr *) &lstn_addr, sizeof(lstn_addr)); 273 test_listen(sk1, 10 ); 277 acpt_sk = test_accept(sk1, (struct sockaddr *)&addr, &len); 430 close(sk1);
|
test_1_to_1_addrs.c | 82 int lstn_sk,clnt_sk,acpt_sk,pf_class,sk1; local 199 sk1 = socket(pf_class, SOCK_STREAM, IPPROTO_IP); 200 error = sctp_getladdrs(sk1, 0, &laddrs); 257 error = sctp_getpaddrs(sk1, 0, &laddrs);
|
test_1_to_1_connect.c | 74 int sk1,clnt2_sk; local 89 sk1 = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); 221 error = connect(sk1, (const struct sockaddr *)&conn_addr, len); 230 close(sk1);
|
test_1_to_1_connectx.c | 74 int sk1,clnt2_sk; local 88 sk1 = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); 213 error = sctp_connectx(sk1, (struct sockaddr *)&conn_addr, 1, NULL); 222 close(sk1);
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/collator/ |
UCAConformanceTest.java | 205 RawCollationKey sk1 = new RawCollationKey(), sk2 = new RawCollationKey(); local 206 RawCollationKey oldSk = null, newSk = sk1; 273 if (oldSk == sk1) { 276 newSk = sk1;
|
CollationMiscTest.java | 3081 CollationKey sk1 = viescoll.getCollationKey(t); local 3112 CollationKey sk1 = videcoll.getCollationKey(t); local [all...] |
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/ |
UCAConformanceTest.java | 202 RawCollationKey sk1 = new RawCollationKey(), sk2 = new RawCollationKey(); local 203 RawCollationKey oldSk = null, newSk = sk1; 270 if (oldSk == sk1) { 273 newSk = sk1;
|
CollationMiscTest.java | 3078 CollationKey sk1 = viescoll.getCollationKey(t); local 3109 CollationKey sk1 = videcoll.getCollationKey(t); local [all...] |
/external/icu/icu4c/source/test/intltest/ |
ucaconf.cpp | 197 uint8_t sk1[1024], sk2[1024]; local 198 uint8_t *oldSk = NULL, *newSk = sk1; 286 newSk = sk1;
|
tsmthred.cpp | 866 uint8_t sk1[1024], sk2[1024]; local 867 uint8_t *oldSk = NULL, *newSk = sk1; 914 newSk = (newSk == sk1)?sk2:sk1; [all...] |
/external/icu/icu4c/source/test/cintltst/ |
cmsccoll.c | 5548 uint8_t sk1[500]; local 5655 uint8_t sk1[500]; local [all...] |