Home
last modified time | relevance | path

Searched refs:lstn_sk (Results 1 – 11 of 11) sorted by relevance

/external/ltp/utils/sctp/func_tests/
Dtest_1_to_1_send.c69 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 …]
Dtest_1_to_1_nonblock.c68 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()
Dtest_1_to_1_sendmsg.c76 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 …]
Dtest_1_to_1_sendto.c65 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()
Dtest_1_to_1_accept_close.c78 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()
Dtest_1_to_1_recvfrom.c68 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()
Dtest_1_to_1_recvmsg.c68 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()
Dtest_1_to_1_connect.c73 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()
Dtest_1_to_1_connectx.c73 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()
Dtest_1_to_1_shutdown.c66 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()
Dtest_1_to_1_addrs.c82 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()