| /NetX-Duo-v6.2.1/common/src/ |
| D | nx_ip_static_route_delete.c | 118 UINT j; in _nx_ip_static_route_delete() local 125 for (j = i; j < ip_ptr -> nx_ip_routing_table_entry_count; j++) in _nx_ip_static_route_delete() 127 …ip_ptr -> nx_ip_routing_table[j].nx_ip_routing_dest_ip = ip_ptr -> nx_ip_routing_table[j + 1].nx_i… in _nx_ip_static_route_delete() 128 …ip_ptr -> nx_ip_routing_table[j].nx_ip_routing_net_mask = ip_ptr -> nx_ip_routing_table[j + 1].nx_… in _nx_ip_static_route_delete() 129 …ip_ptr -> nx_ip_routing_table[j].nx_ip_routing_next_hop_address = ip_ptr -> nx_ip_routing_table[j … in _nx_ip_static_route_delete() 130 …ip_ptr -> nx_ip_routing_table[j].nx_ip_routing_entry_ip_interface = ip_ptr -> nx_ip_routing_table[… in _nx_ip_static_route_delete() 133 ip_ptr -> nx_ip_routing_table[j - 1].nx_ip_routing_dest_ip = 0; in _nx_ip_static_route_delete() 134 ip_ptr -> nx_ip_routing_table[j - 1].nx_ip_routing_net_mask = 0; in _nx_ip_static_route_delete() 135 ip_ptr -> nx_ip_routing_table[j - 1].nx_ip_routing_next_hop_address = 0; in _nx_ip_static_route_delete() 136 ip_ptr -> nx_ip_routing_table[j - 1].nx_ip_routing_entry_ip_interface = NX_NULL; in _nx_ip_static_route_delete()
|
| D | nx_ip_interface_detach.c | 97 UINT j; in _nx_ip_interface_detach() local 163 for (j = i; j < ip_ptr -> nx_ip_routing_table_entry_count; j++) in _nx_ip_interface_detach() 165 ip_ptr -> nx_ip_routing_table[j].nx_ip_routing_dest_ip = in _nx_ip_interface_detach() 166 ip_ptr -> nx_ip_routing_table[j + 1].nx_ip_routing_dest_ip; in _nx_ip_interface_detach() 167 ip_ptr -> nx_ip_routing_table[j].nx_ip_routing_net_mask = in _nx_ip_interface_detach() 168 ip_ptr -> nx_ip_routing_table[j + 1].nx_ip_routing_net_mask; in _nx_ip_interface_detach() 169 ip_ptr -> nx_ip_routing_table[j].nx_ip_routing_next_hop_address = in _nx_ip_interface_detach() 170 ip_ptr -> nx_ip_routing_table[j + 1].nx_ip_routing_next_hop_address; in _nx_ip_interface_detach() 171 ip_ptr -> nx_ip_routing_table[j].nx_ip_routing_entry_ip_interface = in _nx_ip_interface_detach() 172 ip_ptr -> nx_ip_routing_table[j + 1].nx_ip_routing_entry_ip_interface; in _nx_ip_interface_detach() [all …]
|
| D | nx_utility.c | 363 UINT i, j; in _nx_utility_base64_encode() local 408 j = 0; in _nx_utility_base64_encode() 413 while (j < name_size) in _nx_utility_base64_encode() 421 base64name[j++] = (UCHAR)_nx_utility_base64_array[((UCHAR)name[i]) >> 2]; in _nx_utility_base64_encode() 430 …base64name[j++] = (UCHAR)_nx_utility_base64_array[((((UCHAR)name[i]) & 0x3) << 4) | (((UCHAR)name[… in _nx_utility_base64_encode() 436 base64name[j++] = (UCHAR)_nx_utility_base64_array[(((UCHAR)name[i]) & 0x3) << 4]; in _nx_utility_base64_encode() 447 …base64name[j++] = (UCHAR)_nx_utility_base64_array[((((UCHAR)name[i]) & 0xF) << 2) | (((UCHAR)name[… in _nx_utility_base64_encode() 453 base64name[j++] = (UCHAR)_nx_utility_base64_array[(((UCHAR)name[i]) & 0xF) << 2]; in _nx_utility_base64_encode() 462 base64name[j++] = (UCHAR)_nx_utility_base64_array[(((UCHAR)name[i]) & 0x3F)]; in _nx_utility_base64_encode() 473 base64name[j++] = '='; in _nx_utility_base64_encode() [all …]
|
| D | nx_ip_static_route_add.c | 146 INT j; in _nx_ip_static_route_add() local 161 for (j = (INT)ip_ptr -> nx_ip_routing_table_entry_count - 1; j >= i; j--) in _nx_ip_static_route_add() 164 ip_ptr -> nx_ip_routing_table[j + 1].nx_ip_routing_dest_ip = in _nx_ip_static_route_add() 165 ip_ptr -> nx_ip_routing_table[j].nx_ip_routing_dest_ip; in _nx_ip_static_route_add() 166 ip_ptr -> nx_ip_routing_table[j + 1].nx_ip_routing_net_mask = in _nx_ip_static_route_add() 167 ip_ptr -> nx_ip_routing_table[j].nx_ip_routing_net_mask; in _nx_ip_static_route_add() 168 ip_ptr -> nx_ip_routing_table[j + 1].nx_ip_routing_next_hop_address = in _nx_ip_static_route_add() 169 ip_ptr -> nx_ip_routing_table[j].nx_ip_routing_next_hop_address; in _nx_ip_static_route_add() 170 ip_ptr -> nx_ip_routing_table[j + 1].nx_ip_routing_entry_ip_interface = in _nx_ip_static_route_add() 171 ip_ptr -> nx_ip_routing_table[j].nx_ip_routing_entry_ip_interface; in _nx_ip_static_route_add()
|
| D | nxd_ipv6_find_max_prefix_length.c | 75 UINT i, j, bit, time; in _nxd_ipv6_find_max_prefix_length() local 92 for (j = 0; j < 5; j++) in _nxd_ipv6_find_max_prefix_length() 103 else if (j == 4) in _nxd_ipv6_find_max_prefix_length()
|
| /NetX-Duo-v6.2.1/addons/ftp/ |
| D | nxd_ftp_server.c | 1621 UINT i, j; in _nx_ftp_server_command_process() local 1750 … for (j = 0; j < (NX_FTP_USERNAME_SIZE - 1) && (j < packet_ptr -> nx_packet_length); j++) in _nx_ftp_server_command_process() 1754 client_req_ptr -> nx_ftp_client_request_username[j] = (CHAR) buffer_ptr[j]; in _nx_ftp_server_command_process() 1757 if ((buffer_ptr[j] == 13) || (buffer_ptr[j] == 10) || (buffer_ptr[j] == 0)) in _nx_ftp_server_command_process() 1762 client_req_ptr -> nx_ftp_client_request_username[j] = NX_NULL; in _nx_ftp_server_command_process() 1777 … for (j = 0; j < (NX_FTP_PASSWORD_SIZE - 1) && (j < packet_ptr -> nx_packet_length); j++) in _nx_ftp_server_command_process() 1781 client_req_ptr -> nx_ftp_client_request_password[j] = (CHAR) buffer_ptr[j]; in _nx_ftp_server_command_process() 1784 if ((buffer_ptr[j] == 13) || (buffer_ptr[j] == 10) || (buffer_ptr[j] == 0)) in _nx_ftp_server_command_process() 1789 client_req_ptr -> nx_ftp_client_request_password[j] = NX_NULL; in _nx_ftp_server_command_process() 1982 j = 0; in _nx_ftp_server_command_process() [all …]
|
| /NetX-Duo-v6.2.1/test/regression/bsd_test/ |
| D | netx_bsd_udp_connect_test.c | 249 int i,j; in ntest_0_entry() local 281 for(j = 0; j < 3; j ++) in ntest_0_entry() 283 if(j == 0) in ntest_0_entry() 286 ipv6_address_ip0[i][j].nxd_ip_version = NX_IP_VERSION_V6; in ntest_0_entry() 287 ipv6_address_ip0[i][j].nxd_ip_address.v6[0] = 0xfe800000; in ntest_0_entry() 288 ipv6_address_ip0[i][j].nxd_ip_address.v6[1] = 0x00000000; in ntest_0_entry() 289 …ipv6_address_ip0[i][j].nxd_ip_address.v6[2] = ((mac_ip0[0] | 0x2) << 24) | (mac_ip0[1] << 16) | (m… in ntest_0_entry() 290 …ipv6_address_ip0[i][j].nxd_ip_address.v6[3] = (0xFE << 24) | ((mac_ip0[3] | 0x2) << 16) | (mac_ip0… in ntest_0_entry() 292 ipv6_address_ip1[i][j].nxd_ip_version = NX_IP_VERSION_V6; in ntest_0_entry() 293 ipv6_address_ip1[i][j].nxd_ip_address.v6[0] = 0xfe800000; in ntest_0_entry() [all …]
|
| D | netx_bsd_raw_bind_connect_test.c | 265 int j; in ntest_0_entry() local 301 for(j = 0; j < 3; j ++) in ntest_0_entry() 303 if(j == 0) in ntest_0_entry() 306 ipv6_address_ip0[i][j].nxd_ip_version = NX_IP_VERSION_V6; in ntest_0_entry() 307 ipv6_address_ip0[i][j].nxd_ip_address.v6[0] = 0xfe800000; in ntest_0_entry() 308 ipv6_address_ip0[i][j].nxd_ip_address.v6[1] = 0x00000000; in ntest_0_entry() 309 …ipv6_address_ip0[i][j].nxd_ip_address.v6[2] = ((mac_ip0[0] | 0x2) << 24) | (mac_ip0[1] << 16) | (m… in ntest_0_entry() 310 …ipv6_address_ip0[i][j].nxd_ip_address.v6[3] = (0xFE << 24) | ((mac_ip0[3] | 0x2) << 16) | (mac_ip0… in ntest_0_entry() 312 ipv6_address_ip1[i][j].nxd_ip_version = NX_IP_VERSION_V6; in ntest_0_entry() 313 ipv6_address_ip1[i][j].nxd_ip_address.v6[0] = 0xfe800000; in ntest_0_entry() [all …]
|
| D | netx_bsd_udp_bind_connect_test.c | 266 int i,j; in ntest_0_entry() local 301 for(j = 0; j < 3; j ++) in ntest_0_entry() 303 if(j == 0) in ntest_0_entry() 306 ipv6_address_ip0[i][j].nxd_ip_version = NX_IP_VERSION_V6; in ntest_0_entry() 307 ipv6_address_ip0[i][j].nxd_ip_address.v6[0] = 0xfe800000; in ntest_0_entry() 308 ipv6_address_ip0[i][j].nxd_ip_address.v6[1] = 0x00000000; in ntest_0_entry() 309 …ipv6_address_ip0[i][j].nxd_ip_address.v6[2] = ((mac_ip0[0] | 0x2) << 24) | (mac_ip0[1] << 16) | (m… in ntest_0_entry() 310 …ipv6_address_ip0[i][j].nxd_ip_address.v6[3] = (0xFE << 24) | ((mac_ip0[3] | 0x2) << 16) | (mac_ip0… in ntest_0_entry() 312 ipv6_address_ip1[i][j].nxd_ip_version = NX_IP_VERSION_V6; in ntest_0_entry() 313 ipv6_address_ip1[i][j].nxd_ip_address.v6[0] = 0xfe800000; in ntest_0_entry() [all …]
|
| D | netx_bsd_tcp_bind_test.c | 495 int i,j; in ntest_0_entry() local 531 for(j = 0; j < 3; j ++) in ntest_0_entry() 533 if(j == 0) in ntest_0_entry() 536 ipv6_address_ip0[i][j].nxd_ip_version = NX_IP_VERSION_V6; in ntest_0_entry() 537 ipv6_address_ip0[i][j].nxd_ip_address.v6[0] = 0xfe800000; in ntest_0_entry() 538 ipv6_address_ip0[i][j].nxd_ip_address.v6[1] = 0x00000000; in ntest_0_entry() 539 …ipv6_address_ip0[i][j].nxd_ip_address.v6[2] = ((mac_ip0[0] | 0x2) << 24) | (mac_ip0[1] << 16) | (m… in ntest_0_entry() 540 …ipv6_address_ip0[i][j].nxd_ip_address.v6[3] = (0xFE << 24) | ((mac_ip0[3] | 0x2) << 16) | (mac_ip0… in ntest_0_entry() 542 ipv6_address_ip1[i][j].nxd_ip_version = NX_IP_VERSION_V6; in ntest_0_entry() 543 ipv6_address_ip1[i][j].nxd_ip_address.v6[0] = 0xfe800000; in ntest_0_entry() [all …]
|
| D | netx_bsd_udp_bind_test.c | 663 int j; in ntest_0_entry() local 699 for(j = 0; j < 3; j ++) in ntest_0_entry() 701 if(j == 0) in ntest_0_entry() 704 ipv6_address_ip0[i][j].nxd_ip_version = NX_IP_VERSION_V6; in ntest_0_entry() 705 ipv6_address_ip0[i][j].nxd_ip_address.v6[0] = 0xfe800000; in ntest_0_entry() 706 ipv6_address_ip0[i][j].nxd_ip_address.v6[1] = 0x00000000; in ntest_0_entry() 707 …ipv6_address_ip0[i][j].nxd_ip_address.v6[2] = ((mac_ip0[0] | 0x2) << 24) | (mac_ip0[1] << 16) | (m… in ntest_0_entry() 708 …ipv6_address_ip0[i][j].nxd_ip_address.v6[3] = (0xFE << 24) | ((mac_ip0[3] | 0x2) << 16) | (mac_ip0… in ntest_0_entry() 710 ipv6_address_ip1[i][j].nxd_ip_version = NX_IP_VERSION_V6; in ntest_0_entry() 711 ipv6_address_ip1[i][j].nxd_ip_address.v6[0] = 0xfe800000; in ntest_0_entry() [all …]
|
| D | netx_bsd_tcp_getsockname_test.c | 250 int i, j; in tcp_server_entry() local 271 for(j = 0; j < 2; j++) in tcp_server_entry() 291 client_data[j * 2 + i].sockfd = newsock; in tcp_server_entry() 292 client_data[j * 2 + i].message_id = i; in tcp_server_entry() 295 …status = tx_thread_create(&helper_thread[j*2 + i], "helper thread", bsd_server_helper_thread_entry… in tcp_server_entry() 296 … j * 2 + i, stack_space[j*2 + i], DEMO_STACK_SIZE, 2, 2, TX_NO_TIME_SLICE, TX_AUTO_START); in tcp_server_entry()
|
| /NetX-Duo-v6.2.1/test/regression/nx_secure_test/ |
| D | nx_secure_x509_name_check_test.c | 2001 UINT j; in thread_0_entry() local 2024 for (j = 0; j < name_check_test_data[i].match_names_count; j++) in thread_0_entry() 2026 …k(&certificate, name_check_test_data[i].match_names[j], strlen(name_check_test_data[i].match_names… in thread_0_entry() 2031 for (j = 0; j < name_check_test_data[i].mismatch_names_count; j++) in thread_0_entry() 2033 …ertificate, name_check_test_data[i].mismatch_names[j], strlen(name_check_test_data[i].mismatch_nam… in thread_0_entry() 2049 for (j = 0; j < name_check_bad_cert_test_data[i].mismatch_names_count; j++) in thread_0_entry() 2051 …me_check_bad_cert_test_data[i].mismatch_names[j], strlen(name_check_bad_cert_test_data[i].mismatch… in thread_0_entry()
|
| D | nx_secure_distinguished_name_compare_test.c | 234 UINT i, j; in thread_0_entry() local 252 for(j = i + 1; j < test_data_size; ++j) in thread_0_entry() 255 …sult = _nx_secure_x509_distinguished_name_compare(&test_data[i], &test_data[j], NX_SECURE_X509_NAM… in thread_0_entry() 258 …intf("\nError in distinguished name compare. First name index: %d, Second name index: %d\n", i, j); in thread_0_entry() 263 …lt = compare_result = _nx_secure_x509_distinguished_name_compare(&test_data[j], &test_data[i], NX_… in thread_0_entry() 267 …intf("\nError in distinguished name compare. First name index: %d, Second name index: %d\n", j, i); in thread_0_entry()
|
| D | nx_secure_tls_empty_clienthello_extension_test.c | 265 UINT status, j; in ntest_0_entry() local 283 for (j = 0; j < sizeof(test_array)/sizeof(TEST_POINT); j++) in ntest_0_entry() 293 do_something_if_fail(test_array[j].expected_return == status); in ntest_0_entry() 317 UINT j; in ntest_1_entry() local 338 for (j = 0; j < sizeof(test_array)/sizeof(TEST_POINT); j++) in ntest_1_entry() 367 …CPY(packet_buffer + sizeof(client_hello_empty_key_share), test_array[j].value, test_array[j].size); in ntest_1_entry() 370 …nd_packet, packet_buffer, sizeof(client_hello_empty_key_share) + test_array[j].size, tls_client_se… in ntest_1_entry()
|
| D | nx_secure_tls_1_3_clienthello_length_checking_test.c | 325 UINT status, j; in ntest_0_entry() local 343 for (j = 0; j < sizeof(test_array)/sizeof(TEST_POINT); j++) in ntest_0_entry() 353 do_something_if_fail(test_array[j].expected_return == status); in ntest_0_entry() 377 UINT j; in ntest_1_entry() local 397 for (j = 0; j < sizeof(test_array)/sizeof(TEST_POINT); j++) in ntest_1_entry() 426 … NX_SECURE_MEMCPY(packet_buffer + test_array[j].location, test_array[j].value, test_array[j].size); in ntest_1_entry()
|
| D | nx_secure_tls_1_3_serverhello_length_checking_test.c | 302 UINT status, j; in ntest_0_entry() local 321 for (j = 0; j < sizeof(test_array)/sizeof(TEST_POINT); j++) in ntest_0_entry() 350 … NX_SECURE_MEMCPY(packet_buffer + test_array[j].location, test_array[j].value, test_array[j].size); in ntest_0_entry() 374 UINT j; in ntest_1_entry() local 390 for (j = 0; j < sizeof(test_array)/sizeof(TEST_POINT); j++) in ntest_1_entry() 404 do_something_if_fail(test_array[j].expected_return == status); in ntest_1_entry()
|
| /NetX-Duo-v6.2.1/test/regression/cloud_test/ |
| D | netx_cloud_module_event_test.c | 82 UINT j; in test_entry() local 163 for (j = 0; j < 3; j++) in test_entry() 165 … if ((cloud_module[j].nx_cloud_module_event_1 != module_event[j].nx_cloud_module_event_1) || in test_entry() 166 … (cloud_module[j].nx_cloud_module_event_2 != module_event[j].nx_cloud_module_event_2) || in test_entry() 167 … (cloud_module[j].nx_cloud_module_event_3 != module_event[j].nx_cloud_module_event_3) || in test_entry() 168 … (cloud_module[j].nx_cloud_module_event_4 != module_event[j].nx_cloud_module_event_4)) in test_entry()
|
| /NetX-Duo-v6.2.1/nx_secure/src/ |
| D | nx_secure_crypto_rng_self_test.c | 82 UINT i, j; in _nx_secure_crypto_rng_self_test() local 89 for (j = 0; j < i; j++) in _nx_secure_crypto_rng_self_test() 91 if (results[i] == results[j]) in _nx_secure_crypto_rng_self_test()
|
| /NetX-Duo-v6.2.1/test/regression/snmp_test/ |
| D | netx_snmp_no_security_function_test.c | 430 UINT j; in check_valid_response() local 442 for (j = 0; j < data_size; j++) in check_valid_response() 449 printf("%d. 0%x 0%x ", j, *(agent_packet -> nx_packet_prepend_ptr + j), work_ptr[j]); in check_valid_response() 455 if (*(agent_packet -> nx_packet_prepend_ptr + j) != work_ptr[j]) in check_valid_response() 465 if (j == 109) in check_valid_response() 469 if ((work_ptr[j] == 2) && (*(agent_packet -> nx_packet_prepend_ptr+j) == 1)) in check_valid_response() 476 j++; in check_valid_response() 478 printf("Packet %d skipping %d'th element for comparison\n", packet_number, j); in check_valid_response() 484 else if (j == 110) in check_valid_response() 489 … printf("Packet %d skipping timer tick data at %d'th index for comparison\n", packet_number, j); in check_valid_response() [all …]
|
| /NetX-Duo-v6.2.1/crypto_libraries/src/ |
| D | nx_crypto_huge_number.c | 1295 UINT i, j; in _nx_crypto_huge_number_square() local 1309 for (j = i + 1; j < value_size; j++) in _nx_crypto_huge_number_square() 1312 product += result_buffer[i + j] + (HN_UBASE2)value_buffer[i] * value_buffer[j]; in _nx_crypto_huge_number_square() 1313 result_buffer[i + j] = product & HN_MASK; in _nx_crypto_huge_number_square() 1315 result_buffer[i + j] = (HN_UBASE)(product >> HN_SHIFT); in _nx_crypto_huge_number_square() 2460 UINT i, j; in _nx_crypto_huge_number_mont() local 2481 for (j = 0; j < y_len; j++) in _nx_crypto_huge_number_mont() 2484 product += result_buffer[j] + (HN_UBASE2)xi * y_buffer[j]; in _nx_crypto_huge_number_mont() 2485 result_buffer[j] = (product & HN_MASK); in _nx_crypto_huge_number_mont() 2487 for (; j < (m_len + 1); j++) in _nx_crypto_huge_number_mont() [all …]
|
| /NetX-Duo-v6.2.1/test/regression/web_test/ |
| D | http_digest_authentication.c | 10 UINT i,j; in http_hex_ascii_convert() local 15 j = 0; in http_hex_ascii_convert() 26 destination[j++] = (CHAR)(digit + '0'); in http_hex_ascii_convert() 28 destination[j++] = (CHAR)(digit + 'a' - 10); in http_hex_ascii_convert() 35 destination[j++] = (CHAR)(digit + '0'); in http_hex_ascii_convert() 37 destination[j++] = (CHAR)(digit + 'a' - 10); in http_hex_ascii_convert() 41 destination[j] = (CHAR) NX_NULL; in http_hex_ascii_convert()
|
| D | netx_web_chunked_request_additional_test.c | 243 UINT i, j; in thread_client_entry() local 336 for (j = 0; j < test_num; j++) in thread_client_entry() 339 chunk_size = test_chunk[j]; in thread_client_entry() 340 if (j == test_num - 1) in thread_client_entry() 421 for (j = 0; j < test_num; j++) in thread_client_entry() 424 chunk_size = test_chunk[j]; in thread_client_entry() 425 if (j == test_num - 1) in thread_client_entry() 442 if (j == 1) in thread_client_entry() 457 if (j == 1) in thread_client_entry()
|
| D | netx_web_chunked_request_test.c | 243 UINT i, j; in thread_client_entry() local 329 for (j = 0; j < test_num; j++) in thread_client_entry() 332 chunk_size = test_chunk[j]; in thread_client_entry() 333 if (j == test_num - 1) in thread_client_entry() 414 for (j = 0; j < test_num; j++) in thread_client_entry() 417 chunk_size = test_chunk[j]; in thread_client_entry() 418 if (j == test_num - 1) in thread_client_entry()
|
| /NetX-Duo-v6.2.1/test/regression/netxduo_test/ |
| D | netx_low_watermark_test.c | 136 UINT i, j; in thread_0_entry() local 180 for (j = 1; j < POOL_1_COUNT; j++) in thread_0_entry() 184 if (i > j) in thread_0_entry() 187 max = j; in thread_0_entry() 189 verify_tcp(i, POOL_1_COUNT - j, max, POOL_1_COUNT - max); in thread_0_entry() 190 verify_udp(i, POOL_1_COUNT - j, max, POOL_1_COUNT - max); in thread_0_entry()
|