/external/ltp/utils/sctp/func_tests/ |
D | test_recvmsg.c | 64 int svr_sk, clt_sk; in main() local 87 svr_sk = test_socket(AF_INET, SOCK_SEQPACKET, IPPROTO_SCTP); in main() 88 test_bind(svr_sk, (struct sockaddr *)&svr_loop, sizeof(svr_loop)); in main() 91 test_listen(svr_sk, 1); in main() 98 test_enable_assoc_change(svr_sk); in main() 130 error = test_recvmsg(svr_sk, &inmessage, MSG_WAITALL); in main() 141 error = test_recvmsg(svr_sk, &inmessage, MSG_PEEK); in main() 147 error = test_recvmsg(svr_sk, &inmessage, MSG_WAITALL); in main() 155 close(svr_sk); in main()
|
D | test_connect.c | 60 int svr_sk, clt_sk1, clt_sk2, peeloff_sk; in main() local 90 svr_sk = test_socket(AF_INET, SOCK_SEQPACKET, IPPROTO_SCTP); in main() 91 test_bind(svr_sk, &svr_loop.sa, sizeof(svr_loop)); in main() 94 test_listen(svr_sk, 1); in main() 103 test_enable_assoc_change(svr_sk); in main() 155 error = test_recvmsg(svr_sk, &inmessage, MSG_WAITALL); in main() 179 error = test_recvmsg(svr_sk, &inmessage, MSG_WAITALL); in main() 190 peeloff_sk = test_sctp_peeloff(svr_sk, svr_associd1); in main() 203 error = connect(svr_sk, &clt_loop1.sa, sizeof(clt_loop1)); in main() 212 close(svr_sk); in main()
|
D | test_assoc_abort.c | 66 int svr_sk, clt_sk[MAX_CLIENTS]; in main() local 93 svr_sk = test_socket(AF_INET, SOCK_SEQPACKET, IPPROTO_SCTP); in main() 97 test_bind(svr_sk, &svr_loop.sa, sizeof(svr_loop)); in main() 100 test_enable_assoc_change(svr_sk); in main() 103 test_listen(svr_sk, 1); in main() 168 error = test_recvmsg(svr_sk, &inmessage, MSG_WAITALL); in main() 174 error = test_recvmsg(svr_sk, &inmessage, MSG_WAITALL); in main() 205 error = getsockopt(svr_sk, SOL_SCTP, SCTP_STATUS, in main() 213 test_sendmsg(svr_sk, &outmessage, 0, 0); in main() 219 error = getsockopt(svr_sk, SOL_SCTP, SCTP_STATUS, in main() [all …]
|
D | test_assoc_shutdown.c | 65 int svr_sk, clt_sk[MAX_CLIENTS]; in main() local 92 svr_sk = test_socket(AF_INET, SOCK_SEQPACKET, IPPROTO_SCTP); in main() 97 test_bind(svr_sk, &svr_loop.sa, sizeof(svr_loop)); in main() 100 test_enable_assoc_change(svr_sk); in main() 103 test_listen(svr_sk, 1); in main() 168 error = test_recvmsg(svr_sk, &inmessage, MSG_WAITALL); in main() 174 error = test_recvmsg(svr_sk, &inmessage, MSG_WAITALL); in main() 206 error = getsockopt(svr_sk, SOL_SCTP, SCTP_STATUS, in main() 214 test_sendmsg(svr_sk, &outmessage, 0, 0); in main() 220 error = getsockopt(svr_sk, SOL_SCTP, SCTP_STATUS, in main() [all …]
|
D | test_connectx.c | 69 int svr_sk, clt_sk1, clt_sk2, peeloff_sk; in main() local 123 svr_sk = test_socket(AF_INET, SOCK_SEQPACKET, IPPROTO_SCTP); in main() 124 test_bind(svr_sk, (struct sockaddr *)&svr_loop[0], sizeof(svr_loop[0])); in main() 125 test_bindx_add(svr_sk, (struct sockaddr *)&svr_loop[1], NUMADDR-1); in main() 128 test_listen(svr_sk, 1); in main() 139 test_enable_assoc_change(svr_sk); in main() 200 error = test_recvmsg(svr_sk, &inmessage, MSG_WAITALL); in main() 222 error = test_recvmsg(svr_sk, &inmessage, MSG_WAITALL); in main() 231 peeloff_sk = test_sctp_peeloff(svr_sk, svr_associd1); in main() 245 error = sctp_connectx(svr_sk, (struct sockaddr *)clt_loop1, NUMADDR, in main() [all …]
|
D | test_1_to_1_events.c | 55 int svr_sk, clt_sk,acpt_sk; in main() local 86 svr_sk = test_socket(AF_INET, SOCK_STREAM, IPPROTO_SCTP); in main() 87 test_bind(svr_sk, (struct sockaddr *) &svr_loop, sizeof(svr_loop)); in main() 90 test_listen(svr_sk, 3); in main() 99 test_setsockopt(svr_sk, SCTP_EVENTS, &event, len); in main() 105 acpt_sk = test_accept(svr_sk, (struct sockaddr *) &acpt_loop, &len); in main() 186 close(svr_sk); in main()
|
D | test_peeloff.c | 64 int svr_sk, clt_sk[MAX_CLIENTS], peeloff_sk[MAX_CLIENTS]; in main() local 102 svr_sk = test_socket(pf_class, SOCK_SEQPACKET, IPPROTO_SCTP); in main() 103 test_bind(svr_sk, &svr_loop.sa, sizeof(svr_loop)); in main() 106 test_enable_assoc_change(svr_sk); in main() 109 test_listen(svr_sk, 1); in main() 182 error = test_recvmsg(svr_sk, &inmessage, MSG_WAITALL); in main() 190 error = test_recvmsg(svr_sk, &inmessage, MSG_WAITALL); in main() 199 peeloff_sk[i] = test_sctp_peeloff(svr_sk, svr_associd[i]); in main() 277 close(svr_sk); in main()
|
D | test_getname.c | 62 int clt_sk, svr_sk, accept_sk; in main() local 91 svr_sk = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main() 92 test_bind(svr_sk, &svr_loop.sa, sizeof(svr_loop)); in main() 97 error = getsockname(svr_sk, (struct sockaddr *)&svr_local_addr, &len); in main() 106 error = getpeername(svr_sk, (struct sockaddr *)&svr_peer_addr, &len); in main() 114 test_listen(svr_sk, 5); in main() 149 accept_sk = test_accept(svr_sk, &accept_loop.sa, &len); in main() 273 close(svr_sk); in main()
|