/third_party/ltp/utils/sctp/func_tests/ |
D | test_recvmsg.c | 65 int svr_sk, clt_sk; in main() local 91 svr_sk = test_socket(AF_INET, SOCK_SEQPACKET, IPPROTO_SCTP); in main() 92 test_bind(svr_sk, (struct sockaddr *)&svr_loop, sizeof(svr_loop)); in main() 95 test_listen(svr_sk, 1); in main() 102 test_enable_assoc_change(svr_sk); in main() 134 error = test_recvmsg(svr_sk, &inmessage, MSG_WAITALL); in main() 145 error = test_recvmsg(svr_sk, &inmessage, MSG_PEEK); in main() 151 error = test_recvmsg(svr_sk, &inmessage, MSG_WAITALL); in main() 159 close(svr_sk); in main()
|
D | test_connect.c | 61 int svr_sk, clt_sk1, clt_sk2, peeloff_sk; in main() local 94 svr_sk = test_socket(AF_INET, SOCK_SEQPACKET, IPPROTO_SCTP); in main() 95 test_bind(svr_sk, &svr_loop.sa, sizeof(svr_loop)); in main() 98 test_listen(svr_sk, 1); in main() 107 test_enable_assoc_change(svr_sk); in main() 159 error = test_recvmsg(svr_sk, &inmessage, MSG_WAITALL); in main() 183 error = test_recvmsg(svr_sk, &inmessage, MSG_WAITALL); in main() 194 peeloff_sk = test_sctp_peeloff(svr_sk, svr_associd1); in main() 207 error = connect(svr_sk, &clt_loop1.sa, sizeof(clt_loop1)); in main() 216 close(svr_sk); in main()
|
D | test_assoc_abort.c | 67 int svr_sk, clt_sk[MAX_CLIENTS]; in main() local 97 svr_sk = test_socket(AF_INET, SOCK_SEQPACKET, IPPROTO_SCTP); in main() 101 test_bind(svr_sk, &svr_loop.sa, sizeof(svr_loop)); in main() 104 test_enable_assoc_change(svr_sk); in main() 107 test_listen(svr_sk, 1); in main() 172 error = test_recvmsg(svr_sk, &inmessage, MSG_WAITALL); in main() 178 error = test_recvmsg(svr_sk, &inmessage, MSG_WAITALL); in main() 209 error = getsockopt(svr_sk, SOL_SCTP, SCTP_STATUS, in main() 217 test_sendmsg(svr_sk, &outmessage, 0, 0); in main() 223 error = getsockopt(svr_sk, SOL_SCTP, SCTP_STATUS, in main() [all …]
|
D | test_assoc_shutdown.c | 66 int svr_sk, clt_sk[MAX_CLIENTS]; in main() local 96 svr_sk = test_socket(AF_INET, SOCK_SEQPACKET, IPPROTO_SCTP); in main() 101 test_bind(svr_sk, &svr_loop.sa, sizeof(svr_loop)); in main() 104 test_enable_assoc_change(svr_sk); in main() 107 test_listen(svr_sk, 1); in main() 172 error = test_recvmsg(svr_sk, &inmessage, MSG_WAITALL); in main() 178 error = test_recvmsg(svr_sk, &inmessage, MSG_WAITALL); in main() 210 error = getsockopt(svr_sk, SOL_SCTP, SCTP_STATUS, in main() 218 test_sendmsg(svr_sk, &outmessage, 0, 0); in main() 224 error = getsockopt(svr_sk, SOL_SCTP, SCTP_STATUS, in main() [all …]
|
D | test_connectx.c | 70 int svr_sk, clt_sk1, clt_sk2, peeloff_sk; in main() local 127 svr_sk = test_socket(AF_INET, SOCK_SEQPACKET, IPPROTO_SCTP); in main() 128 test_bind(svr_sk, (struct sockaddr *)&svr_loop[0], sizeof(svr_loop[0])); in main() 129 test_bindx_add(svr_sk, (struct sockaddr *)&svr_loop[1], NUMADDR-1); in main() 132 test_listen(svr_sk, 1); in main() 143 test_enable_assoc_change(svr_sk); in main() 204 error = test_recvmsg(svr_sk, &inmessage, MSG_WAITALL); in main() 226 error = test_recvmsg(svr_sk, &inmessage, MSG_WAITALL); in main() 235 peeloff_sk = test_sctp_peeloff(svr_sk, svr_associd1); in main() 249 error = sctp_connectx(svr_sk, (struct sockaddr *)clt_loop1, NUMADDR, in main() [all …]
|
D | test_1_to_1_events.c | 56 int svr_sk, clt_sk,acpt_sk; in main() local 90 svr_sk = test_socket(AF_INET, SOCK_STREAM, IPPROTO_SCTP); in main() 91 test_bind(svr_sk, (struct sockaddr *) &svr_loop, sizeof(svr_loop)); in main() 94 test_listen(svr_sk, 3); in main() 103 test_setsockopt(svr_sk, SCTP_EVENTS, &event, len); in main() 109 acpt_sk = test_accept(svr_sk, (struct sockaddr *) &acpt_loop, &len); in main() 190 close(svr_sk); in main()
|
D | test_peeloff.c | 65 int svr_sk, clt_sk[MAX_CLIENTS], peeloff_sk[MAX_CLIENTS]; in main() local 106 svr_sk = test_socket(pf_class, SOCK_SEQPACKET, IPPROTO_SCTP); in main() 107 test_bind(svr_sk, &svr_loop.sa, sizeof(svr_loop)); in main() 110 test_enable_assoc_change(svr_sk); in main() 113 test_listen(svr_sk, 1); in main() 186 error = test_recvmsg(svr_sk, &inmessage, MSG_WAITALL); in main() 194 error = test_recvmsg(svr_sk, &inmessage, MSG_WAITALL); in main() 203 peeloff_sk[i] = test_sctp_peeloff(svr_sk, svr_associd[i]); in main() 281 close(svr_sk); in main()
|
D | test_getname.c | 63 int clt_sk, svr_sk, accept_sk; in main() local 95 svr_sk = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main() 96 test_bind(svr_sk, &svr_loop.sa, sizeof(svr_loop)); in main() 101 error = getsockname(svr_sk, (struct sockaddr *)&svr_local_addr, &len); in main() 110 error = getpeername(svr_sk, (struct sockaddr *)&svr_peer_addr, &len); in main() 118 test_listen(svr_sk, 5); in main() 153 accept_sk = test_accept(svr_sk, &accept_loop.sa, &len); in main() 277 close(svr_sk); in main()
|