| /NetX-Duo-v6.2.1/test/regression/dhcp_test/ |
| D | netx_dhcp_client_ip_mutex_test.c | 32 static NX_IP client_ip; variable 79 …status = nx_ip_create(&client_ip, "DHCP Client", IP_ADDRESS(0, 0, 0, 0), 0x00, &client_pool, _nx_r… in test_application_define() 87 status = nx_arp_enable(&client_ip, (void *) pointer, 1024); in test_application_define() 91 status += nx_udp_enable(&client_ip); in test_application_define() 92 status += nx_icmp_enable(&client_ip); in test_application_define() 118 status = nx_dhcp_create(&dhcp_client, &client_ip, "dhcp0"); in client_thread_entry() 144 if (client_ip.nx_ip_udp_packets_sent == 0) in client_thread_entry() 152 if (client_ip.nx_ip_protection.tx_mutex_owner == &dhcp_client.nx_dhcp_thread) in client_thread_entry() 159 client_ip.nx_ip_protection.tx_mutex_owner = &client_thread; in client_thread_entry() 160 tx_mutex_put(&client_ip.nx_ip_protection); in client_thread_entry()
|
| D | netx_dhcp_client_send_with_zero_source_address_test.c | 42 static NX_IP client_ip; variable 92 …status = nx_ip_create(&client_ip, "DHCP Client", IP_ADDRESS(0, 0, 0, 0), 0xFFFFFF00UL, &client_poo… in test_application_define() 101 status = nx_udp_enable(&client_ip); in test_application_define() 139 status = nx_dhcp_create(&dhcp_client, &client_ip, "dhcp_client"); in client_thread_entry() 150 client_ip.nx_ip_packet_filter_extended = packet_filter_extended; in client_thread_entry() 167 client_ip.nx_ip_interface[0].nx_interface_valid = NX_FALSE; in client_thread_entry() 168 client_ip.nx_ip_interface[0].nx_interface_link_up = NX_FALSE; in client_thread_entry() 170 client_ip.nx_ip_interface[0].nx_interface_valid = NX_TRUE; in client_thread_entry() 174 client_ip.nx_ip_interface[0].nx_interface_link_up = NX_TRUE; in client_thread_entry() 175 client_ip.nx_ip_interface[0].nx_interface_link_up = NX_TRUE; in client_thread_entry()
|
| D | netx_dhcp_basic_restore_test.c | 26 static NX_IP client_ip; variable 99 …status = nx_ip_create(&client_ip, "DHCP Client", IP_ADDRESS(0, 0, 0, 0), 0xFFFFFF00UL, &client_poo… in test_application_define() 117 status = nx_arp_enable(&client_ip, (void *) pointer, 1024); in test_application_define() 133 status = nx_udp_enable(&client_ip); in test_application_define() 147 status = nx_icmp_enable(&client_ip); in test_application_define() 255 status = nx_dhcp_create(&dhcp_client, &client_ip, "dhcp_client"); in client_thread_entry() 276 …status = nx_ip_status_check(&client_ip, NX_IP_ADDRESS_RESOLVED, (ULONG *) &status, 20 * NX_IP_PER… in client_thread_entry() 323 …status = nx_icmp_ping(&client_ip, NX_DHCP_SERVER_IP_ADDRESS_0, (CHAR *)message, length, &my_packe… in client_thread_entry() 331 status = nx_ip_gateway_address_get(&client_ip, &gateway_address); in client_thread_entry() 349 status = nx_ip_gateway_address_get(&client_ip, &restore_gateway_address); in client_thread_entry() [all …]
|
| D | netx_dhcp_03_02_01_test.c | 34 static NX_IP client_ip; variable 107 …status = nx_ip_create(&client_ip, "DHCP Client", IP_ADDRESS(0, 0, 0, 0), 0xFFFFFF00UL, &client_poo… in test_application_define() 125 status = nx_arp_enable(&client_ip, (void *) pointer, 1024); in test_application_define() 141 status = nx_udp_enable(&client_ip); in test_application_define() 155 status = nx_icmp_enable(&client_ip); in test_application_define() 249 status = nx_dhcp_create(&dhcp_client, &client_ip, "dhcp_client"); in client_thread_entry() 269 client_ip.nx_ip_udp_packet_receive = my_udp_packet_receive; in client_thread_entry() 280 …status = nx_ip_status_check(&client_ip, NX_IP_ADDRESS_RESOLVED, (ULONG *) &status, NX_IP_PERIODIC… in client_thread_entry() 308 ULONG client_ip; in my_packet_process() local 328 …client_ip = dhcp_get_data((packet_ptr -> nx_packet_prepend_ptr + 20 + 8 + NX_BOOTP_OFFSET_CLIENT_I… in my_packet_process() [all …]
|
| D | netx_dhcp_basic_test.c | 37 static NX_IP client_ip; variable 110 …status = nx_ip_create(&client_ip, "DHCP Client", IP_ADDRESS(0, 0, 0, 0), 0xFFFFFF00UL, &client_poo… in test_application_define() 128 status = nx_arp_enable(&client_ip, (void *) pointer, 1024); in test_application_define() 144 status = nx_udp_enable(&client_ip); in test_application_define() 158 status = nx_icmp_enable(&client_ip); in test_application_define() 280 status = nx_dhcp_create(&dhcp_client, &client_ip, "dhcp_client"); in client_thread_entry() 291 client_ip.nx_ip_packet_filter_extended = packet_filter_extended; in client_thread_entry() 317 …status = nx_ip_status_check(&client_ip, NX_IP_ADDRESS_RESOLVED, (ULONG *) &status, 20 * NX_IP_PER… in client_thread_entry() 364 …status = nx_icmp_ping(&client_ip, NX_DHCP_SERVER_IP_ADDRESS_0, (CHAR *)message, length, &my_packe… in client_thread_entry()
|
| D | netx_dhcp_client_ntp_option_test.c | 31 static NX_IP client_ip; variable 204 …status = nx_ip_create(&client_ip, "DHCP Client", IP_ADDRESS(0, 0, 0, 0), 0xFFFFFF00UL, &client_poo… in test_application_define() 222 status = nx_arp_enable(&client_ip, (void *) pointer, 1024); in test_application_define() 238 status = nx_udp_enable(&client_ip); in test_application_define() 252 status = nx_icmp_enable(&client_ip); in test_application_define() 411 status = nx_ip_interface_physical_address_set(&client_ip, 0, 0x00000011, 0x22334457, NX_TRUE); in client_thread_entry() 419 client_ip.nx_ip_interface[0].nx_interface_physical_address_msw = 0x00000011; in client_thread_entry() 420 client_ip.nx_ip_interface[0].nx_interface_physical_address_lsw = 0x22334457; in client_thread_entry() 424 status = nx_dhcp_create(&dhcp_client, &client_ip, "dhcp_client"); in client_thread_entry() 451 …status = nx_ip_status_check(&client_ip, NX_IP_ADDRESS_RESOLVED, (ULONG *) &status, 10 * NX_IP_PER… in client_thread_entry()
|
| D | netx_dhcp_get_option_value_test.c | 31 static NX_IP client_ip; variable 211 …status = nx_ip_create(&client_ip, "DHCP Client", IP_ADDRESS(0, 0, 0, 0), 0xFFFFFF00UL, &client_poo… in test_application_define() 229 status = nx_arp_enable(&client_ip, (void *) pointer, 1024); in test_application_define() 245 status = nx_udp_enable(&client_ip); in test_application_define() 259 status = nx_icmp_enable(&client_ip); in test_application_define() 418 status = nx_ip_interface_physical_address_set(&client_ip, 0, 0x00000011, 0x22334457, NX_TRUE); in client_thread_entry() 426 client_ip.nx_ip_interface[0].nx_interface_physical_address_msw = 0x00000011; in client_thread_entry() 427 client_ip.nx_ip_interface[0].nx_interface_physical_address_lsw = 0x22334457; in client_thread_entry() 431 status = nx_dhcp_create(&dhcp_client, &client_ip, "dhcp_client"); in client_thread_entry() 458 …status = nx_ip_status_check(&client_ip, NX_IP_ADDRESS_RESOLVED, (ULONG *) &status, 10 * NX_IP_PER… in client_thread_entry()
|
| /NetX-Duo-v6.2.1/samples/ |
| D | demo_netxduo_multihome_dhcp_client.c | 55 NX_IP client_ip; variable 112 …status = nx_ip_create(&client_ip, "DHCP Client", IP_ADDRESS(0, 0, 0, 0), 0xFFFFFF00UL, &client_poo… in tx_application_define() 120 status = nx_arp_enable(&client_ip, (void *) pointer, 1024); in tx_application_define() 128 status = nx_udp_enable(&client_ip); in tx_application_define() 135 status = nx_tcp_enable(&client_ip); in tx_application_define() 142 status = nx_icmp_enable(&client_ip); in tx_application_define() 164 …status = nx_ip_interface_attach(&client_ip, "Second interface", IP_ADDRESS(0, 0, 0, 0), 0xFFFFFF00… in client_thread_entry() 172 status = nx_dhcp_create(&dhcp_client, &client_ip, "dhcp_client"); in client_thread_entry() 227 …nx_ip_interface_status_check(&client_ip, 0, NX_IP_ADDRESS_RESOLVED, (ULONG *)&actual_status, NX_WA… in client_thread_entry() 230 …nx_ip_interface_status_check(&client_ip, 1, NX_IP_ADDRESS_RESOLVED, (ULONG *)&actual_status, NX_WA… in client_thread_entry()
|
| D | demo_netxduo_dhcpv6_client.c | 30 NX_IP client_ip; variable 117 status = nx_ip_create(&client_ip, "Client IP", IP_ADDRESS(0, 0, 0, 0), in tx_application_define() 131 status = nx_udp_enable(&client_ip); in tx_application_define() 141 status = nx_icmp_enable(&client_ip); in tx_application_define() 151 status = nx_dhcpv6_client_create(&dhcp_client, &client_ip, "DHCPv6 Client", in tx_application_define() 205 status = nxd_ipv6_address_set(&client_ip, 0, NX_NULL, 10, NULL); in thread_client_entry() 217 nxd_ipv6_enable(&client_ip); in thread_client_entry() 218 nxd_icmp_enable(&client_ip); in thread_client_entry() 441 status = nx_ip_delete(&client_ip); in thread_client_entry() 451 status = nx_ip_create(&client_ip, "Client IP", IP_ADDRESS(0, 0, 0, 0), in thread_client_entry() [all …]
|
| D | demo_netxduo_dhcp.c | 42 NX_IP client_ip; variable 123 …status = nx_ip_create(&client_ip, "DHCP Client", IP_ADDRESS(0, 0, 0, 0), 0xFFFFFF00UL, &client_poo… in tx_application_define() 139 status = nx_arp_enable(&client_ip, (void *) pointer, 1024); in tx_application_define() 151 status = nx_udp_enable(&client_ip); in tx_application_define() 159 status = nx_icmp_enable(&client_ip); in tx_application_define() 237 status = nx_ip_interface_mtu_set(&client_ip, NX_DHCP_INTERFACE_INDEX, 1500); in client_thread_entry() 244 status = nx_dhcp_create(&dhcp_client, &client_ip, "DHCP-CLIENT"); in client_thread_entry() 270 …status = nx_ip_status_check(&client_ip, NX_IP_ADDRESS_RESOLVED, (ULONG *) &actual_status, NX_IP_PE… in client_thread_entry() 287 …status = nx_icmp_ping(&client_ip, NX_DHCP_SERVER_IP_ADDRESS_0, (CHAR *)message, length, &my_packet… in client_thread_entry()
|
| D | demo_netxduo_smtp_client.c | 41 NX_IP client_ip; variable 117 status = nx_ip_create(&client_ip, "SMTP Client IP Instance", CLIENT_IP_ADDRESS, 0xFFFFFF00UL, in tx_application_define() 124 status = nx_arp_enable(&client_ip, (void **) free_memory_pointer, 1040); in tx_application_define() 130 status = nx_tcp_enable(&client_ip); in tx_application_define() 138 status = nx_icmp_enable(&client_ip); in tx_application_define() 171 status = nxd_smtp_client_create(&demo_client, &client_ip, &client_packet_pool, in demo_client_thread_entry()
|
| D | demo_netxduo_sntp_client.c | 40 NX_IP client_ip; variable 108 status = nx_ip_create(&client_ip, "SNTP IP Instance", CLIENT_IP_ADDRESS, in tx_application_define() 123 status = nx_arp_enable(&client_ip, (void **) free_memory_pointer, 2048); in tx_application_define() 137 status = nx_udp_enable(&client_ip); in tx_application_define() 147 status = nx_icmp_enable(&client_ip); in tx_application_define() 186 … status = nx_sntp_client_create(&demo_sntp_client, &client_ip, iface_index, &client_packet_pool, in tx_application_define() 232 status = nxd_ipv6_enable(&client_ip); in demo_client_thread_entry() 234 status += nxd_icmp_enable(&client_ip); in demo_client_thread_entry() 254 status = nxd_ipv6_address_set(&client_ip, iface_index, NX_NULL, 10, NULL); in demo_client_thread_entry() 264 …status = nxd_ipv6_address_set(&client_ip, iface_index, &client_ip_address, prefix, &address_index); in demo_client_thread_entry()
|
| D | demo_netxduo_pop3_client.c | 27 NX_IP client_ip; variable 87 status = nx_ip_create(&client_ip, "POP3 Client IP Instance", CLIENT_ADDRESS, 0xFFFFFF00UL, in tx_application_define() 100 nx_arp_enable(&client_ip, (void *) free_memory_pointer, 1024); in tx_application_define() 106 nx_tcp_enable(&client_ip); in tx_application_define() 107 nx_icmp_enable(&client_ip); in tx_application_define() 136 &client_ip, &client_packet_pool, SERVER_ADDRESS, SERVER_PORT, in demo_thread_entry()
|
| /NetX-Duo-v6.2.1/test/regression/sntp_test/ |
| D | netx_sntp_client_ipv6_broadcast_basic_test.c | 43 static NX_IP client_ip; variable 90 status = nx_ip_create(&client_ip, "SNTP IP Instance", CLIENT_IP_ADDRESS, in test_application_define() 100 status = nx_arp_enable(&client_ip, (void **) free_memory_pointer, 2048); in test_application_define() 109 status = nx_udp_enable(&client_ip); in test_application_define() 115 status = nx_icmp_enable(&client_ip); in test_application_define() 135 status = nx_sntp_client_create(&sntp_client, &client_ip, iface_index, &client_packet_pool, in test_application_define() 172 status = nxd_ipv6_enable(&client_ip); in sntp_client_thread_entry() 174 status += nxd_icmp_enable(&client_ip); in sntp_client_thread_entry() 193 status = nxd_ipv6_address_set(&client_ip, 0, &client_ip_address, 64, NX_NULL); in sntp_client_thread_entry() 304 …status = nx_packet_allocate(client_ip.nx_ip_default_packet_pool, &my_packet, 0, 5 * NX_IP_PERIOD… in inject_sntp_server_reply() [all …]
|
| D | netx_sntp_client_ipv6_unicast_basic_test.c | 43 static NX_IP client_ip; variable 90 status = nx_ip_create(&client_ip, "SNTP IP Instance", CLIENT_IP_ADDRESS, in test_application_define() 100 status = nx_arp_enable(&client_ip, (void **) free_memory_pointer, 2048); in test_application_define() 109 status = nx_udp_enable(&client_ip); in test_application_define() 115 status = nx_icmp_enable(&client_ip); in test_application_define() 135 status = nx_sntp_client_create(&sntp_client, &client_ip, iface_index, &client_packet_pool, in test_application_define() 172 status = nxd_ipv6_enable(&client_ip); in sntp_client_thread_entry() 174 status += nxd_icmp_enable(&client_ip); in sntp_client_thread_entry() 193 status = nxd_ipv6_address_set(&client_ip, 0, &client_ip_address, 64, NX_NULL); in sntp_client_thread_entry() 305 …status = nx_packet_allocate(client_ip.nx_ip_default_packet_pool, &my_packet, 0, 5 * NX_IP_PERIOD… in inject_sntp_server_reply() [all …]
|
| D | netx_sntp_client_kod_test.c | 37 static NX_IP client_ip; variable 88 status = nx_ip_create(&client_ip, "SNTP IP Instance", CLIENT_IP_ADDRESS, in test_application_define() 98 status = nx_arp_enable(&client_ip, (void **) free_memory_pointer, 2048); in test_application_define() 107 status = nx_udp_enable(&client_ip); in test_application_define() 113 status = nx_icmp_enable(&client_ip); in test_application_define() 133 status = nx_sntp_client_create(&sntp_client, &client_ip, iface_index, &client_packet_pool, in test_application_define() 232 …status = nx_packet_allocate(client_ip.nx_ip_default_packet_pool, &my_packet, 0, 5 * NX_IP_PERIOD… in inject_sntp_server_reply() 248 _nx_ip_packet_deferred_receive(&client_ip, my_packet); in inject_sntp_server_reply()
|
| D | netx_sntp_forward_unicast_update_test.c | 42 static NX_IP client_ip; variable 111 status = nx_ip_create(&client_ip, "SNTP IP Instance", CLIENT_IP_ADDRESS, in test_application_define() 125 status = nx_arp_enable(&client_ip, (void **) free_memory_pointer, 2048); in test_application_define() 138 status = nx_udp_enable(&client_ip); in test_application_define() 139 status |= nx_icmp_enable(&client_ip); in test_application_define() 163 status = nx_sntp_client_create(&demo_client, &client_ip, 0, &client_packet_pool, in test_application_define() 275 status = nx_packet_allocate(client_ip.nx_ip_default_packet_pool, &my_packet, 0, 500); in inject_sntp_server_reply() 293 _nx_ip_packet_deferred_receive(&client_ip, my_packet); in inject_sntp_server_reply()
|
| D | netx_sntp_client_packet_chain_test.c | 42 static NX_IP client_ip; variable 91 status = nx_ip_create(&client_ip, "SNTP IP Instance", CLIENT_IP_ADDRESS, in test_application_define() 101 status = nx_arp_enable(&client_ip, (void **) free_memory_pointer, 2048); in test_application_define() 110 status = nx_udp_enable(&client_ip); in test_application_define() 116 status = nx_icmp_enable(&client_ip); in test_application_define() 136 status = nx_sntp_client_create(&sntp_client, &client_ip, iface_index, &client_packet_pool, in test_application_define() 176 status = nx_sntp_client_create(&sntp_client, &client_ip, iface_index, &client_packet_pool, in sntp_client_thread_entry() 351 _nx_ip_packet_deferred_receive(&client_ip, my_packet); in inject_sntp_server_reply() 356 …status = nx_packet_allocate(client_ip.nx_ip_default_packet_pool, &my_packet, 0, 5 * NX_IP_PERIOD… in inject_sntp_server_reply() 372 _nx_ip_packet_deferred_receive(&client_ip, my_packet); in inject_sntp_server_reply()
|
| D | netx_sntp_client_unicast_basic_test.c | 41 static NX_IP client_ip; variable 90 status = nx_ip_create(&client_ip, "SNTP IP Instance", CLIENT_IP_ADDRESS, in test_application_define() 100 status = nx_arp_enable(&client_ip, (void **) free_memory_pointer, 2048); in test_application_define() 109 status = nx_udp_enable(&client_ip); in test_application_define() 115 status = nx_icmp_enable(&client_ip); in test_application_define() 135 status = nx_sntp_client_create(&sntp_client, &client_ip, iface_index, &client_packet_pool, in test_application_define() 174 status = nx_sntp_client_create(&sntp_client, &client_ip, iface_index, &client_packet_pool, in sntp_client_thread_entry() 318 …status = nx_packet_allocate(client_ip.nx_ip_default_packet_pool, &my_packet, 0, 5 * NX_IP_PERIOD… in inject_sntp_server_reply() 334 _nx_ip_packet_deferred_receive(&client_ip, my_packet); in inject_sntp_server_reply()
|
| D | netx_sntp_client_broadcast_basic_test.c | 42 static NX_IP client_ip; variable 91 status = nx_ip_create(&client_ip, "SNTP IP Instance", CLIENT_IP_ADDRESS, in test_application_define() 101 status = nx_arp_enable(&client_ip, (void **) free_memory_pointer, 2048); in test_application_define() 110 status = nx_udp_enable(&client_ip); in test_application_define() 116 status = nx_icmp_enable(&client_ip); in test_application_define() 136 status = nx_sntp_client_create(&sntp_client, &client_ip, iface_index, &client_packet_pool, in test_application_define() 297 …status = nx_packet_allocate(client_ip.nx_ip_default_packet_pool, &my_packet, 0, 5 * NX_IP_PERIOD… in inject_sntp_server_reply() 313 _nx_ip_packet_deferred_receive(&client_ip, my_packet); in inject_sntp_server_reply()
|
| D | netx_sntp_request_unicast_test.c | 106 static NX_IP client_ip; variable 157 status = nx_ip_create(&client_ip, "SNTP IP Instance", CLIENT_IP_ADDRESS, in test_application_define() 167 status = nx_arp_enable(&client_ip, (void **) free_memory_pointer, 2048); in test_application_define() 176 status = nx_udp_enable(&client_ip); in test_application_define() 182 status = nx_icmp_enable(&client_ip); in test_application_define() 213 status = nx_sntp_client_create(&sntp_client, &client_ip, iface_index, &client_packet_pool, in test_application_define() 378 status = nx_packet_allocate(client_ip.nx_ip_default_packet_pool, &my_packet, 0, 500); in inject_sntp_server_reply() 396 _nx_ip_packet_deferred_receive(&client_ip, my_packet); in inject_sntp_server_reply()
|
| /NetX-Duo-v6.2.1/test/regression/pop3_test/ |
| D | netx_pop3_abnormal_packet_test.c | 27 static NX_IP client_ip; variable 74 status = nx_ip_create(&client_ip, "POP3 Client IP Instance", IP_ADDRESS(1,2,3,5), 0xFFFFFF00UL, in test_application_define() 87 nx_arp_enable(&client_ip, (void *) free_memory_pointer, 1024); in test_application_define() 93 nx_tcp_enable(&client_ip); in test_application_define() 94 nx_icmp_enable(&client_ip); in test_application_define()
|
| /NetX-Duo-v6.2.1/test/regression/web_test/ |
| D | netx_web_external_server_chunked_test.c | 24 static NX_IP client_ip; variable 71 status = nx_ip_create(&client_ip, "HTTP Client IP", HTTP_CLIENT_ADDRESS, in test_application_define() 78 status = nx_arp_enable(&client_ip, (void *) pointer, 1024); in test_application_define() 84 status = nx_tcp_enable(&client_ip); in test_application_define() 103 status = nx_ip_gateway_address_set(&client_ip, GATEWAY_IP_ADDRESS); in thread_client_entry() 122 … status = nx_web_http_client_create(&my_client, "HTTP Client", &client_ip, &client_pool, 1536); in thread_client_entry()
|
| /NetX-Duo-v6.2.1/test/regression/dns_test/ |
| D | netx_dns_coverage_test.c | 21 static NX_IP client_ip; variable 65 …nx_ip_create(&client_ip, "NetX IP Instance 0", IP_ADDRESS(10, 0, 0, 10), 0xFFFFFF00UL, &pool_0, _n… in test_application_define() 70 nx_arp_enable(&client_ip, (void *) pointer, 1024); in test_application_define() 74 nx_udp_enable(&client_ip); in test_application_define() 106 status = nx_dns_create(&client_dns, &client_ip, (UCHAR *)"DNS Client"); in client_thread_entry()
|
| /NetX-Duo-v6.2.1/test/regression/ftp_test/ |
| D | netx_ftp_client_buffer_overflow_test.c | 19 static NX_IP client_ip; variable 146 status = nx_ip_create(&client_ip, "NetX Client IP Instance", FTP_CLIENT_ADDRESS, 0xFFFFFF00UL, in test_application_define() 159 nx_arp_enable(&client_ip, (void *) pointer, 1024); in test_application_define() 164 nx_tcp_enable(&client_ip); in test_application_define() 165 nx_icmp_enable(&client_ip); in test_application_define() 184 status = nx_ftp_client_create(&ftp_client, "FTP Client", &client_ip, 2000, &client_pool); in client_thread_entry() 229 …status = nx_tcp_socket_create(&client_ip, &server_socket, "Socket Server", NX_IP_NORMAL, NX_FRAGME… in server_thread_entry() 239 status = nx_tcp_server_socket_listen(&client_ip, SERVER_PORT, &server_socket, 5, NX_NULL); in server_thread_entry()
|