Home
last modified time | relevance | path

Searched refs:conn_addr (Results 1 – 14 of 14) sorted by relevance

/external/ltp/utils/sctp/func_tests/
Dtest_1_to_1_connect.c78 struct sockaddr_in conn_addr,lstn_addr,acpt_addr; in main() local
100 conn_addr.sin_family = AF_INET; in main()
101 conn_addr.sin_addr.s_addr = SCTP_IP_LOOPBACK; in main()
102 conn_addr.sin_port = htons(SCTP_TESTPORT_1); in main()
117 error = connect(-1, (const struct sockaddr *) &conn_addr, len); in main()
130 error = connect(fd, (const struct sockaddr *) &conn_addr, len); in main()
150 error = connect(sk, (const struct sockaddr *) &conn_addr, (len - 3)); in main()
158 conn_addr.sin_family = 9090; /*Assigning invalid address family*/ in main()
159 error = connect(sk, (const struct sockaddr *) &conn_addr, len); in main()
166 conn_addr.sin_family = AF_INET; in main()
[all …]
Dtest_1_to_1_connectx.c76 struct sockaddr_in conn_addr,lstn_addr,acpt_addr; in main() local
99 conn_addr.sin_family = AF_INET; in main()
100 conn_addr.sin_addr.s_addr = SCTP_IP_LOOPBACK; in main()
101 conn_addr.sin_port = htons(SCTP_TESTPORT_1); in main()
116 error = sctp_connectx(-1, (struct sockaddr *) &conn_addr, 1, NULL); in main()
124 error = sctp_connectx(0, (struct sockaddr *) &conn_addr, 1, NULL); in main()
142 error = sctp_connectx(sk, (struct sockaddr *) &conn_addr, 0, NULL); in main()
150 conn_addr.sin_family = 9090; /*Assigning invalid address family*/ in main()
151 error = sctp_connectx(sk, (struct sockaddr *) &conn_addr, 1, NULL); in main()
158 conn_addr.sin_family = AF_INET; in main()
[all …]
Dtest_1_to_1_sendmsg.c86 struct sockaddr_in conn_addr,lstn_addr,svr_addr; in main() local
106 conn_addr.sin_family = AF_INET; in main()
107 conn_addr.sin_addr.s_addr = SCTP_IP_LOOPBACK; in main()
108 conn_addr.sin_port = htons(SCTP_TESTPORT_1); in main()
122 test_connect(sk, (struct sockaddr *) &conn_addr, len); in main()
127 outmessage.msg_name = &conn_addr; in main()
128 outmessage.msg_namelen = sizeof(conn_addr); in main()
244 acpt1_sk = test_accept(lstn_sk, (struct sockaddr *)&conn_addr, &len); in main()
263 conn_addr.sin_family = AF_INET; in main()
264 conn_addr.sin_addr.s_addr = SCTP_IP_LOOPBACK; in main()
[all …]
Dtest_1_to_1_sendto.c70 struct sockaddr_in conn_addr,lstn_addr,svr_addr; in main() local
85 conn_addr.sin_family = AF_INET; in main()
86 conn_addr.sin_addr.s_addr = SCTP_IP_LOOPBACK; in main()
87 conn_addr.sin_port = htons(SCTP_TESTPORT_1); in main()
102 test_connect(sk, (struct sockaddr *) &conn_addr, len); in main()
110 (const struct sockaddr *) &conn_addr, len); in main()
140 (const struct sockaddr *) &conn_addr, len); in main()
153 test_sendto(sk, message, 5 , flag, (const struct sockaddr *)&conn_addr, in main()
Dtest_1_to_1_send.c75 struct sockaddr_in conn_addr,lstn_addr,svr_addr; in main() local
91 conn_addr.sin_family = AF_INET; in main()
92 conn_addr.sin_addr.s_addr = SCTP_IP_LOOPBACK; in main()
93 conn_addr.sin_port = htons(SCTP_TESTPORT_1); in main()
107 test_connect(sk, (struct sockaddr *) &conn_addr, len); in main()
163 acpt1_sk = test_accept(lstn_sk, (struct sockaddr *)&conn_addr, &len); in main()
190 conn_addr.sin_family = AF_INET; in main()
191 conn_addr.sin_addr.s_addr = SCTP_IP_LOOPBACK; in main()
192 conn_addr.sin_port = htons(SCTP_TESTPORT_1); in main()
196 test_connect(sk, (struct sockaddr *) &conn_addr, len); in main()
Dtest_1_to_1_accept_close.c84 struct sockaddr_in conn_addr,lstn_addr,acpt_addr; in main() local
109 conn_addr.sin_family = AF_INET; in main()
110 conn_addr.sin_addr.s_addr = SCTP_IP_LOOPBACK; in main()
111 conn_addr.sin_port = htons(SCTP_TESTPORT_1); in main()
128 test_connect(clnt_sk[i++], (struct sockaddr *) &conn_addr, len); in main()
163 test_connect(clnt_sk[i++], (struct sockaddr *) &conn_addr, len); in main()
173 test_connect(clnt_sk[i++], (struct sockaddr *) &conn_addr, len); in main()
191 test_connect(clnt_sk[i], (struct sockaddr *) &conn_addr, len); in main()
206 test_connect(clnt2_sk[i], (struct sockaddr *) &conn_addr, len); in main()
Dtest_1_to_1_initmsg_connect.c61 struct sockaddr_in conn_addr; in main() local
79 conn_addr.sin_family = AF_INET; in main()
80 conn_addr.sin_addr.s_addr = SCTP_IP_LOOPBACK; in main()
81 conn_addr.sin_port = htons(SCTP_TESTPORT_1); in main()
102 test_connect(sk1, (struct sockaddr *) &conn_addr, len); in main()
107 (struct sockaddr *)&conn_addr, len, in main()
Dtest_1_to_1_threads.c63 struct sockaddr_in conn_addr; variable
98 outmessage.msg_name = &conn_addr; in t_send()
99 outmessage.msg_namelen = sizeof(conn_addr); in t_send()
159 conn_addr.sin_family = AF_INET; in main()
160 conn_addr.sin_addr.s_addr = SCTP_IP_LOOPBACK; in main()
161 conn_addr.sin_port = htons(SCTP_TESTPORT_1); in main()
168 test_connect(client_sk,(struct sockaddr *)&conn_addr,len); in main()
Dtest_1_to_1_recvfrom.c75 struct sockaddr_in conn_addr,lstn_addr,svr_addr; in main() local
91 conn_addr.sin_family = AF_INET; in main()
92 conn_addr.sin_addr.s_addr = SCTP_IP_LOOPBACK; in main()
93 conn_addr.sin_port = htons(SCTP_TESTPORT_1); in main()
107 test_connect(sk, (struct sockaddr *) &conn_addr, len); in main()
Dtest_1_to_1_recvmsg.c80 struct sockaddr_in conn_addr,lstn_addr,svr_addr; in main() local
94 conn_addr.sin_family = AF_INET; in main()
95 conn_addr.sin_addr.s_addr = SCTP_IP_LOOPBACK; in main()
96 conn_addr.sin_port = htons(SCTP_TESTPORT_1); in main()
110 test_connect(sk, (struct sockaddr *) &conn_addr, len); in main()
Dtest_1_to_1_nonblock.c80 struct sockaddr_in conn_addr,lstn_addr,svr_addr; in main() local
94 conn_addr.sin_family = AF_INET; in main()
95 conn_addr.sin_addr.s_addr = SCTP_IP_LOOPBACK; in main()
96 conn_addr.sin_port = htons(SCTP_TESTPORT_1); in main()
142 error = connect(sk, (const struct sockaddr *) &conn_addr, len); in main()
Dtest_1_to_1_addrs.c98 struct sockaddr_in conn_addr,lstn_addr,acpt_addr; in main() local
115 conn_addr.sin_family = AF_INET; in main()
116 conn_addr.sin_addr.s_addr = SCTP_IP_LOOPBACK; in main()
117 conn_addr.sin_port = htons(SCTP_TESTPORT_1); in main()
131 test_connect(clnt_sk, (struct sockaddr *) &conn_addr, len); in main()
Dtest_1_to_1_sockopt.c87 struct sockaddr_in lstn_addr, conn_addr; in main() local
229 conn_addr.sin_family = AF_INET; in main()
230 conn_addr.sin_addr.s_addr = SCTP_IP_LOOPBACK; in main()
231 conn_addr.sin_port = htons(SCTP_TESTPORT_1); in main()
275 test_connect(sk2, (struct sockaddr *) &conn_addr, len); in main()
/external/ltp/testcases/kernel/syscalls/accept4/
Daccept4_01.c102 do_test(int lfd, struct sockaddr_in *conn_addr, in do_test() argument
117 if (connect(connfd, (struct sockaddr *)conn_addr, in do_test()
217 struct sockaddr_in conn_addr; in main() local
228 memset(&conn_addr, 0, sizeof(struct sockaddr_in)); in main()
229 conn_addr.sin_family = AF_INET; in main()
230 conn_addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK); in main()
231 conn_addr.sin_port = htons(port_num); in main()
235 do_test(lfd, &conn_addr, 0, 0); in main()
236 do_test(lfd, &conn_addr, SOCK_CLOEXEC, 0); in main()
237 do_test(lfd, &conn_addr, 0, SOCK_NONBLOCK); in main()
[all …]