/NetX-Duo-v6.4.1/test/regression/tsn_test/ |
D | netx_shaper_cbs_test.c | 201 UINT index; in thread_0_entry() local 234 index = 0; in thread_0_entry() 235 hw_queue[index].hw_queue_id = 0; in thread_0_entry() 236 hw_queue[index].priority = 1; in thread_0_entry() 237 hw_queue[index++].type = NX_SHAPER_HW_QUEUE_NORMAL; in thread_0_entry() 239 hw_queue[index].hw_queue_id = 1; in thread_0_entry() 240 hw_queue[index].priority = 2; in thread_0_entry() 241 hw_queue[index++].type = NX_SHAPER_HW_QUEUE_CBS; in thread_0_entry() 243 hw_queue[index].hw_queue_id = 2; in thread_0_entry() 244 hw_queue[index].priority = 3; in thread_0_entry() [all …]
|
/NetX-Duo-v6.4.1/test/regression/nx_secure_test/ |
D | nx_secure_expiration_time_test.c | 12 #define date_2_chars_to_int(buffer, index) (LONG)(((buffer[index] - '0') * 10) + (buffer[index + 1… argument 22 UINT index; in _nx_secure_x509_asn1_time_to_unix_convert() local 24 index = 0; in _nx_secure_x509_asn1_time_to_unix_convert() 39 index = 10; in _nx_secure_x509_asn1_time_to_unix_convert() 42 if(asn1_time[index] != 'Z' && asn1_time[index] != '+' && asn1_time[index] != '-') in _nx_secure_x509_asn1_time_to_unix_convert() 44 second = date_2_chars_to_int(asn1_time, index); in _nx_secure_x509_asn1_time_to_unix_convert() 45 index += 2; in _nx_secure_x509_asn1_time_to_unix_convert() 49 if(asn1_time[index] != 'Z') in _nx_secure_x509_asn1_time_to_unix_convert() 53 if(asn1_time[index] == '+') in _nx_secure_x509_asn1_time_to_unix_convert() 55 index++; /* Skip the '+' */ in _nx_secure_x509_asn1_time_to_unix_convert() [all …]
|
D | nx_secure_tls_session_create_ext_test.c | 185 for(int index = 0; index < supported_crypto_size; index++) in make_test_crypto_table() local 188 supported_crypto[index]->nx_crypto_algorithm == NX_CRYPTO_PRF_HMAC_SHA2_256) in make_test_crypto_table() 193 if((supported_crypto[index] -> nx_crypto_algorithm & 0xFFFF0000) == NX_CRYPTO_EC_MASK) in make_test_crypto_table() 211 memcpy(crypto_method, supported_crypto[index], sizeof(NX_CRYPTO_METHOD)); in make_test_crypto_table() 234 for(int index = 0; index < test_supported_crypto_size; index++) in cleanup_test_crypto_table() local 236 free(test_supported_crypto[index]); in cleanup_test_crypto_table() 249 for(int index = 0; index < ciphersuite_map_size; index++) in calculate_tls_ciphersuite_info_size() local 251 if(ciphersuite_map[index]->nx_crypto_internal_id == NX_SECURE_APPLICATION_TLS) in calculate_tls_ciphersuite_info_size() 265 for(int index = 0; index < ciphersuite_map_size; index++) in calculate_x509_ciphersuite_info_size() local 267 if(ciphersuite_map[index]->nx_crypto_internal_id == NX_SECURE_APPLICATION_X509) in calculate_x509_ciphersuite_info_size() [all …]
|
D | nx_secure_dtls_concurrent_sessions_retransmit_test.c | 207 static VOID client_dtls_setup(NX_SECURE_DTLS_SESSION *dtls_session_ptr, UINT index) in client_dtls_setup() argument 213 client_metadata[index], in client_dtls_setup() 214 sizeof(client_metadata[index]), in client_dtls_setup() 215 … client_tls_packet_buffer[index], sizeof(client_tls_packet_buffer[index]), in client_dtls_setup() 216 … 1, client_cert_buffer[index], sizeof(client_cert_buffer[index])); in client_dtls_setup() 222 status = nx_secure_x509_certificate_initialize(&client_trusted_ca[index], in client_dtls_setup() 230 …s = nx_secure_dtls_session_trusted_certificate_add(dtls_session_ptr, &client_trusted_ca[index], 1); in client_dtls_setup() 316 UINT index; in test_udp_packet_receive() local 322 index = 0; in test_udp_packet_receive() 326 index = 1; in test_udp_packet_receive() [all …]
|
/NetX-Duo-v6.4.1/nx_secure/src/ |
D | nx_secure_x509_expiration_check.c | 119 #define date_2_chars_to_int(buffer, index) (ULONG)(((buffer[index] - '0') * 10) + (buffer[index + 1… argument 178 UINT index; in _nx_secure_x509_asn1_time_to_unix_convert() local 181 index = 0; in _nx_secure_x509_asn1_time_to_unix_convert() 195 index = 10; in _nx_secure_x509_asn1_time_to_unix_convert() 198 if (asn1_time[index] != 'Z' && asn1_time[index] != '+' && asn1_time[index] != '-') in _nx_secure_x509_asn1_time_to_unix_convert() 200 second = date_2_chars_to_int(asn1_time, index); in _nx_secure_x509_asn1_time_to_unix_convert() 201 index += 2; in _nx_secure_x509_asn1_time_to_unix_convert() 205 if (asn1_time[index] != 'Z') in _nx_secure_x509_asn1_time_to_unix_convert() 209 if (asn1_time[index] == '+') in _nx_secure_x509_asn1_time_to_unix_convert() 211 index++; /* Skip the '+' */ in _nx_secure_x509_asn1_time_to_unix_convert() [all …]
|
D | nx_secure_tls_ciphersuite_lookup.c | 78 USHORT index; in _nx_secure_tls_ciphersuite_lookup() local 86 for (index = 0; index < cipher_table_size; ++index) in _nx_secure_tls_ciphersuite_lookup() 89 if (cipher_table[index].nx_secure_tls_ciphersuite == ciphersuite) in _nx_secure_tls_ciphersuite_lookup() 92 *info = &cipher_table[index]; in _nx_secure_tls_ciphersuite_lookup() 95 *priority = index; in _nx_secure_tls_ciphersuite_lookup()
|
D | nx_secure_x509_find_certificate_methods.c | 81 SHORT index; in _nx_secure_x509_find_certificate_methods() local 84 for (index = 0; index < cert -> nx_secure_x509_cipher_table_size; ++index) in _nx_secure_x509_find_certificate_methods() 87 …if (cert -> nx_secure_x509_cipher_table[index].nx_secure_x509_crypto_identifier == signature_algor… in _nx_secure_x509_find_certificate_methods() 89 *crypto_methods = &cert -> nx_secure_x509_cipher_table[index]; in _nx_secure_x509_find_certificate_methods()
|
D | nx_secure_generate_premaster_secret.c | 91 UINT index; in _nx_secure_generate_premaster_secret() local 259 index = 0; in _nx_secure_generate_premaster_secret() 270 index += 2; in _nx_secure_generate_premaster_secret() 272 … NX_SECURE_MEMSET(&tls_key_material -> nx_secure_tls_pre_master_secret[index], 0, psk_length); in _nx_secure_generate_premaster_secret() 273 index += psk_length; in _nx_secure_generate_premaster_secret() 275 tls_key_material -> nx_secure_tls_pre_master_secret[index] = (UCHAR)(psk_length >> 8); in _nx_secure_generate_premaster_secret() 276 tls_key_material -> nx_secure_tls_pre_master_secret[index + 1] = (UCHAR)psk_length; in _nx_secure_generate_premaster_secret() 277 index += 2; in _nx_secure_generate_premaster_secret() 279 …NX_SECURE_MEMCPY(&tls_key_material -> nx_secure_tls_pre_master_secret[index], psk_data, psk_length… in _nx_secure_generate_premaster_secret() 280 index += psk_length; in _nx_secure_generate_premaster_secret()
|
/NetX-Duo-v6.4.1/common/src/ |
D | nx_nd_cache_add_entry.c | 103 UINT index; in _nx_nd_cache_add_entry() local 120 index = (UINT)((dest_ip[0] + dest_ip[1] + dest_ip[2] + dest_ip[3]) % in _nx_nd_cache_add_entry() 133 for (i = 0; i < NX_IPV6_NEIGHBOR_CACHE_SIZE; i++, index++) in _nx_nd_cache_add_entry() 137 if (index == NX_IPV6_NEIGHBOR_CACHE_SIZE) in _nx_nd_cache_add_entry() 141 index = 0; in _nx_nd_cache_add_entry() 145 if (ip_ptr -> nx_ipv6_nd_cache[index].nx_nd_cache_nd_status == ND_CACHE_STATE_INVALID) in _nx_nd_cache_add_entry() 150 first_available = index; in _nx_nd_cache_add_entry() 156 …if (ip_ptr -> nx_ipv6_nd_cache[index].nx_nd_cache_is_router != NX_NULL || ip_ptr -> nx_ipv6_nd_cac… in _nx_nd_cache_add_entry() 166 if (ip_ptr -> nx_ipv6_nd_cache[index].nx_nd_cache_nd_status == ND_CACHE_STATE_STALE) in _nx_nd_cache_add_entry() 171 if (ip_ptr -> nx_ipv6_nd_cache[index].nx_nd_cache_timer_tick > stale_timer_ticks) in _nx_nd_cache_add_entry() [all …]
|
D | nx_nd_cache_find_entry.c | 85 UINT index; in _nx_nd_cache_find_entry() local 91 index = (UINT)((dest_ip[0] + dest_ip[1] + dest_ip[2] + dest_ip[3]) % in _nx_nd_cache_find_entry() 97 if ((ip_ptr -> nx_ipv6_nd_cache[index].nx_nd_cache_nd_status != ND_CACHE_STATE_INVALID) && in _nx_nd_cache_find_entry() 98 (ip_ptr -> nx_ipv6_nd_cache[index].nx_nd_cache_interface_ptr) && in _nx_nd_cache_find_entry() 99 … (CHECK_IPV6_ADDRESSES_SAME(&ip_ptr -> nx_ipv6_nd_cache[index].nx_nd_cache_dest_ip[0], dest_ip))) in _nx_nd_cache_find_entry() 103 *nd_cache_entry = &ip_ptr -> nx_ipv6_nd_cache[index]; in _nx_nd_cache_find_entry() 108 index++; in _nx_nd_cache_find_entry() 111 if (index == NX_IPV6_NEIGHBOR_CACHE_SIZE) in _nx_nd_cache_find_entry() 113 index = 0; in _nx_nd_cache_find_entry()
|
D | nx_ipv4_option_process.c | 82 UINT index = 0; in _nx_ipv4_option_process() local 99 while (index < ip_option_length) in _nx_ipv4_option_process() 122 index++; in _nx_ipv4_option_process() 139 …MPV4_SEND_PARAMETER_PROBLEM(ip_ptr, packet_ptr, NX_ICMP_ZERO_CODE, (ip_normal_length + index + 2)); in _nx_ipv4_option_process() 164 …MPV4_SEND_PARAMETER_PROBLEM(ip_ptr, packet_ptr, NX_ICMP_ZERO_CODE, (ip_normal_length + index + 2)); in _nx_ipv4_option_process() 178 …MPV4_SEND_PARAMETER_PROBLEM(ip_ptr, packet_ptr, NX_ICMP_ZERO_CODE, (ip_normal_length + index + 3)); in _nx_ipv4_option_process() 192 …MPV4_SEND_PARAMETER_PROBLEM(ip_ptr, packet_ptr, NX_ICMP_ZERO_CODE, (ip_normal_length + index + 4)); in _nx_ipv4_option_process() 206 …MPV4_SEND_PARAMETER_PROBLEM(ip_ptr, packet_ptr, NX_ICMP_ZERO_CODE, (ip_normal_length + index + 4)); in _nx_ipv4_option_process() 224 if ((op_length < 2) || ((index + op_length) > ip_option_length)) in _nx_ipv4_option_process() 233 index += op_length; in _nx_ipv4_option_process()
|
D | nx_tcp_client_socket_unbind.c | 81 UINT index; in _nx_tcp_client_socket_unbind() local 153 index = (UINT)((port + (port >> 8)) & NX_TCP_PORT_TABLE_MASK); in _nx_tcp_client_socket_unbind() 174 ip_ptr -> nx_ip_tcp_port_table[index] = NX_NULL; in _nx_tcp_client_socket_unbind() 190 if (ip_ptr -> nx_ip_tcp_port_table[index] == socket_ptr) in _nx_tcp_client_socket_unbind() 194 ip_ptr -> nx_ip_tcp_port_table[index] = socket_ptr -> nx_tcp_socket_bound_next; in _nx_tcp_client_socket_unbind() 229 if (ip_ptr -> nx_ip_tcp_port_table[index]) in _nx_tcp_client_socket_unbind() 235 ip_ptr -> nx_ip_tcp_port_table[index]; in _nx_tcp_client_socket_unbind() 237 (ip_ptr -> nx_ip_tcp_port_table[index]) -> nx_tcp_socket_bound_previous; in _nx_tcp_client_socket_unbind() 238 …((ip_ptr -> nx_ip_tcp_port_table[index]) -> nx_tcp_socket_bound_previous) -> nx_tcp_socket_bound_n… in _nx_tcp_client_socket_unbind() 240 … (ip_ptr -> nx_ip_tcp_port_table[index]) -> nx_tcp_socket_bound_previous = new_socket_ptr; in _nx_tcp_client_socket_unbind() [all …]
|
D | nx_tcp_client_socket_bind.c | 84 UINT index; in _nx_tcp_client_socket_bind() local 161 index = (UINT)((port + (port >> 8)) & NX_TCP_PORT_TABLE_MASK); in _nx_tcp_client_socket_bind() 164 search_ptr = ip_ptr -> nx_ip_tcp_port_table[index]; in _nx_tcp_client_socket_bind() 205 ip_ptr -> nx_ip_tcp_port_table[index]; in _nx_tcp_client_socket_bind() 207 (ip_ptr -> nx_ip_tcp_port_table[index]) -> nx_tcp_socket_bound_previous; in _nx_tcp_client_socket_bind() 208 …((ip_ptr -> nx_ip_tcp_port_table[index]) -> nx_tcp_socket_bound_previous) -> nx_tcp_socket_bound_n… in _nx_tcp_client_socket_bind() 210 (ip_ptr -> nx_ip_tcp_port_table[index]) -> nx_tcp_socket_bound_previous = socket_ptr; in _nx_tcp_client_socket_bind() 219 ip_ptr -> nx_ip_tcp_port_table[index] = socket_ptr; in _nx_tcp_client_socket_bind()
|
D | nx_udp_socket_unbind.c | 171 UINT index; in _nx_udp_socket_unbind() local 227 index = (UINT)((port + (port >> 8)) & NX_UDP_PORT_TABLE_MASK); in _nx_udp_socket_unbind() 243 ip_ptr -> nx_ip_udp_port_table[index] = NX_NULL; in _nx_udp_socket_unbind() 259 if (ip_ptr -> nx_ip_udp_port_table[index] == socket_ptr) in _nx_udp_socket_unbind() 263 ip_ptr -> nx_ip_udp_port_table[index] = socket_ptr -> nx_udp_socket_bound_next; in _nx_udp_socket_unbind() 395 if (ip_ptr -> nx_ip_udp_port_table[index]) in _nx_udp_socket_unbind() 401 ip_ptr -> nx_ip_udp_port_table[index]; in _nx_udp_socket_unbind() 403 (ip_ptr -> nx_ip_udp_port_table[index]) -> nx_udp_socket_bound_previous; in _nx_udp_socket_unbind() 404 …((ip_ptr -> nx_ip_udp_port_table[index]) -> nx_udp_socket_bound_previous) -> nx_udp_socket_bound_n… in _nx_udp_socket_unbind() 406 … (ip_ptr -> nx_ip_udp_port_table[index]) -> nx_udp_socket_bound_previous = new_socket_ptr; in _nx_udp_socket_unbind() [all …]
|
D | nx_ip_driver_packet_send.c | 87 UINT index; in _nx_ip_driver_packet_send() local 139 index = 0; in _nx_ip_driver_packet_send() 140 while (index < NX_MAX_MULTICAST_GROUPS) in _nx_ip_driver_packet_send() 144 … if (ip_ptr -> nx_ipv4_multicast_entry[index].nx_ipv4_multicast_join_list == destination_ip) in _nx_ip_driver_packet_send() 152 index++; in _nx_ip_driver_packet_send() 156 if (index < NX_MAX_MULTICAST_GROUPS) in _nx_ip_driver_packet_send() 160 if (ip_ptr -> nx_ipv4_multicast_entry[index].nx_ipv4_multicast_loopback_enable) in _nx_ip_driver_packet_send() 181 index = (UINT)((destination_ip + (destination_ip >> 8)) & NX_ARP_TABLE_MASK); in _nx_ip_driver_packet_send() 184 arp_ptr = ip_ptr -> nx_ip_arp_table[index]; in _nx_ip_driver_packet_send() 202 if (arp_ptr == ip_ptr -> nx_ip_arp_table[index]) in _nx_ip_driver_packet_send() [all …]
|
D | nx_tcp_socket_driver_establish.c | 83 UINT index; in _nx_tcp_socket_driver_establish() local 187 index = (UINT)((port + (port >> 8)) & NX_TCP_PORT_TABLE_MASK); in _nx_tcp_socket_driver_establish() 190 if (ip_ptr -> nx_ip_tcp_port_table[index]) in _nx_tcp_socket_driver_establish() 196 ip_ptr -> nx_ip_tcp_port_table[index]; in _nx_tcp_socket_driver_establish() 198 (ip_ptr -> nx_ip_tcp_port_table[index]) -> nx_tcp_socket_bound_previous; in _nx_tcp_socket_driver_establish() 199 …((ip_ptr -> nx_ip_tcp_port_table[index]) -> nx_tcp_socket_bound_previous) -> nx_tcp_socket_bound_n… in _nx_tcp_socket_driver_establish() 201 (ip_ptr -> nx_ip_tcp_port_table[index]) -> nx_tcp_socket_bound_previous = socket_ptr; in _nx_tcp_socket_driver_establish() 210 ip_ptr -> nx_ip_tcp_port_table[index] = socket_ptr; in _nx_tcp_socket_driver_establish()
|
/NetX-Duo-v6.4.1/tsn/src/ |
D | nx_srp.c | 151 UINT index = NX_SRP_TALKER_NUM; in nx_srp_talker_start() local 199 index = (UINT)i; in nx_srp_talker_start() 205 if (index == NX_SRP_TALKER_NUM) in nx_srp_talker_start() 213 srp_ptr -> talker[index].interval = NX_SRP_CLASS_A_INTERVAL; in nx_srp_talker_start() 217 srp_ptr -> talker[index].interval = NX_SRP_CLASS_B_INTERVAL; in nx_srp_talker_start() 225 memcpy(srp_ptr -> talker[index].stream_id, stream_id, 8); /* use case of memcpy is verified. */ in nx_srp_talker_start() 226 srp_ptr -> talker[index].class_id = domain -> sr_class_id; in nx_srp_talker_start() 227 srp_ptr -> talker[index].class_priority = domain -> sr_class_priority; in nx_srp_talker_start() 228 srp_ptr -> talker[index].class_vid = domain -> sr_class_vid; in nx_srp_talker_start() 229 srp_ptr -> talker[index].max_interval_frames = max_interval_frames; in nx_srp_talker_start() [all …]
|
D | nx_shaper.c | 430 UCHAR index = (UCHAR)(interface_ptr -> shaper_container -> hw_queue_number - 1); in nx_shaper_default_mapping_get() local 463 queue_id_list[item_number++] = index--; in nx_shaper_default_mapping_get() 472 queue_id_list[item_number++] = index; in nx_shaper_default_mapping_get() 474 queue_id_list[item_number++] = index; in nx_shaper_default_mapping_get() 476 queue_id_list[item_number++] = index; in nx_shaper_default_mapping_get() 478 queue_id_list[item_number++] = index; in nx_shaper_default_mapping_get() 483 queue_id_list[item_number++] = index; in nx_shaper_default_mapping_get() 485 queue_id_list[item_number++] = index--; in nx_shaper_default_mapping_get() 487 queue_id_list[item_number++] = index; in nx_shaper_default_mapping_get() 489 queue_id_list[item_number++] = index; in nx_shaper_default_mapping_get() [all …]
|
/NetX-Duo-v6.4.1/addons/dhcp/ |
D | nxd_dhcpv6_client.c | 104 UINT _nx_dhcpv6_add_client_duid(NX_DHCPV6 *dhcpv6_ptr, UCHAR *buffer_ptr, UINT *index) in _nx_dhcpv6_add_client_duid() argument 115 (ULONG)sizeof(NX_IPV6_HEADER) - (ULONG)sizeof(NX_UDP_HEADER) - *index; in _nx_dhcpv6_add_client_duid() 133 …memcpy((buffer_ptr + (*index)), &message_word, sizeof(UINT)); /* Use case of memcpy is verified. */ in _nx_dhcpv6_add_client_duid() 134 (*index) += (ULONG)sizeof(UINT); in _nx_dhcpv6_add_client_duid() 144 …memcpy((buffer_ptr + (*index)), &message_word, sizeof(UINT)); /* Use case of memcpy is verified. */ in _nx_dhcpv6_add_client_duid() 145 (*index) += (ULONG)sizeof(UINT); in _nx_dhcpv6_add_client_duid() 158 …memcpy((buffer_ptr + (*index)), &message_word, sizeof(ULONG)); /* Use case of memcpy is verified. … in _nx_dhcpv6_add_client_duid() 159 (*index) += (ULONG)sizeof(ULONG); in _nx_dhcpv6_add_client_duid() 191 memcpy((buffer_ptr + (*index)), mac, i); /* Use case of memcpy is verified. */ in _nx_dhcpv6_add_client_duid() 192 (*index) += i; in _nx_dhcpv6_add_client_duid() [all …]
|
D | nxd_dhcpv6_server.c | 101 …t NX_DHCPV6_SERVER_STRUCT *dhcpv6_server_ptr, UINT option_request, UCHAR *buffer_ptr, UINT *index)) in _nxe_dhcpv6_server_create() argument 195 …t NX_DHCPV6_SERVER_STRUCT *dhcpv6_server_ptr, UINT option_request, UCHAR *buffer_ptr, UINT *index)) in _nx_dhcpv6_server_create() argument 409 … UCHAR *buffer_ptr, UINT *index, UINT available_payload)) in _nxe_dhcpv6_server_option_request_handler_set() argument 473 … UCHAR *buffer_ptr, UINT *index, UINT available_payload)) in _nx_dhcpv6_server_option_request_handler_set() argument 2569 …PV6_SERVER *dhcpv6_server_ptr, NX_DHCPV6_CLIENT *dhcpv6_client_ptr, UCHAR *buffer_ptr, UINT *index) in _nx_dhcpv6_add_preference() argument 2583 NX_IPv6_UDP_PACKET - *index; in _nx_dhcpv6_add_preference() 2601 memcpy(buffer_ptr + *index, &message_word, sizeof(ULONG)); /* Use case of memcpy is verified. */ in _nx_dhcpv6_add_preference() 2603 *index += (ULONG)sizeof(ULONG); in _nx_dhcpv6_add_preference() 2606 *(buffer_ptr + *index) = (UCHAR)(dhcpv6_client_ptr -> nx_dhcpv6_preference.nx_pref_value); in _nx_dhcpv6_add_preference() 2608 (*index)++; in _nx_dhcpv6_add_preference() [all …]
|
/NetX-Duo-v6.4.1/test/regression/netxduo_test/ |
D | netx_checksum_test.c | 115 static void verify_checksum(UINT index); 229 static void verify_checksum(UINT index) in verify_checksum() argument 243 …if(nx_packet_data_append(pkt_ptr, checksum_test_seq[index].pkt_data + checksum_test_seq[index].off… in verify_checksum() 244 checksum_test_seq[index].pkt_size - checksum_test_seq[index].offset, in verify_checksum() 254 if((*(checksum_test_seq[index].pkt_data + PHYSICAL_OFFSET) >> 4) == NX_IP_VERSION_V4) in verify_checksum() 258 ip_header_ptr = (NX_IPV4_HEADER*)(checksum_test_seq[index].pkt_data + PHYSICAL_OFFSET); in verify_checksum() 271 else if((*(checksum_test_seq[index].pkt_data + PHYSICAL_OFFSET) >> 4) == NX_IP_VERSION_V6) in verify_checksum() 274 ipv6_header = (NX_IPV6_HEADER*)(checksum_test_seq[index].pkt_data + PHYSICAL_OFFSET); in verify_checksum() 291 if(checksum_test_seq[index].protocol == NX_IP_VERSION_V4) in verify_checksum() 295 checksum = _nx_ip_checksum_compute(pkt_ptr, checksum_test_seq[index].protocol, in verify_checksum() [all …]
|
/NetX-Duo-v6.4.1/test/regression/mqtt_test/ |
D | netx_mqtt_multiple_receive_test.c | 380 UINT index = 0; in ntest_1_entry() local 532 index = 2; in ntest_1_entry() 533 byte[index++] = ((strlen(TOPIC)) >> 8) & 0xFF; in ntest_1_entry() 534 byte[index++] = (strlen(TOPIC)) & 0xFF; in ntest_1_entry() 535 memcpy(byte + index, TOPIC, strlen(TOPIC)); in ntest_1_entry() 537 index += strlen(TOPIC); in ntest_1_entry() 539 memcpy(byte + index, MESSAGE_QOS0, strlen(MESSAGE_QOS0)); in ntest_1_entry() 540 index += strlen(MESSAGE_QOS0); in ntest_1_entry() 542 byte[1] = index - 2; in ntest_1_entry() 543 packet_ptr->nx_packet_length = index; in ntest_1_entry() [all …]
|
/NetX-Duo-v6.4.1/addons/smtp/ |
D | nxd_smtp_client.c | 1206 UINT index; in _nx_smtp_cmd_helo() local 1226 index = sizeof(NX_SMTP_COMMAND_HELO) - 1; in _nx_smtp_cmd_helo() 1228 _nx_smtp_buffer[index++] = ' '; in _nx_smtp_cmd_helo() 1230 …memcpy(&_nx_smtp_buffer[index], client_ptr -> nx_smtp_client_domain, domain_length); /* Use case … in _nx_smtp_cmd_helo() 1231 index += domain_length; in _nx_smtp_cmd_helo() 1232 …memcpy(&_nx_smtp_buffer[index], NX_SMTP_LINE_TERMINATOR, sizeof(NX_SMTP_LINE_TERMINATOR) - 1); /*… in _nx_smtp_cmd_helo() 1233 index += sizeof(NX_SMTP_LINE_TERMINATOR) - 1; in _nx_smtp_cmd_helo() 1236 …status = _nx_smtp_utility_send_to_server(client_ptr, _nx_smtp_buffer, index, NX_SMTP_CLIENT_SEND_… in _nx_smtp_cmd_helo() 1394 UINT index; in _nx_smtp_cmd_ehlo() local 1414 index = sizeof(NX_SMTP_COMMAND_EHLO) - 1; in _nx_smtp_cmd_ehlo() [all …]
|
/NetX-Duo-v6.4.1/test/regression/bsd_test/ |
D | netx_bsd_tcp_bind_test.c | 206 int index; in bsd_server4_helper_thread_test_2() local 279 index = count; in bsd_server4_helper_thread_test_2() 282 client_data[index].sockfd = newsock; in bsd_server4_helper_thread_test_2() 283 client_data[index].message_id = 0xFFFF; in bsd_server4_helper_thread_test_2() 285 … status = tx_thread_create(&helper_thread[index], "helper thread", bsd_server_helper_thread_entry, in bsd_server4_helper_thread_test_2() 286 … index, stack_space[index], DEMO_STACK_SIZE, 2, 2, TX_NO_TIME_SLICE, in bsd_server4_helper_thread_test_2() 306 int if_index, addr_index, index; in bsd_server6_helper_thread_test_2() local 369 index = count; in bsd_server6_helper_thread_test_2() 372 client_data[index].sockfd = newsock; in bsd_server6_helper_thread_test_2() 373 client_data[index].message_id = 0xFFFF; in bsd_server6_helper_thread_test_2() [all …]
|
/NetX-Duo-v6.4.1/test/regression/azure_iot/ |
D | nx_azure_iot_unit_test.c | 91 for (INT index = 0; index < number_of_data_set; index++) in test_nx_azure_iot_url_encoded_hmac_sha256_calculate_success() local 94 … g_url_encoded_hmac_sha256_data_set[index][0], in test_nx_azure_iot_url_encoded_hmac_sha256_calculate_success() 95 … strlen(g_url_encoded_hmac_sha256_data_set[index][0]), in test_nx_azure_iot_url_encoded_hmac_sha256_calculate_success() 96 … g_url_encoded_hmac_sha256_data_set[index][1], in test_nx_azure_iot_url_encoded_hmac_sha256_calculate_success() 97 … strlen(g_url_encoded_hmac_sha256_data_set[index][1]), in test_nx_azure_iot_url_encoded_hmac_sha256_calculate_success() 100 assert_memory_equal(g_url_encoded_hmac_sha256_data_set[index][2], output_ptr, in test_nx_azure_iot_url_encoded_hmac_sha256_calculate_success() 101 strlen(g_url_encoded_hmac_sha256_data_set[index][2])); in test_nx_azure_iot_url_encoded_hmac_sha256_calculate_success() 293 for (INT index = 0; index < number_of_tests; index++) in demo_entry() local 295 tests[index](); in demo_entry()
|