Home
last modified time | relevance | path

Searched refs:j (Results 1 – 25 of 36) sorted by relevance

12

/NetX-Duo-v6.3.0/common/src/
Dnx_ip_static_route_delete.c119 UINT j; in _nx_ip_static_route_delete() local
126 for (j = i; j < ip_ptr -> nx_ip_routing_table_entry_count; j++) in _nx_ip_static_route_delete()
128 …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()
129 …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()
130 …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()
131 …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()
134 ip_ptr -> nx_ip_routing_table[j - 1].nx_ip_routing_dest_ip = 0; in _nx_ip_static_route_delete()
135 ip_ptr -> nx_ip_routing_table[j - 1].nx_ip_routing_net_mask = 0; in _nx_ip_static_route_delete()
136 ip_ptr -> nx_ip_routing_table[j - 1].nx_ip_routing_next_hop_address = 0; in _nx_ip_static_route_delete()
137 ip_ptr -> nx_ip_routing_table[j - 1].nx_ip_routing_entry_ip_interface = NX_NULL; in _nx_ip_static_route_delete()
Dnx_ip_static_route_add.c147 INT j; in _nx_ip_static_route_add() local
162 for (j = (INT)ip_ptr -> nx_ip_routing_table_entry_count - 1; j >= i; j--) in _nx_ip_static_route_add()
165 ip_ptr -> nx_ip_routing_table[j + 1].nx_ip_routing_dest_ip = in _nx_ip_static_route_add()
166 ip_ptr -> nx_ip_routing_table[j].nx_ip_routing_dest_ip; in _nx_ip_static_route_add()
167 ip_ptr -> nx_ip_routing_table[j + 1].nx_ip_routing_net_mask = in _nx_ip_static_route_add()
168 ip_ptr -> nx_ip_routing_table[j].nx_ip_routing_net_mask; in _nx_ip_static_route_add()
169 ip_ptr -> nx_ip_routing_table[j + 1].nx_ip_routing_next_hop_address = in _nx_ip_static_route_add()
170 ip_ptr -> nx_ip_routing_table[j].nx_ip_routing_next_hop_address; in _nx_ip_static_route_add()
171 ip_ptr -> nx_ip_routing_table[j + 1].nx_ip_routing_entry_ip_interface = in _nx_ip_static_route_add()
172 ip_ptr -> nx_ip_routing_table[j].nx_ip_routing_entry_ip_interface; in _nx_ip_static_route_add()
Dnx_ip_interface_detach.c98 UINT j; in _nx_ip_interface_detach() local
164 for (j = i; j < ip_ptr -> nx_ip_routing_table_entry_count; j++) in _nx_ip_interface_detach()
166 ip_ptr -> nx_ip_routing_table[j].nx_ip_routing_dest_ip = in _nx_ip_interface_detach()
167 ip_ptr -> nx_ip_routing_table[j + 1].nx_ip_routing_dest_ip; in _nx_ip_interface_detach()
168 ip_ptr -> nx_ip_routing_table[j].nx_ip_routing_net_mask = in _nx_ip_interface_detach()
169 ip_ptr -> nx_ip_routing_table[j + 1].nx_ip_routing_net_mask; in _nx_ip_interface_detach()
170 ip_ptr -> nx_ip_routing_table[j].nx_ip_routing_next_hop_address = in _nx_ip_interface_detach()
171 ip_ptr -> nx_ip_routing_table[j + 1].nx_ip_routing_next_hop_address; in _nx_ip_interface_detach()
172 ip_ptr -> nx_ip_routing_table[j].nx_ip_routing_entry_ip_interface = in _nx_ip_interface_detach()
173 ip_ptr -> nx_ip_routing_table[j + 1].nx_ip_routing_entry_ip_interface; in _nx_ip_interface_detach()
[all …]
Dnx_utility.c364 UINT i, j; in _nx_utility_base64_encode() local
409 j = 0; in _nx_utility_base64_encode()
414 while (j < name_size) in _nx_utility_base64_encode()
422 base64name[j++] = (UCHAR)_nx_utility_base64_array[((UCHAR)name[i]) >> 2]; in _nx_utility_base64_encode()
431 …base64name[j++] = (UCHAR)_nx_utility_base64_array[((((UCHAR)name[i]) & 0x3) << 4) | (((UCHAR)name[… in _nx_utility_base64_encode()
437 base64name[j++] = (UCHAR)_nx_utility_base64_array[(((UCHAR)name[i]) & 0x3) << 4]; in _nx_utility_base64_encode()
448 …base64name[j++] = (UCHAR)_nx_utility_base64_array[((((UCHAR)name[i]) & 0xF) << 2) | (((UCHAR)name[… in _nx_utility_base64_encode()
454 base64name[j++] = (UCHAR)_nx_utility_base64_array[(((UCHAR)name[i]) & 0xF) << 2]; in _nx_utility_base64_encode()
463 base64name[j++] = (UCHAR)_nx_utility_base64_array[(((UCHAR)name[i]) & 0x3F)]; in _nx_utility_base64_encode()
474 base64name[j++] = '='; in _nx_utility_base64_encode()
[all …]
Dnxd_ipv6_find_max_prefix_length.c76 UINT i, j, bit, time; in _nxd_ipv6_find_max_prefix_length() local
93 for (j = 0; j < 5; j++) in _nxd_ipv6_find_max_prefix_length()
104 else if (j == 4) in _nxd_ipv6_find_max_prefix_length()
Dnx_ram_network_driver.c681 UINT j; in _nx_ram_network_driver_output() local
685 for (j = 0; j < 6; j++) in _nx_ram_network_driver_output()
690 for (j = 0; j < 6; j++) in _nx_ram_network_driver_output()
698 for (j = 0; j < (packet_ptr -> nx_packet_length - NX_ETHERNET_SIZE); j++) in _nx_ram_network_driver_output()
Dnx_md5.c425 UINT i, j; in _nx_md5_process_buffer() local
437 j = 0; in _nx_md5_process_buffer()
442 …x[i] = ((ULONG) buffer[j]) | (((ULONG) buffer[j+1]) << 8) | (((ULONG) buffer[j+2]) << 16) | (((UL… in _nx_md5_process_buffer()
445 j = j + 4; in _nx_md5_process_buffer()
/NetX-Duo-v6.3.0/addons/ftp/
Dnxd_ftp_server.c1622 UINT i, j; in _nx_ftp_server_command_process() local
1751 … for (j = 0; j < (NX_FTP_USERNAME_SIZE - 1) && (j < packet_ptr -> nx_packet_length); j++) in _nx_ftp_server_command_process()
1755 client_req_ptr -> nx_ftp_client_request_username[j] = (CHAR) buffer_ptr[j]; in _nx_ftp_server_command_process()
1758 if ((buffer_ptr[j] == 13) || (buffer_ptr[j] == 10) || (buffer_ptr[j] == 0)) in _nx_ftp_server_command_process()
1763 client_req_ptr -> nx_ftp_client_request_username[j] = NX_NULL; in _nx_ftp_server_command_process()
1778 … for (j = 0; j < (NX_FTP_PASSWORD_SIZE - 1) && (j < packet_ptr -> nx_packet_length); j++) in _nx_ftp_server_command_process()
1782 client_req_ptr -> nx_ftp_client_request_password[j] = (CHAR) buffer_ptr[j]; in _nx_ftp_server_command_process()
1785 if ((buffer_ptr[j] == 13) || (buffer_ptr[j] == 10) || (buffer_ptr[j] == 0)) in _nx_ftp_server_command_process()
1790 client_req_ptr -> nx_ftp_client_request_password[j] = NX_NULL; in _nx_ftp_server_command_process()
1983 j = 0; in _nx_ftp_server_command_process()
[all …]
Dnxd_ftp_client.c4709 UINT j; in _nx_ftp_utility_convert_number_ascii() local
4713 for (j = 0; j <=7 ; j++) in _nx_ftp_utility_convert_number_ascii()
4736 if (j == 3 || j == 7) in _nx_ftp_utility_convert_number_ascii()
4797 UINT j; in _nx_ftp_utility_convert_portnumber_ascii() local
4809 for (j = (*numstring_length); j != 0; j--) in _nx_ftp_utility_convert_portnumber_ascii()
4813 numstring[j] = numstring[j-1]; in _nx_ftp_utility_convert_portnumber_ascii()
/NetX-Duo-v6.3.0/nx_secure/src/
Dnx_secure_crypto_rng_self_test.c83 UINT i, j; in _nx_secure_crypto_rng_self_test() local
90 for (j = 0; j < i; j++) in _nx_secure_crypto_rng_self_test()
92 if (results[i] == results[j]) in _nx_secure_crypto_rng_self_test()
Dnx_secure_tls_process_clienthello_extensions.c514 UINT i, j, k; in _nx_secure_tls_proc_clienthello_sec_sa_extension() local
580 for (j = 0; j < groups_len; j += 2) in _nx_secure_tls_proc_clienthello_sec_sa_extension()
582 group = (USHORT)((groups[j] << 8) + groups[j + 1]); in _nx_secure_tls_proc_clienthello_sec_sa_extension()
661 for (j = 2; j < signature_algorithms_len; j += 2) in _nx_secure_tls_proc_clienthello_sec_sa_extension()
663 if (signature_algorithms[j + 1] != expected_signature) in _nx_secure_tls_proc_clienthello_sec_sa_extension()
668 … signature_algorithm = (USHORT)((signature_algorithms[j] << 8) + signature_algorithms[j + 1]); in _nx_secure_tls_proc_clienthello_sec_sa_extension()
Dnx_secure_tls_send_clienthello_extensions.c421 UINT j; in _nx_secure_tls_get_signature_algorithm() local
487 … for (j = 0; j < tls_session->nx_secure_tls_ecc.nx_secure_tls_ecc_supported_groups_count; j++) in _nx_secure_tls_get_signature_algorithm()
489 if (named_curve == tls_session->nx_secure_tls_ecc.nx_secure_tls_ecc_supported_groups[j]) in _nx_secure_tls_get_signature_algorithm()
/NetX-Duo-v6.3.0/addons/azure_iot/azure_iot_security_module/iot-security-module-core/deps/flatcc/src/runtime/
Drefmap.c125 size_t N, i, j, k; in flatcc_refmap_insert() local
137 j = _flatcc_refmap_probe(k, i, N); in flatcc_refmap_insert()
138 while (T[j].src) { in flatcc_refmap_insert()
139 if (T[j].src == src) { in flatcc_refmap_insert()
140 return T[j].ref = ref; in flatcc_refmap_insert()
143 j = _flatcc_refmap_probe(k, i, N); in flatcc_refmap_insert()
146 T[j].src = src; in flatcc_refmap_insert()
147 return T[j].ref = ref; in flatcc_refmap_insert()
153 size_t N, i, j, k; in flatcc_refmap_find() local
162 j = _flatcc_refmap_probe(k, i, N); in flatcc_refmap_find()
[all …]
/NetX-Duo-v6.3.0/addons/azure_iot/azure_iot_security_module/iot-security-module-core/src/utils/
Dstring_utils.c161 for (size_t j = 0 ; j < len; j++) in replace_chars() local
163 if (char_array[j] == replace_from) { in replace_chars()
164 char_array[j] = replace_to; in replace_chars()
/NetX-Duo-v6.3.0/crypto_libraries/src/
Dnx_crypto_huge_number.c1296 UINT i, j; in _nx_crypto_huge_number_square() local
1310 for (j = i + 1; j < value_size; j++) in _nx_crypto_huge_number_square()
1313 product += result_buffer[i + j] + (HN_UBASE2)value_buffer[i] * value_buffer[j]; in _nx_crypto_huge_number_square()
1314 result_buffer[i + j] = product & HN_MASK; in _nx_crypto_huge_number_square()
1316 result_buffer[i + j] = (HN_UBASE)(product >> HN_SHIFT); in _nx_crypto_huge_number_square()
2461 UINT i, j; in _nx_crypto_huge_number_mont() local
2482 for (j = 0; j < y_len; j++) in _nx_crypto_huge_number_mont()
2485 product += result_buffer[j] + (HN_UBASE2)xi * y_buffer[j]; in _nx_crypto_huge_number_mont()
2486 result_buffer[j] = (product & HN_MASK); in _nx_crypto_huge_number_mont()
2488 for (; j < (m_len + 1); j++) in _nx_crypto_huge_number_mont()
[all …]
Dnx_crypto_gcm.c205 INT j; in _nx_crypto_gcm_multi() local
224 j = NX_CRYPTO_GCM_BLOCK_SIZE - 1; in _nx_crypto_gcm_multi()
225 lsb = v[j]; in _nx_crypto_gcm_multi()
228 for (; j > 0; j--) in _nx_crypto_gcm_multi()
230 v[j] = (UCHAR)((v[j] >> 1) | (v[j - 1] << 7)); in _nx_crypto_gcm_multi()
Dnx_crypto_ec.c2729 UINT i, j; in _nx_crypto_ec_naf_compute() local
2738 for (j = 0; j < (HN_SHIFT - 1); j++) in _nx_crypto_ec_naf_compute()
3014 UINT j; in _nx_crypto_ec_fp_fixed_multiple() local
3041 for (j = 0; j < fixed_points -> nx_crypto_ec_fixed_points_window_width; j++) in _nx_crypto_ec_fp_fixed_multiple()
3044 transpose_d |= (((value >> (bit_index & (NX_CRYPTO_HUGE_NUMBER_BITS - 1))) & 1) << j); in _nx_crypto_ec_fp_fixed_multiple()
3066 for (j = 0; j < fixed_points -> nx_crypto_ec_fixed_points_window_width; j++) in _nx_crypto_ec_fp_fixed_multiple()
3069 transpose_d |= (((value >> (bit_index & (NX_CRYPTO_HUGE_NUMBER_BITS - 1))) & 1) << j); in _nx_crypto_ec_fp_fixed_multiple()
3362 UINT i, j; in _nx_crypto_ec_precomputation() local
3435 for (j = 1; j < offset - 1; j++) in _nx_crypto_ec_precomputation()
3437 NX_CRYPTO_HUGE_NUMBER_COPY(&array[offset + j - 1].nx_crypto_ec_point_x, in _nx_crypto_ec_precomputation()
[all …]
Dnx_crypto_md5.c442 UINT i, j; in _nx_crypto_md5_process_buffer() local
454 j = 0; in _nx_crypto_md5_process_buffer()
459 …x[i] = ((ULONG)buffer[j]) | (((ULONG)buffer[j + 1]) << 8) | (((ULONG)buffer[j + 2]) << 16) | (((U… in _nx_crypto_md5_process_buffer()
462 j = j + 4; in _nx_crypto_md5_process_buffer()
Dnx_crypto_drbg.c752 UINT i, j; in _nx_crypto_drbg_block_cipher_df() local
804 for (j = 0; j < NX_CRYPTO_DRBG_BLOCK_LENGTH; j++) in _nx_crypto_drbg_block_cipher_df()
806 bcc_chain[j] ^= iv[i + j]; in _nx_crypto_drbg_block_cipher_df()
/NetX-Duo-v6.3.0/addons/pop3/
Dnxd_pop3_client.c2288 UINT j = 0; in _nx_pop3_parse_response() local
2366 while (j < argument_index && i < buffer_length) in _nx_pop3_parse_response()
2376 j++; in _nx_pop3_parse_response()
2391 (*buffer == '-' && j == 0)) in _nx_pop3_parse_response()
2397 j++; in _nx_pop3_parse_response()
2402 if (j == argument_index - 1) in _nx_pop3_parse_response()
2472 UINT i,j; in _nx_pop3_hex_ascii_convert() local
2477 j = 0; in _nx_pop3_hex_ascii_convert()
2488 destination[j++] = (CHAR)(digit + '0'); in _nx_pop3_hex_ascii_convert()
2490 destination[j++] = (CHAR)(digit + 'a' - 10); in _nx_pop3_hex_ascii_convert()
[all …]
/NetX-Duo-v6.3.0/addons/ppp/
Dnx_ppp.c4408 UINT length, password_length, i, j; in _nx_ppp_pap_authentication_request() local
4484 for (j = 0; j < password_length; j++) in _nx_ppp_pap_authentication_request()
4488 packet_ptr -> nx_packet_prepend_ptr[j+i+8] = password[j]; in _nx_ppp_pap_authentication_request()
4554 UCHAR length, password_length, i, j; in _nx_ppp_pap_login_valid() local
4615 for(j = 0; j < password_length; j++) in _nx_ppp_pap_login_valid()
4619 password[j] = packet_ptr -> nx_packet_prepend_ptr[j+i+8]; in _nx_ppp_pap_login_valid()
4623 password[j] = 0; in _nx_ppp_pap_login_valid()
5646 UINT length, length1, i, j; in _nx_ppp_chap_challenge_send() local
5728 for (j = 0; j < length1; j++) in _nx_ppp_chap_challenge_send()
5732 … packet_ptr -> nx_packet_prepend_ptr[j+i+7] = (UCHAR)(ppp_ptr -> nx_ppp_chap_challenger_name[j]); in _nx_ppp_chap_challenge_send()
[all …]
/NetX-Duo-v6.3.0/samples/
Ddemo_netx_duo_mdns.c577 UINT j = 0; in thread_0_entry() local
673 j = 100; in thread_0_entry()
678 if ((time_count % i) == (101 - j)) in thread_0_entry()
683 else if ((time_count % i) == (110 - j)) in thread_0_entry()
687 else if ((time_count % i) == (120 - j)) in thread_0_entry()
691 else if ((time_count % i) == (130 - j)) in thread_0_entry()
696 else if ((time_count % i) == (140 - j)) in thread_0_entry()
/NetX-Duo-v6.3.0/addons/dhcp/
Dnxd_dhcp_server.c235 UINT i, j; in _nx_dhcp_server_create() local
264 for (j = 0; j < NX_DHCP_IP_ADDRESS_MAX_LIST_SIZE; j++) in _nx_dhcp_server_create()
267 memset(&dhcp_ptr -> nx_dhcp_interface_table[i].nx_dhcp_ip_address_list[j], in _nx_dhcp_server_create()
2511 UINT j; in _nx_dhcp_set_server_options() local
2517 j = 0; in _nx_dhcp_set_server_options()
2519 while(buffer_size && (j < NX_DHCP_SERVER_OPTION_LIST_SIZE)) in _nx_dhcp_set_server_options()
2545 dhcp_ptr -> nx_dhcp_server_options[j] = digit; in _nx_dhcp_set_server_options()
2546 j++; in _nx_dhcp_set_server_options()
2550 dhcp_ptr -> nx_dhcp_server_option_count = j; in _nx_dhcp_set_server_options()
2606 UINT j; in _nx_dhcp_parse_next_option() local
[all …]
/NetX-Duo-v6.3.0/addons/web/
Dnx_web_http_client.c461 UINT j; in _nx_web_http_client_content_type_header_add() local
465 j = _nx_web_http_client_type_get(resource, string1); in _nx_web_http_client_content_type_header_add()
466 _nx_web_http_client_request_header_add(client_ptr, "Content-Type", 12, string1, j, wait_option); in _nx_web_http_client_content_type_header_add()
521 UINT j; in _nx_web_http_client_content_length_header_add() local
525 j = _nx_web_http_client_number_convert(total_bytes, string1); in _nx_web_http_client_content_length_header_add()
526 … _nx_web_http_client_request_header_add(client_ptr, "Content-Length", 14, string1, j, wait_option); in _nx_web_http_client_content_length_header_add()
2492 UINT temp_size, i, j; in _nx_web_http_client_request_chunked_set() local
2503 for (j = i; j > 0; j--) in _nx_web_http_client_request_chunked_set()
2505 temp_string[j] = temp_string[j - 1]; in _nx_web_http_client_request_chunked_set()
6598 UINT j; in _nx_web_http_client_number_convert() local
[all …]
/NetX-Duo-v6.3.0/addons/snmp/
Dnxd_snmp.c6837 UINT j, padding; in _nxd_snmp_agent_trapv3_send() local
8160 j = 8; in _nxd_snmp_agent_trapv3_send()
8168 key1[i] = temp_ptr[j+i] ^ temp_ptr[(j-8)+i]; in _nxd_snmp_agent_trapv3_send()
8172 _nx_des_encrypt(&(agent_ptr -> nx_snmp_agent_v3_des_data), &key1[0], &temp_ptr[j]); in _nxd_snmp_agent_trapv3_send()
8175 j = j + 8; in _nxd_snmp_agent_trapv3_send()
8176 } while (j < trap_pdu_length); in _nxd_snmp_agent_trapv3_send()
8648 UINT j, padding; in _nxd_snmp_agent_trapv3_oid_send() local
9865 j = 8; in _nxd_snmp_agent_trapv3_oid_send()
9873 key1[i] = temp_ptr[j+i] ^ temp_ptr[(j-8)+i]; in _nxd_snmp_agent_trapv3_oid_send()
9877 _nx_des_encrypt(&(agent_ptr -> nx_snmp_agent_v3_des_data), &key1[0], &temp_ptr[j]); in _nxd_snmp_agent_trapv3_oid_send()
[all …]

12