/external/ltp/utils/sctp/func_tests/ |
D | test_1_to_1_addrs.c | 98 struct sockaddr_in conn_addr,lstn_addr,acpt_addr; in main() local 119 lstn_addr.sin_family = AF_INET; in main() 120 lstn_addr.sin_addr.s_addr = SCTP_IP_LOOPBACK; in main() 121 lstn_addr.sin_port = htons(SCTP_TESTPORT_1); in main() 124 test_bind(lstn_sk, (struct sockaddr *) &lstn_addr, sizeof(lstn_addr)); in main() 148 outmessage.msg_name = &lstn_addr; in main() 149 outmessage.msg_namelen = sizeof(lstn_addr); in main() 215 if (addr->sin_port != lstn_addr.sin_port || in main() 216 addr->sin_family != lstn_addr.sin_family || in main() 217 addr->sin_addr.s_addr != lstn_addr.sin_addr.s_addr) in main()
|
D | test_1_to_1_initmsg_connect.c | 60 struct sockaddr_in lstn_addr, acpt_addr; in main() local 83 lstn_addr.sin_family = AF_INET; in main() 84 lstn_addr.sin_addr.s_addr = SCTP_IP_LOOPBACK; in main() 85 lstn_addr.sin_port = htons(SCTP_TESTPORT_1); in main() 87 test_bind(sk3, (struct sockaddr *) &lstn_addr, sizeof(lstn_addr)); in main()
|
D | test_1_to_1_send.c | 75 struct sockaddr_in conn_addr,lstn_addr,svr_addr; in main() local 95 lstn_addr.sin_family = AF_INET; in main() 96 lstn_addr.sin_addr.s_addr = SCTP_IP_LOOPBACK; in main() 97 lstn_addr.sin_port = htons(SCTP_TESTPORT_1); in main() 100 test_bind(lstn_sk, (struct sockaddr *) &lstn_addr, sizeof(lstn_addr)); in main() 157 test_connect(sk1, (struct sockaddr *) &lstn_addr, len); in main() 185 test_bind(lstn_sk, (struct sockaddr *) &lstn_addr, sizeof(lstn_addr)); in main()
|
D | test_1_to_1_connect.c | 78 struct sockaddr_in conn_addr,lstn_addr,acpt_addr; in main() local 104 lstn_addr.sin_family = AF_INET; in main() 105 lstn_addr.sin_addr.s_addr = SCTP_IP_LOOPBACK; in main() 106 lstn_addr.sin_port = htons(SCTP_TESTPORT_1); in main() 109 test_bind(lstn_sk, (struct sockaddr *) &lstn_addr, sizeof(lstn_addr)); in main() 197 error = connect(lstn_sk, (const struct sockaddr *) &lstn_addr, len); in main() 206 error = connect(acpt_sk[i], (const struct sockaddr *) &lstn_addr, len); in main()
|
D | test_1_to_1_connectx.c | 76 struct sockaddr_in conn_addr,lstn_addr,acpt_addr; in main() local 103 lstn_addr.sin_family = AF_INET; in main() 104 lstn_addr.sin_addr.s_addr = SCTP_IP_LOOPBACK; in main() 105 lstn_addr.sin_port = htons(SCTP_TESTPORT_1); in main() 108 test_bind(lstn_sk, (struct sockaddr *) &lstn_addr, sizeof(lstn_addr)); in main() 189 error = sctp_connectx(lstn_sk, (struct sockaddr *) &lstn_addr, 1, NULL); in main() 198 error = sctp_connectx(acpt_sk[i], (struct sockaddr *) &lstn_addr, 1, NULL); in main()
|
D | test_1_to_1_shutdown.c | 67 struct sockaddr_in lstn_addr, acpt_addr; in main() local 85 lstn_addr.sin_family = AF_INET; in main() 86 lstn_addr.sin_addr.s_addr = SCTP_IP_LOOPBACK; in main() 87 lstn_addr.sin_port = htons(SCTP_TESTPORT_1); in main() 92 test_bind(lstn_sk, (struct sockaddr *) &lstn_addr, sizeof(lstn_addr)); in main() 98 test_connect(clnt_sk[i], (struct sockaddr *)&lstn_addr, in main() 99 sizeof(lstn_addr)); in main()
|
D | test_1_to_1_sendmsg.c | 86 struct sockaddr_in conn_addr,lstn_addr,svr_addr; in main() local 110 lstn_addr.sin_family = AF_INET; in main() 111 lstn_addr.sin_addr.s_addr = SCTP_IP_LOOPBACK; in main() 112 lstn_addr.sin_port = htons(SCTP_TESTPORT_1); in main() 115 test_bind(lstn_sk, (struct sockaddr *) &lstn_addr, sizeof(lstn_addr)); in main() 239 test_connect(sk1, (struct sockaddr *) &lstn_addr, len); in main() 267 lstn_addr.sin_family = AF_INET; in main() 268 lstn_addr.sin_addr.s_addr = SCTP_IP_LOOPBACK; in main() 269 lstn_addr.sin_port = htons(SCTP_TESTPORT_1); in main() 272 test_bind(lstn_sk, (struct sockaddr *) &lstn_addr, sizeof(lstn_addr)); in main()
|
D | test_1_to_1_sendto.c | 70 struct sockaddr_in conn_addr,lstn_addr,svr_addr; in main() local 89 lstn_addr.sin_family = AF_INET; in main() 90 lstn_addr.sin_addr.s_addr = SCTP_IP_LOOPBACK; in main() 91 lstn_addr.sin_port = htons(SCTP_TESTPORT_1); in main() 94 test_bind(lstn_sk, (struct sockaddr *) &lstn_addr, sizeof(lstn_addr)); in main()
|
D | test_1_to_1_recvfrom.c | 75 struct sockaddr_in conn_addr,lstn_addr,svr_addr; in main() local 95 lstn_addr.sin_family = AF_INET; in main() 96 lstn_addr.sin_addr.s_addr = SCTP_IP_LOOPBACK; in main() 97 lstn_addr.sin_port = htons(SCTP_TESTPORT_1); in main() 100 test_bind(lstn_sk, (struct sockaddr *) &lstn_addr, sizeof(lstn_addr)); in main()
|
D | test_1_to_1_recvmsg.c | 80 struct sockaddr_in conn_addr,lstn_addr,svr_addr; in main() local 98 lstn_addr.sin_family = AF_INET; in main() 99 lstn_addr.sin_addr.s_addr = SCTP_IP_LOOPBACK; in main() 100 lstn_addr.sin_port = htons(SCTP_TESTPORT_1); in main() 103 test_bind(lstn_sk, (struct sockaddr *) &lstn_addr, sizeof(lstn_addr)); in main()
|
D | test_1_to_1_nonblock.c | 80 struct sockaddr_in conn_addr,lstn_addr,svr_addr; in main() local 98 lstn_addr.sin_family = AF_INET; in main() 99 lstn_addr.sin_addr.s_addr = SCTP_IP_LOOPBACK; in main() 100 lstn_addr.sin_port = htons(SCTP_TESTPORT_1); in main() 103 test_bind(lstn_sk, (struct sockaddr *) &lstn_addr, sizeof(lstn_addr)); in main()
|
D | test_1_to_1_accept_close.c | 84 struct sockaddr_in conn_addr,lstn_addr,acpt_addr; in main() local 113 lstn_addr.sin_family = AF_INET; in main() 114 lstn_addr.sin_addr.s_addr = SCTP_IP_LOOPBACK; in main() 115 lstn_addr.sin_port = htons(SCTP_TESTPORT_1); in main() 118 test_bind(lstn_sk, (struct sockaddr *) &lstn_addr, sizeof(lstn_addr)); in main()
|
D | test_1_to_1_sockopt.c | 87 struct sockaddr_in lstn_addr, conn_addr; in main() local 225 lstn_addr.sin_family = AF_INET; in main() 226 lstn_addr.sin_addr.s_addr = SCTP_IP_LOOPBACK; in main() 227 lstn_addr.sin_port = htons(SCTP_TESTPORT_1); in main() 272 test_bind(sk1, (struct sockaddr *) &lstn_addr, sizeof(lstn_addr)); in main() 378 if(htons(gaddr->sin_port) != lstn_addr.sin_port && in main() 379 gaddr->sin_family != lstn_addr.sin_family && in main() 380 gaddr->sin_addr.s_addr != lstn_addr.sin_addr.s_addr) in main()
|
D | test_1_to_1_threads.c | 145 struct sockaddr_in lstn_addr; in main() local 155 lstn_addr.sin_family = AF_INET; in main() 156 lstn_addr.sin_addr.s_addr = SCTP_IP_LOOPBACK; in main() 157 lstn_addr.sin_port = htons(SCTP_TESTPORT_1); in main() 163 test_bind(server_sk, (struct sockaddr *)&lstn_addr, in main()
|