/NetX-Duo-v6.4.1/test/regression/bsd_test/ |
D | netx_bsd_tcp_2nd_bind_test.c | 108 struct sockaddr_in local_addr; in ntest_0_entry() local 128 local_addr.sin_family = AF_INET; in ntest_0_entry() 129 local_addr.sin_port = htons(12345); in ntest_0_entry() 130 local_addr.sin_addr.s_addr = INADDR_ANY; in ntest_0_entry() 132 ret = bind(sockfd1, (struct sockaddr*)&local_addr, sizeof(local_addr)); in ntest_0_entry() 141 local_addr.sin_family = AF_INET; in ntest_0_entry() 142 local_addr.sin_port = htons(12345); in ntest_0_entry() 143 local_addr.sin_addr.s_addr = INADDR_ANY; in ntest_0_entry() 145 ret = bind(sockfd2, (struct sockaddr*)&local_addr, sizeof(local_addr)); in ntest_0_entry()
|
D | netx_bsd_udp_bind_test.c | 167 struct sockaddr_in6 remote_addr, local_addr; in test_udp_server6_bind_to_ANY() local 177 memset(&local_addr, 0, sizeof(local_addr)); in test_udp_server6_bind_to_ANY() 178 local_addr.sin6_family = AF_INET6; in test_udp_server6_bind_to_ANY() 179 local_addr.sin6_port = htons(12345); in test_udp_server6_bind_to_ANY() 182 ret = bind(sockfd, (struct sockaddr*)&local_addr, sizeof(local_addr)); in test_udp_server6_bind_to_ANY() 228 struct sockaddr_in6 remote_addr, local_addr; in test_udp6_on_interface_address() local 241 memset(&local_addr, 0, sizeof(local_addr)); in test_udp6_on_interface_address() 242 local_addr.sin6_port = htons(12345); in test_udp6_on_interface_address() 243 local_addr.sin6_family = AF_INET6; in test_udp6_on_interface_address() 246 …local_addr.sin6_addr._S6_un._S6_u32[0] = htonl(ipv6_address_ip0[iface][address].nxd_ip_address.v6[… in test_udp6_on_interface_address() [all …]
|
D | netx_bsd_tcp_getsockname_without_bind_test.c | 123 struct sockaddr_in local_addr; in ntest_0_entry() local 147 address_length = sizeof(local_addr); in ntest_0_entry() 148 ret = getsockname(sockfd, (struct sockaddr*)&local_addr, &address_length); in ntest_0_entry() 151 else if(address_length != sizeof(local_addr)) in ntest_0_entry() 153 else if(local_addr.sin_family != AF_INET) in ntest_0_entry() 155 else if(local_addr.sin_port == 0) in ntest_0_entry() 175 address_length = sizeof(local_addr); in ntest_0_entry() 176 ret = getsockname(sockfd, (struct sockaddr*)&local_addr, &address_length); in ntest_0_entry() 179 else if(address_length != sizeof(local_addr)) in ntest_0_entry() 181 else if(local_addr.sin_family != AF_INET) in ntest_0_entry() [all …]
|
D | netx_bsd_tcp_rcvbuf_test.c | 267 struct sockaddr_in remote_addr, local_addr; in test_tcp_client4() local 282 local_addr.sin_family = AF_INET; in test_tcp_client4() 283 local_addr.sin_port = INADDR_ANY; in test_tcp_client4() 284 local_addr.sin_addr.s_addr = INADDR_ANY; in test_tcp_client4() 286 ret = bind(sockfd, (struct sockaddr*)&local_addr, sizeof(local_addr)); in test_tcp_client4() 350 struct sockaddr_in remote_addr, local_addr; in test_tcp_server4() local 363 local_addr.sin_family = AF_INET; in test_tcp_server4() 364 local_addr.sin_port = htons(12345); in test_tcp_server4() 365 local_addr.sin_addr.s_addr = INADDR_ANY; in test_tcp_server4() 367 ret = bind(sockfd, (struct sockaddr*)&local_addr, sizeof(local_addr)); in test_tcp_server4() [all …]
|
D | netx_bsd_tcp_basic_blocking_test.c | 268 struct sockaddr_in remote_addr, local_addr; in test_tcp_client4() local 282 local_addr.sin_family = AF_INET; in test_tcp_client4() 283 local_addr.sin_port = INADDR_ANY; in test_tcp_client4() 284 local_addr.sin_addr.s_addr = INADDR_ANY; in test_tcp_client4() 286 ret = bind(sockfd, (struct sockaddr*)&local_addr, sizeof(local_addr)); in test_tcp_client4() 346 struct sockaddr_in remote_addr, local_addr; in test_tcp_server4() local 358 local_addr.sin_family = AF_INET; in test_tcp_server4() 359 local_addr.sin_port = htons(12345); in test_tcp_server4() 360 local_addr.sin_addr.s_addr = INADDR_ANY; in test_tcp_server4() 362 ret = bind(sockfd, (struct sockaddr*)&local_addr, sizeof(local_addr)); in test_tcp_server4() [all …]
|
D | netx_bsd_tcp_bind_test.c | 202 struct sockaddr_in remote_addr,local_addr; in bsd_server4_helper_thread_test_2() local 215 local_addr.sin_family = AF_INET; in bsd_server4_helper_thread_test_2() 216 local_addr.sin_port = 0; in bsd_server4_helper_thread_test_2() 217 local_addr.sin_addr.s_addr = INADDR_ANY; in bsd_server4_helper_thread_test_2() 218 ret = bind(sockfd, (struct sockaddr*)&local_addr, sizeof(local_addr)); in bsd_server4_helper_thread_test_2() 222 address_length = sizeof(local_addr); in bsd_server4_helper_thread_test_2() 223 ret = getsockname(sockfd, (struct sockaddr*)&local_addr, &address_length); in bsd_server4_helper_thread_test_2() 228 if (local_addr.sin_port == 0) in bsd_server4_helper_thread_test_2() 238 local_addr.sin_family = AF_INET; in bsd_server4_helper_thread_test_2() 239 local_addr.sin_port = htons(12345); in bsd_server4_helper_thread_test_2() [all …]
|
D | netx_bsd_udp_basic_blocking_test.c | 126 struct sockaddr_in6 remote_addr, local_addr; in test_udp_server6() local 135 memset(&local_addr, 0, sizeof(local_addr)); in test_udp_server6() 136 local_addr.sin6_family = AF_INET6; in test_udp_server6() 137 local_addr.sin6_port = htons(12345); in test_udp_server6() 140 ret = bind(sockfd, (struct sockaddr*)&local_addr, sizeof(local_addr)); in test_udp_server6() 182 struct sockaddr_in remote_addr, local_addr; in test_udp_server4() local 192 local_addr.sin_family = AF_INET; in test_udp_server4() 193 local_addr.sin_port = htons(12345); in test_udp_server4() 194 local_addr.sin_addr.s_addr = INADDR_ANY; in test_udp_server4() 196 ret = bind(sockfd, (struct sockaddr*)&local_addr, sizeof(local_addr)); in test_udp_server4()
|
D | netx_bsd_udp_bind_connect_test.c | 167 struct sockaddr_in6 remote_addr, local_addr; in test_udp6_on_interface_address() local 175 memset(&local_addr, 0, sizeof(local_addr)); in test_udp6_on_interface_address() 176 local_addr.sin6_port = htons(12345); in test_udp6_on_interface_address() 177 local_addr.sin6_family = AF_INET6; in test_udp6_on_interface_address() 180 …local_addr.sin6_addr._S6_un._S6_u32[0] = htonl(ipv6_address_ip0[iface][address].nxd_ip_address.v6[… in test_udp6_on_interface_address() 181 …local_addr.sin6_addr._S6_un._S6_u32[1] = htonl(ipv6_address_ip0[iface][address].nxd_ip_address.v6[… in test_udp6_on_interface_address() 182 …local_addr.sin6_addr._S6_un._S6_u32[2] = htonl(ipv6_address_ip0[iface][address].nxd_ip_address.v6[… in test_udp6_on_interface_address() 183 …local_addr.sin6_addr._S6_un._S6_u32[3] = htonl(ipv6_address_ip0[iface][address].nxd_ip_address.v6[… in test_udp6_on_interface_address() 187 ret = bind(sockfd, (struct sockaddr*)&local_addr, sizeof(local_addr)); in test_udp6_on_interface_address() 222 struct sockaddr_in remote_addr, local_addr; in test_udp4_on_interface() local [all …]
|
D | netx_bsd_raw_bind_connect_test.c | 166 struct sockaddr_in6 remote_addr, local_addr; in test_raw6_on_interface_address() local 174 memset(&local_addr, 0, sizeof(local_addr)); in test_raw6_on_interface_address() 175 local_addr.sin6_port = htons(100); in test_raw6_on_interface_address() 176 local_addr.sin6_family = AF_INET6; in test_raw6_on_interface_address() 179 …local_addr.sin6_addr._S6_un._S6_u32[0] = htonl(ipv6_address_ip0[iface][address].nxd_ip_address.v6[… in test_raw6_on_interface_address() 180 …local_addr.sin6_addr._S6_un._S6_u32[1] = htonl(ipv6_address_ip0[iface][address].nxd_ip_address.v6[… in test_raw6_on_interface_address() 181 …local_addr.sin6_addr._S6_un._S6_u32[2] = htonl(ipv6_address_ip0[iface][address].nxd_ip_address.v6[… in test_raw6_on_interface_address() 182 …local_addr.sin6_addr._S6_un._S6_u32[3] = htonl(ipv6_address_ip0[iface][address].nxd_ip_address.v6[… in test_raw6_on_interface_address() 186 ret = bind(sockfd, (struct sockaddr*)&local_addr, sizeof(local_addr)); in test_raw6_on_interface_address() 221 struct sockaddr_in remote_addr, local_addr; in test_raw4_on_interface() local [all …]
|
D | netx_bsd_udp_basic_nonblocking_test.c | 127 struct sockaddr_in6 remote_addr, local_addr; in test_udp_server6() local 139 memset(&local_addr, 0, sizeof(local_addr)); in test_udp_server6() 140 local_addr.sin6_family = AF_INET6; in test_udp_server6() 141 local_addr.sin6_port = htons(12345); in test_udp_server6() 147 ret = bind(sockfd, (struct sockaddr*)&local_addr, sizeof(local_addr)); in test_udp_server6() 218 struct sockaddr_in remote_addr, local_addr; in test_udp_server4() local 234 local_addr.sin_family = AF_INET; in test_udp_server4() 235 local_addr.sin_port = htons(12345); in test_udp_server4() 236 local_addr.sin_addr.s_addr = INADDR_ANY; in test_udp_server4() 238 ret = bind(sockfd, (struct sockaddr*)&local_addr, sizeof(local_addr)); in test_udp_server4()
|
D | netx_bsd_udp_connect_test.c | 152 struct sockaddr_in remote_addr, local_addr; in test_udp4_connect() local 160 local_addr.sin_family = AF_INET; in test_udp4_connect() 161 local_addr.sin_port = htons(12345); in test_udp4_connect() 162 local_addr.sin_addr.s_addr = htonl(INADDR_ANY); in test_udp4_connect() 165 ret = bind(sockfd, (struct sockaddr*)&local_addr, sizeof(local_addr)); in test_udp4_connect() 198 struct sockaddr_in6 remote_addr, local_addr; in test_udp6_connect() local 206 memset(&local_addr, 0, sizeof(local_addr)); in test_udp6_connect() 207 local_addr.sin6_family = AF_INET6; in test_udp6_connect() 208 local_addr.sin6_port = htons(12345); in test_udp6_connect() 212 ret = bind(sockfd, (struct sockaddr*)&local_addr, sizeof(local_addr)); in test_udp6_connect()
|
D | netx_bsd_ioctl_nonblocking_test.c | 238 struct sockaddr_in remote_addr, local_addr; in test_tcp_blocking_server4() local 250 local_addr.sin_family = AF_INET; in test_tcp_blocking_server4() 251 local_addr.sin_port = htons(12345); in test_tcp_blocking_server4() 252 local_addr.sin_addr.s_addr = INADDR_ANY; in test_tcp_blocking_server4() 265 ret = bind(sockfd, (struct sockaddr*)&local_addr, sizeof(local_addr)); in test_tcp_blocking_server4() 287 address_length = sizeof(local_addr); in test_tcp_blocking_server4() 288 ret = getsockname(newsock, (struct sockaddr*)&local_addr, &address_length); in test_tcp_blocking_server4() 291 else if(address_length != sizeof(local_addr)) in test_tcp_blocking_server4() 293 else if(local_addr.sin_family != AF_INET) in test_tcp_blocking_server4() 295 else if(local_addr.sin_port != htons(12345)) in test_tcp_blocking_server4() [all …]
|
D | netx_bsd_getaddrinfo_test.c | 319 struct sockaddr_in local_addr; in test_tcp_client4() local 395 struct sockaddr_in remote_addr, local_addr; in test_tcp_server4() local 443 address_length = sizeof(local_addr); in test_tcp_server4() 444 ret = getsockname(newsock, (struct sockaddr*)&local_addr, &address_length); in test_tcp_server4() 447 else if(address_length != sizeof(local_addr)) in test_tcp_server4() 449 else if(local_addr.sin_family != AF_INET) in test_tcp_server4() 451 else if(local_addr.sin_port != htons(12345)) in test_tcp_server4() 453 else if(local_addr.sin_addr.s_addr != htonl(IP_ADDRESS(1, 2, 3, 4))) in test_tcp_server4() 536 struct sockaddr_in6 remote_addr, local_addr; in test_tcp_server6() local 590 address_length = sizeof(local_addr); in test_tcp_server6() [all …]
|
D | netx_bsd_tcp_udp_select_test.c | 134 struct sockaddr_in local_addr; in ntest_0_entry() local 153 local_addr.sin_family = AF_INET; in ntest_0_entry() 154 local_addr.sin_port = htons(12345); in ntest_0_entry() 155 local_addr.sin_addr.s_addr = INADDR_ANY; in ntest_0_entry() 162 if(bind(tcp_sockfd, (struct sockaddr*)&local_addr, sizeof(local_addr)) < 0) in ntest_0_entry() 172 if(bind(udp_sockfd, (struct sockaddr*)&local_addr, sizeof(local_addr)) < 0) in ntest_0_entry()
|
D | netx_bsd_udp_checksum_corrupt_test.c | 121 struct sockaddr_in remote_addr, local_addr; in ntest_0_entry() local 142 local_addr.sin_family = AF_INET; in ntest_0_entry() 143 local_addr.sin_port = htons(12345); in ntest_0_entry() 144 local_addr.sin_addr.s_addr = INADDR_ANY; in ntest_0_entry() 146 ret = bind(sockfd, (struct sockaddr*)&local_addr, sizeof(local_addr)); in ntest_0_entry()
|
D | netx_bsd_tcp_two_blocking_test.c | 134 struct sockaddr_in local_addr; in ntest_0_entry() local 154 local_addr.sin_family = AF_INET; in ntest_0_entry() 155 local_addr.sin_port = htons(12); in ntest_0_entry() 156 local_addr.sin_addr.s_addr = INADDR_ANY; in ntest_0_entry() 158 ret = bind(sockfd, (struct sockaddr*)&local_addr, sizeof(local_addr)); in ntest_0_entry()
|
D | netx_bsd_tcp_fionread_test.c | 180 struct sockaddr_in remote_addr, local_addr; in test_tcp_server4() local 193 local_addr.sin_family = AF_INET; in test_tcp_server4() 194 local_addr.sin_port = htons(12345); in test_tcp_server4() 195 local_addr.sin_addr.s_addr = INADDR_ANY; in test_tcp_server4() 197 ret = bind(sockfd, (struct sockaddr*)&local_addr, sizeof(local_addr)); in test_tcp_server4()
|
D | netx_bsd_multicast_test.c | 124 struct sockaddr_in remote_addr, local_addr; in test_udp_server4() local 136 local_addr.sin_family = AF_INET; in test_udp_server4() 137 local_addr.sin_port = htons(12345); in test_udp_server4() 138 local_addr.sin_addr.s_addr = INADDR_ANY; in test_udp_server4() 140 ret = bind(sockfd, (struct sockaddr*)&local_addr, sizeof(local_addr)); in test_udp_server4()
|
D | netx_bsd_tcp_getsockname_test.c | 246 struct sockaddr_in remote_addr, local_addr; in tcp_server_entry() local 259 local_addr.sin_family = AF_INET; in tcp_server_entry() 260 local_addr.sin_port = htons(port); in tcp_server_entry() 261 local_addr.sin_addr.s_addr = INADDR_ANY; in tcp_server_entry() 263 ret = bind(sockfd, (struct sockaddr*)&local_addr, sizeof(local_addr)); in tcp_server_entry()
|
D | netx_bsd_tcp_accept_blocking_test.c | 175 struct sockaddr_in remote_addr, local_addr; in test_tcp_server4() local 189 local_addr.sin_family = AF_INET; in test_tcp_server4() 190 local_addr.sin_port = htons(12345); in test_tcp_server4() 191 local_addr.sin_addr.s_addr = INADDR_ANY; in test_tcp_server4() 193 ret = bind(sockfd, (struct sockaddr*)&local_addr, sizeof(local_addr)); in test_tcp_server4()
|
D | netx_bsd_tcp_basic_nonblocking_test.c | 211 struct sockaddr_in remote_addr, local_addr; in test_tcp_server4() local 224 local_addr.sin_family = AF_INET; in test_tcp_server4() 225 local_addr.sin_port = htons(12345); in test_tcp_server4() 226 local_addr.sin_addr.s_addr = INADDR_ANY; in test_tcp_server4() 230 ret = bind(sockfd, (struct sockaddr*)&local_addr, sizeof(local_addr)); in test_tcp_server4() 315 struct sockaddr_in6 remote_addr, local_addr; in test_tcp_server6() local 328 memset(&local_addr, 0, sizeof(local_addr)); in test_tcp_server6() 329 local_addr.sin6_family = AF_INET6; in test_tcp_server6() 330 local_addr.sin6_port = htons(12346); in test_tcp_server6() 336 ret = bind(sockfd, (struct sockaddr*)&local_addr, sizeof(local_addr)); in test_tcp_server6()
|
D | netx_bsd_tcp_disconnect_test.c | 227 struct sockaddr_in remote_addr, local_addr; in test_tcp_server4() local 239 local_addr.sin_family = AF_INET; in test_tcp_server4() 240 local_addr.sin_port = htons(12345); in test_tcp_server4() 241 local_addr.sin_addr.s_addr = INADDR_ANY; in test_tcp_server4() 243 ret = bind(sockfd, (struct sockaddr*)&local_addr, sizeof(local_addr)); in test_tcp_server4()
|
D | netx_bsd_tcp_accept_blocking_timeout_test.c | 177 struct sockaddr_in remote_addr, local_addr; in test_tcp_server4() local 191 local_addr.sin_family = AF_INET; in test_tcp_server4() 192 local_addr.sin_port = htons(12345); in test_tcp_server4() 193 local_addr.sin_addr.s_addr = INADDR_ANY; in test_tcp_server4() 195 ret = bind(sockfd, (struct sockaddr*)&local_addr, sizeof(local_addr)); in test_tcp_server4()
|
D | netx_bsd_tcp_multiple_accept_test.c | 314 struct sockaddr_in remote_addr, local_addr; in tcp_server_entry() local 330 local_addr.sin_family = AF_INET; in tcp_server_entry() 331 local_addr.sin_port = htons(port); in tcp_server_entry() 332 local_addr.sin_addr.s_addr = INADDR_ANY; in tcp_server_entry() 334 ret = bind(sockfd, (struct sockaddr*)&local_addr, sizeof(local_addr)); in tcp_server_entry()
|
D | netx_bsd_tcp_accept_nonblocking_test.c | 197 struct sockaddr_in remote_addr, local_addr; in test_tcp_server4() local 211 local_addr.sin_family = AF_INET; in test_tcp_server4() 212 local_addr.sin_port = htons(12345); in test_tcp_server4() 213 local_addr.sin_addr.s_addr = INADDR_ANY; in test_tcp_server4() 217 ret = bind(sockfd, (struct sockaddr*)&local_addr, sizeof(local_addr)); in test_tcp_server4()
|