Home
last modified time | relevance | path

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

/third_party/ltp/utils/sctp/func_tests/
Dtest_1_to_1_send.c70 int sk,sk1,pf_class,lstn_sk,acpt_sk,acpt1_sk, flag, count; in main() local
93 lstn_sk = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()
104 test_bind(lstn_sk, (struct sockaddr *) &lstn_addr, sizeof(lstn_addr)); in main()
107 test_listen(lstn_sk, 10); in main()
113 acpt_sk = test_accept(lstn_sk, (struct sockaddr *)&svr_addr, &len); in main()
144 count = send(lstn_sk, message, len_snd, flag); in main()
167 acpt1_sk = test_accept(lstn_sk, (struct sockaddr *)&conn_addr, &len); in main()
179 close(lstn_sk); in main()
184 lstn_sk = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()
189 test_bind(lstn_sk, (struct sockaddr *) &lstn_addr, sizeof(lstn_addr)); in main()
[all …]
Dtest_1_to_1_nonblock.c69 int sk,pf_class,lstn_sk,acpt_sk,flag,cflag,sflag; in main() local
96 lstn_sk = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()
107 test_bind(lstn_sk, (struct sockaddr *) &lstn_addr, sizeof(lstn_addr)); in main()
110 test_listen(lstn_sk, 10); in main()
116 sflag = fcntl(lstn_sk, F_GETFL, 0); in main()
121 error = fcntl(lstn_sk, F_SETFL, sflag | O_NONBLOCK); in main()
127 error = accept(lstn_sk, (struct sockaddr *)&svr_addr, &len); in main()
154 acpt_sk = accept(lstn_sk, (struct sockaddr *)&svr_addr, &len); in main()
210 close(lstn_sk); in main()
Dtest_1_to_1_sendmsg.c77 int sk,sk1,pf_class,lstn_sk,acpt_sk,acpt1_sk, flag; in main() local
108 lstn_sk = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()
119 test_bind(lstn_sk, (struct sockaddr *) &lstn_addr, sizeof(lstn_addr)); in main()
122 test_listen(lstn_sk, 10); in main()
128 acpt_sk = test_accept(lstn_sk, (struct sockaddr *)&svr_addr, &len); in main()
177 count = sendmsg(lstn_sk, &outmessage, flag); in main()
248 acpt1_sk = test_accept(lstn_sk, (struct sockaddr *)&conn_addr, &len); in main()
260 close(lstn_sk); in main()
265 lstn_sk = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()
276 test_bind(lstn_sk, (struct sockaddr *) &lstn_addr, sizeof(lstn_addr)); in main()
[all …]
Dtest_1_to_1_sendto.c66 int sk,sk1,pf_class,lstn_sk,acpt_sk,flag; in main() local
86 lstn_sk = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()
98 test_bind(lstn_sk, (struct sockaddr *) &lstn_addr, sizeof(lstn_addr)); in main()
101 test_listen(lstn_sk, 10); in main()
108 acpt_sk = test_accept(lstn_sk, (struct sockaddr *)&svr_addr, &len); in main()
151 acpt_sk = test_accept(lstn_sk, (struct sockaddr *)&svr_addr, &len); in main()
164 close(lstn_sk); in main()
Dtest_1_to_1_accept_close.c79 int sk,lstn_sk,clnt_sk[SK_MAX],acpt_sk,pf_class; in main() local
111 lstn_sk = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()
122 test_bind(lstn_sk, (struct sockaddr *) &lstn_addr, sizeof(lstn_addr)); in main()
125 test_listen(lstn_sk, SK_MAX ); in main()
160 error = accept(lstn_sk, (struct sockaddr *) -1, &len); in main()
180 acpt_sk = test_accept(lstn_sk, (struct sockaddr *) &acpt_addr, &len); in main()
198 acpt_sk = accept(lstn_sk, (struct sockaddr *) &acpt_addr, &len); in main()
213 new_sk[i] = test_accept(lstn_sk, (struct sockaddr *)&acpt_addr, in main()
Dtest_1_to_1_recvfrom.c69 int sk,pf_class,lstn_sk,acpt_sk, flag; in main() local
93 lstn_sk = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()
104 test_bind(lstn_sk, (struct sockaddr *) &lstn_addr, sizeof(lstn_addr)); in main()
107 test_listen(lstn_sk, 10); in main()
113 acpt_sk = test_accept(lstn_sk, (struct sockaddr *)&svr_addr, &len); in main()
158 count = recvfrom(lstn_sk, message_rcv, msg_count, flag, in main()
205 close(lstn_sk); in main()
Dtest_1_to_1_recvmsg.c69 int sk,pf_class,lstn_sk,acpt_sk; in main() local
96 lstn_sk = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()
107 test_bind(lstn_sk, (struct sockaddr *) &lstn_addr, sizeof(lstn_addr)); in main()
110 test_listen(lstn_sk, 10); in main()
116 acpt_sk = test_accept(lstn_sk, (struct sockaddr *)&svr_addr, &len); in main()
173 count = recvmsg(lstn_sk, &inmessage, flag); in main()
217 close(lstn_sk); in main()
Dtest_1_to_1_connectx.c74 int sk,lstn_sk,clnt_sk[SK_MAX],acpt_sk[SK_MAX],pf_class; in main() local
95 lstn_sk = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()
112 test_bind(lstn_sk, (struct sockaddr *) &lstn_addr, sizeof(lstn_addr)); in main()
115 test_listen(lstn_sk, SK_MAX-1); in main()
189 acpt_sk[i] = test_accept(lstn_sk, in main()
193 error = sctp_connectx(lstn_sk, (struct sockaddr *) &lstn_addr, 1, NULL); in main()
227 close(lstn_sk); in main()
Dtest_1_to_1_connect.c74 int sk,lstn_sk,clnt_sk[SK_MAX],acpt_sk[SK_MAX],pf_class; in main() local
96 lstn_sk = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()
113 test_bind(lstn_sk, (struct sockaddr *) &lstn_addr, sizeof(lstn_addr)); in main()
116 test_listen(lstn_sk, SK_MAX-1); in main()
197 acpt_sk[i] = test_accept(lstn_sk, in main()
201 error = connect(lstn_sk, (const struct sockaddr *) &lstn_addr, len); in main()
235 close(lstn_sk); in main()
Dtest_1_to_1_shutdown.c67 int lstn_sk; in main() local
94 lstn_sk = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()
96 test_bind(lstn_sk, (struct sockaddr *) &lstn_addr, sizeof(lstn_addr)); in main()
98 test_listen(lstn_sk, MAX_CLIENTS); in main()
108 acpt_sk[i] = test_accept(lstn_sk, (struct sockaddr *)&acpt_addr, in main()
228 close(lstn_sk); in main()
Dtest_1_to_1_addrs.c83 int lstn_sk,clnt_sk,acpt_sk,pf_class,sk1; in main() local
117 lstn_sk = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()
128 test_bind(lstn_sk, (struct sockaddr *) &lstn_addr, sizeof(lstn_addr)); in main()
131 test_listen(lstn_sk, 1); in main()
137 acpt_sk = test_accept(lstn_sk, (struct sockaddr *) &acpt_addr, &len); in main()
213 error = sctp_getladdrs(lstn_sk, 0, &laddrs); in main()