Home
last modified time | relevance | path

Searched refs:clt_sk1 (Results 1 – 2 of 2) sorted by relevance

/external/ltp/utils/sctp/func_tests/
Dtest_connect.c60 int svr_sk, clt_sk1, clt_sk2, peeloff_sk; in main() local
97 clt_sk1 = test_socket(AF_INET, SOCK_SEQPACKET, IPPROTO_SCTP); in main()
98 test_bind(clt_sk1, &clt_loop1.sa, sizeof(clt_loop1)); in main()
104 test_enable_assoc_change(clt_sk1); in main()
108 flags = fcntl(clt_sk1, F_GETFL, 0); in main()
111 if (fcntl(clt_sk1, F_SETFL, flags | O_NONBLOCK) < 0) in main()
115 error = connect(clt_sk1, &svr_loop.sa, sizeof(svr_loop)); in main()
126 error = connect(clt_sk1, &svr_loop.sa, sizeof(svr_loop)); in main()
145 error = test_recvmsg(clt_sk1, &inmessage, MSG_WAITALL); in main()
213 close(clt_sk1); in main()
Dtest_connectx.c69 int svr_sk, clt_sk1, clt_sk2, peeloff_sk; in main() local
131 clt_sk1 = test_socket(AF_INET, SOCK_SEQPACKET, IPPROTO_SCTP); in main()
132 test_bind(clt_sk1, (struct sockaddr *)&clt_loop1[0], sizeof(clt_loop1)); in main()
133 test_bindx_add(clt_sk1, (struct sockaddr *)&clt_loop1[1], NUMADDR-1); in main()
140 test_enable_assoc_change(clt_sk1); in main()
144 flags = fcntl(clt_sk1, F_GETFL, 0); in main()
147 if (fcntl(clt_sk1, F_SETFL, flags | O_NONBLOCK) < 0) in main()
151 error = sctp_connectx(clt_sk1, (struct sockaddr *)svr_try, NUMADDR, in main()
163 error = sctp_connectx(clt_sk1, (struct sockaddr *)svr_try, NUMADDR, in main()
183 error = test_recvmsg(clt_sk1, &inmessage, MSG_WAITALL); in main()
[all …]