Home
last modified time | relevance | path

Searched refs:sin_port (Results 1 – 25 of 40) sorted by relevance

12

/NetX-Duo-v6.2.1/test/regression/bsd_test/
Dnetx_bsd_tcp_sendto_recvfrom_test.c142 remote_addr.sin_port = htons(12); in test_tcp_client4()
158 (remote_addr.sin_port != htons(12)) || in test_tcp_client4()
172 (remote_addr.sin_port != htons(12)) || in test_tcp_client4()
187 (remote_addr.sin_port != htons(12)) || in test_tcp_client4()
194 remote_addr.sin_port = htons(12); in test_tcp_client4()
205 (remote_addr.sin_port != htons(12)) || in test_tcp_client4()
212 remote_addr.sin_port = htons(13); in test_tcp_client4()
223 (remote_addr.sin_port != htons(12)) || in test_tcp_client4()
Dnetx_bsd_tcp_getsockname_without_bind_test.c141 remote_addr.sin_port = htons(13); in ntest_0_entry()
155 else if(local_addr.sin_port == 0) in ntest_0_entry()
169 remote_addr.sin_port = htons(12); in ntest_0_entry()
183 else if(local_addr.sin_port != htons(client_port)) in ntest_0_entry()
Dnetx_bsd_tcp_2nd_bind_test.c129 local_addr.sin_port = htons(12345); in ntest_0_entry()
142 local_addr.sin_port = htons(12345); in ntest_0_entry()
Dnetx_bsd_udp_bind_test.c309 local_addr.sin_port = 0; in test_udp_server4_bind_to_ANY()
321 if (local_addr.sin_port == 0) in test_udp_server4_bind_to_ANY()
330 local_addr.sin_port = htons(12345); in test_udp_server4_bind_to_ANY()
348 (remote_addr.sin_port != htons(54321))) in test_udp_server4_bind_to_ANY()
386 local_addr.sin_port = htons(12345); in test_udp_server4_bind_to_AF_INET()
404 (remote_addr.sin_port != htons(54321))) in test_udp_server4_bind_to_AF_INET()
549 local_addr.sin_port = htons(12345); in test_udp4_on_interface()
568 (remote_addr.sin_port != htons(54321))) in test_udp4_on_interface()
606 local_addr.sin_port = htons(12345); in test_udp4_receive_multiple()
632 (remote_addr.sin_port != htons(54321))) in test_udp4_receive_multiple()
Dnetx_bsd_tcp_basic_blocking_test.c283 local_addr.sin_port = INADDR_ANY; in test_tcp_client4()
291 remote_addr.sin_port = htons(12); in test_tcp_client4()
359 local_addr.sin_port = htons(12345); in test_tcp_server4()
392 else if(local_addr.sin_port != htons(12345)) in test_tcp_server4()
593 local_addr.sin_port = htons(12345); in close_before_accept_test()
610 remote_addr.sin_port = htons(12345); in close_before_accept_test()
709 remote_addr.sin_port = htons(13); in ntest_0_entry()
729 remote_addr.sin_port = htons(13); in ntest_0_entry()
Dnetx_bsd_tcp_rcvbuf_test.c283 local_addr.sin_port = INADDR_ANY; in test_tcp_client4()
291 remote_addr.sin_port = htons(12); in test_tcp_client4()
364 local_addr.sin_port = htons(12345); in test_tcp_server4()
401 else if(local_addr.sin_port != htons(12345)) in test_tcp_server4()
612 local_addr.sin_port = htons(12345); in close_before_accept_test()
629 remote_addr.sin_port = htons(12345); in close_before_accept_test()
728 remote_addr.sin_port = htons(13); in ntest_0_entry()
748 remote_addr.sin_port = htons(13); in ntest_0_entry()
Dnetx_bsd_tcp_clients_shared_port_test.c267 echoClientAddr.sin_port = htons(CLIENT_PORT); in thread_client_entry()
272 echoServAddr.sin_port = htons(76); in thread_client_entry()
296 if (localAddr.sin_port != htons(CLIENT_PORT)) in thread_client_entry()
Dnetx_bsd_ioctl_nonblocking_test.c251 local_addr.sin_port = htons(12345); in test_tcp_blocking_server4()
295 else if(local_addr.sin_port != htons(12345)) in test_tcp_blocking_server4()
357 local_addr.sin_port = htons(12345); in test_tcp_server4()
579 remote_addr.sin_port = htons(12); in test_tcp_client4()
850 remote_addr.sin_port = htons(13); in ntest_0_entry()
922 remote_addr.sin_port = htons(13); in ntest_0_entry()
Dnetx_bsd_multicast_test.c137 local_addr.sin_port = htons(12345); in test_udp_server4()
197 (remote_addr.sin_port != htons(54321))) in test_udp_server4()
Dnetx_bsd_raw_tx_test.c233 remote_addr.sin_port = htons(5); in test_raw_ipv4_sendto()
371 remote_addr.sin_port = htons(5); in test_raw_ipv4_send()
Dnetx_bsd_tcp_servers_shared_port_test.c257 echoServAddr.sin_port = htons(SERVER_PORT); in thread_server_entry()
302 if (localAddr.sin_port != htons(SERVER_PORT)) in thread_server_entry()
Dnetx_bsd_getaddrinfo_test.c451 else if(local_addr.sin_port != htons(12345)) in test_tcp_server4()
663 local_addr.sin_port = htons(12345); in close_before_accept_test()
680 remote_addr.sin_port = htons(12345); in close_before_accept_test()
779 remote_addr.sin_port = htons(13); in ntest_0_entry()
799 remote_addr.sin_port = htons(13); in ntest_0_entry()
Dnetx_bsd_tcp_disconnect_test.c205 remote_addr.sin_port = htons(12); in test_tcp_client4()
240 local_addr.sin_port = htons(12345); in test_tcp_server4()
Dnetx_bsd_udp_basic_blocking_test.c193 local_addr.sin_port = htons(12345); in test_udp_server4()
211 (remote_addr.sin_port != htons(54321))) in test_udp_server4()
Dnetx_bsd_tcp_basic_nonblocking_test.c225 local_addr.sin_port = htons(12345); in test_tcp_server4()
443 remote_addr.sin_port = htons(12); in test_tcp_client4()
706 remote_addr.sin_port = htons(13); in ntest_0_entry()
778 remote_addr.sin_port = htons(13); in ntest_0_entry()
Dnetx_bsd_raw_ping_test.c158 remote_addr.sin_port = 0; in ntest_0_entry()
Dnetx_bsd_udp_basic_nonblocking_test.c235 local_addr.sin_port = htons(12345); in test_udp_server4()
280 (remote_addr.sin_port != htons(54321))) in test_udp_server4()
Dnetx_bsd_tcp_clients_share_port_test.c730 echoClientAddr.sin_port = htons(CLIENT_PORT); in thread_client_entry()
736 echoServAddr.sin_port = htons(SERVER_PORT); in thread_client_entry()
Dnetx_bsd_tcp_bind_test.c216 local_addr.sin_port = 0; in bsd_server4_helper_thread_test_2()
228 if (local_addr.sin_port == 0) in bsd_server4_helper_thread_test_2()
239 local_addr.sin_port = htons(12345); in bsd_server4_helper_thread_test_2()
Dnetx_bsd_udp_checksum_corrupt_test.c143 local_addr.sin_port = htons(12345); in ntest_0_entry()
Dnetx_bsd_tcp_servers_share_port_test.c239 serverAddr.sin_port = htons(SERVER_PORT); in thread_server_entry()
830 echoServAddr.sin_port = htons(SERVER_PORT); in thread_client_entry()
Dnetx_bsd_udp_connect_test.c161 local_addr.sin_port = htons(12345); in test_udp4_connect()
170 remote_addr.sin_port = htons(54321); in test_udp4_connect()
Dnetx_bsd_raw_bind_connect_test.c230 local_addr.sin_port = htons(100); in test_raw4_on_interface()
238 remote_addr.sin_port = htons(100); in test_raw4_on_interface()
/NetX-Duo-v6.2.1/samples/
Ddemo_bsd_udp.c156 echoServAddr.sin_port = htons(SERVER_PORT); in thread_server_entry()
182 (UINT)fromAddr.sin_addr.s_addr, (ULONG)fromAddr.sin_port); in thread_server_entry()
239 destAddr.sin_port = htons(SERVER_PORT); in thread_client_entry()
273 (UINT)fromAddr.sin_addr.s_addr, (ULONG)fromAddr.sin_port); in thread_client_entry()
Ddemo_bsd_tcp.c240 serverAddr.sin_port = htons(SERVER_PORT); in thread_server_entry()
447 localAddr.sin_port = htons(CLIENT_PORT); in thread_client_entry()
452 echoServAddr.sin_port = htons(SERVER_PORT); in thread_client_entry()
514 …printf("Client port = %lu , Client = 0x%x,", (ULONG)localAddr.sin_port, (UINT)localAddr.sin_addr.s… in thread_client_entry()
517 …printf("Remote port = %lu, Remote IP = 0x%x \n", (ULONG)remoteAddr.sin_port, (UINT)remoteAddr.sin_… in thread_client_entry()

12