/external/ltp/utils/sctp/func_tests/ |
D | test_1_to_1_send.c | 69 int sk,sk1,pf_class,lstn_sk,acpt_sk,acpt1_sk, flag, count; in main() local 89 lstn_sk = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main() 100 test_bind(lstn_sk, (struct sockaddr *) &lstn_addr, sizeof(lstn_addr)); in main() 103 test_listen(lstn_sk, 10); in main() 109 acpt_sk = test_accept(lstn_sk, (struct sockaddr *)&svr_addr, &len); in main() 140 count = send(lstn_sk, message, len_snd, flag); in main() 163 acpt1_sk = test_accept(lstn_sk, (struct sockaddr *)&conn_addr, &len); in main() 175 close(lstn_sk); in main() 180 lstn_sk = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main() 185 test_bind(lstn_sk, (struct sockaddr *) &lstn_addr, sizeof(lstn_addr)); in main() [all …]
|
D | test_1_to_1_nonblock.c | 68 int sk,pf_class,lstn_sk,acpt_sk,flag,cflag,sflag; in main() local 92 lstn_sk = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main() 103 test_bind(lstn_sk, (struct sockaddr *) &lstn_addr, sizeof(lstn_addr)); in main() 106 test_listen(lstn_sk, 10); in main() 112 sflag = fcntl(lstn_sk, F_GETFL, 0); in main() 117 error = fcntl(lstn_sk, F_SETFL, sflag | O_NONBLOCK); in main() 123 error = accept(lstn_sk, (struct sockaddr *)&svr_addr, &len); in main() 150 acpt_sk = accept(lstn_sk, (struct sockaddr *)&svr_addr, &len); in main() 206 close(lstn_sk); in main()
|
D | test_1_to_1_sendmsg.c | 76 int sk,sk1,pf_class,lstn_sk,acpt_sk,acpt1_sk, flag; in main() local 104 lstn_sk = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main() 115 test_bind(lstn_sk, (struct sockaddr *) &lstn_addr, sizeof(lstn_addr)); in main() 118 test_listen(lstn_sk, 10); in main() 124 acpt_sk = test_accept(lstn_sk, (struct sockaddr *)&svr_addr, &len); in main() 173 count = sendmsg(lstn_sk, &outmessage, flag); in main() 244 acpt1_sk = test_accept(lstn_sk, (struct sockaddr *)&conn_addr, &len); in main() 256 close(lstn_sk); in main() 261 lstn_sk = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main() 272 test_bind(lstn_sk, (struct sockaddr *) &lstn_addr, sizeof(lstn_addr)); in main() [all …]
|
D | test_1_to_1_sendto.c | 65 int sk,sk1,pf_class,lstn_sk,acpt_sk,flag; in main() local 82 lstn_sk = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main() 94 test_bind(lstn_sk, (struct sockaddr *) &lstn_addr, sizeof(lstn_addr)); in main() 97 test_listen(lstn_sk, 10); in main() 104 acpt_sk = test_accept(lstn_sk, (struct sockaddr *)&svr_addr, &len); in main() 147 acpt_sk = test_accept(lstn_sk, (struct sockaddr *)&svr_addr, &len); in main() 160 close(lstn_sk); in main()
|
D | test_1_to_1_accept_close.c | 78 int sk,lstn_sk,clnt_sk[SK_MAX],acpt_sk,pf_class; in main() local 107 lstn_sk = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main() 118 test_bind(lstn_sk, (struct sockaddr *) &lstn_addr, sizeof(lstn_addr)); in main() 121 test_listen(lstn_sk, SK_MAX ); in main() 156 error = accept(lstn_sk, (struct sockaddr *) -1, &len); in main() 176 acpt_sk = test_accept(lstn_sk, (struct sockaddr *) &acpt_addr, &len); in main() 194 acpt_sk = accept(lstn_sk, (struct sockaddr *) &acpt_addr, &len); in main() 209 new_sk[i] = test_accept(lstn_sk, (struct sockaddr *)&acpt_addr, in main()
|
D | test_1_to_1_recvfrom.c | 68 int sk,pf_class,lstn_sk,acpt_sk, flag; in main() local 89 lstn_sk = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main() 100 test_bind(lstn_sk, (struct sockaddr *) &lstn_addr, sizeof(lstn_addr)); in main() 103 test_listen(lstn_sk, 10); in main() 109 acpt_sk = test_accept(lstn_sk, (struct sockaddr *)&svr_addr, &len); in main() 154 count = recvfrom(lstn_sk, message_rcv, msg_count, flag, in main() 201 close(lstn_sk); in main()
|
D | test_1_to_1_recvmsg.c | 68 int sk,pf_class,lstn_sk,acpt_sk; in main() local 92 lstn_sk = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main() 103 test_bind(lstn_sk, (struct sockaddr *) &lstn_addr, sizeof(lstn_addr)); in main() 106 test_listen(lstn_sk, 10); in main() 112 acpt_sk = test_accept(lstn_sk, (struct sockaddr *)&svr_addr, &len); in main() 169 count = recvmsg(lstn_sk, &inmessage, flag); in main() 213 close(lstn_sk); in main()
|
D | test_1_to_1_connect.c | 73 int sk,lstn_sk,clnt_sk[SK_MAX],acpt_sk[SK_MAX],pf_class; in main() local 92 lstn_sk = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main() 109 test_bind(lstn_sk, (struct sockaddr *) &lstn_addr, sizeof(lstn_addr)); in main() 112 test_listen(lstn_sk, SK_MAX-1); in main() 193 acpt_sk[i] = test_accept(lstn_sk, in main() 197 error = connect(lstn_sk, (const struct sockaddr *) &lstn_addr, len); in main() 231 close(lstn_sk); in main()
|
D | test_1_to_1_connectx.c | 73 int sk,lstn_sk,clnt_sk[SK_MAX],acpt_sk[SK_MAX],pf_class; in main() local 91 lstn_sk = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main() 108 test_bind(lstn_sk, (struct sockaddr *) &lstn_addr, sizeof(lstn_addr)); in main() 111 test_listen(lstn_sk, SK_MAX-1); in main() 185 acpt_sk[i] = test_accept(lstn_sk, in main() 189 error = sctp_connectx(lstn_sk, (struct sockaddr *) &lstn_addr, 1, NULL); in main() 223 close(lstn_sk); in main()
|
D | test_1_to_1_shutdown.c | 66 int lstn_sk; in main() local 90 lstn_sk = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main() 92 test_bind(lstn_sk, (struct sockaddr *) &lstn_addr, sizeof(lstn_addr)); in main() 94 test_listen(lstn_sk, MAX_CLIENTS); in main() 104 acpt_sk[i] = test_accept(lstn_sk, (struct sockaddr *)&acpt_addr, in main() 224 close(lstn_sk); in main()
|
D | test_1_to_1_addrs.c | 82 int lstn_sk,clnt_sk,acpt_sk,pf_class,sk1; in main() local 113 lstn_sk = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main() 124 test_bind(lstn_sk, (struct sockaddr *) &lstn_addr, sizeof(lstn_addr)); in main() 127 test_listen(lstn_sk, 1); in main() 133 acpt_sk = test_accept(lstn_sk, (struct sockaddr *) &acpt_addr, &len); in main() 209 error = sctp_getladdrs(lstn_sk, 0, &laddrs); in main()
|