Home
last modified time | relevance | path

Searched refs:size (Results 1 – 25 of 71) sorted by relevance

123

/NetX-Duo-v6.4.1/test/regression/netxduo_test/
Dnetx_utility_test.c56 UINT size; in ntest_0_entry() local
560 size = _nx_utility_uint_to_string(number, 10, out_buffer, sizeof(out_buffer)); in ntest_0_entry()
561 if ((size != 4) || (memcmp(out_buffer, "4660", size) != 0)) in ntest_0_entry()
567 size = _nx_utility_uint_to_string(number, 16, out_buffer, sizeof(out_buffer)); in ntest_0_entry()
568 if ((size != 4) || (memcmp(out_buffer, "1234", size) != 0)) in ntest_0_entry()
574 size = _nx_utility_uint_to_string(number, 8, out_buffer, sizeof(out_buffer)); in ntest_0_entry()
575 if ((size != 5) || (memcmp(out_buffer, "11064", size) != 0)) in ntest_0_entry()
582 size = _nx_utility_uint_to_string(number, 10, out_buffer, sizeof(out_buffer)); in ntest_0_entry()
583 if ((size != 10) || (memcmp(out_buffer, "4294967295", size) != 0)) in ntest_0_entry()
589 size = _nx_utility_uint_to_string(number, 16, out_buffer, sizeof(out_buffer)); in ntest_0_entry()
[all …]
Dnetx_packet_basic_test.c142 ULONG size; in ntest_0_entry() local
286 status = nx_packet_data_retrieve(my_packet2, local_buffer, &size); in ntest_0_entry()
289 …if ((status) || (my_packet2 -> nx_packet_length != 28) || (size != 28) || (local_buffer[0] != 'A')) in ntest_0_entry()
340 status = nx_packet_data_retrieve(my_packet2, local_buffer, &size); in ntest_0_entry()
345 (size != my_packet2 -> nx_packet_length) || in ntest_0_entry()
355 status = nx_packet_data_retrieve(my_packet3, local_buffer, &size); in ntest_0_entry()
359 (size != my_packet2 -> nx_packet_length) || in ntest_0_entry()
535 status = nx_packet_data_retrieve(my_packet1, buffer, &size); in ntest_0_entry()
546 status = nx_packet_data_extract_offset(my_packet1, 30, buffer, sizeof(buffer), &size); in ntest_0_entry()
560 status = nx_packet_data_extract_offset(my_packet1, 0, buffer, sizeof(buffer), &size); in ntest_0_entry()
[all …]
Dnetx_forward_icmp_small_header_test2.c156 UINT size; in ntest_0_entry() local
219 size = 256 - NX_IPv4_ICMP_PACKET - NX_ICMP_HEADER_SIZE; in ntest_0_entry()
222 for (i = 0; i < size; i++) in ntest_0_entry()
226 …status = nx_icmp_ping(&ip_1, IP_ADDRESS(2, 2, 3, 5), data, size, &my_packet, NX_IP_PERIODIC_RATE); in ntest_0_entry()
229 if ((status != NX_SUCCESS) || (my_packet -> nx_packet_length != size)) in ntest_0_entry()
Dnetx_forward_icmp_small_header_test3.c156 UINT size; in ntest_0_entry() local
219 size = 256 - NX_IPv4_ICMP_PACKET - NX_ICMP_HEADER_SIZE; in ntest_0_entry()
222 for (i = 0; i < size; i++) in ntest_0_entry()
226 …status = nx_icmp_ping(&ip_1, IP_ADDRESS(2, 2, 3, 5), data, size, &my_packet, NX_IP_PERIODIC_RATE); in ntest_0_entry()
/NetX-Duo-v6.4.1/crypto_libraries/src/
Dnx_crypto_initialize.c78 NX_CRYPTO_KEEP VOID *_nx_crypto_self_test_memcpy(void *dest, const void *src, size_t size) in _nx_crypto_self_test_memcpy() argument
86 for(i = 0; i < size; i++) in _nx_crypto_self_test_memcpy()
141 NX_CRYPTO_KEEP VOID *_nx_crypto_self_test_memset(void *dest, int value, size_t size) in _nx_crypto_self_test_memset() argument
149 for(i = 0; i < size; i++) in _nx_crypto_self_test_memset()
206 NX_CRYPTO_KEEP int _nx_crypto_self_test_memcmp(const void *str1, const void *str2, size_t size) in _nx_crypto_self_test_memcmp() argument
214 for(i = 0; i < size; i++) in _nx_crypto_self_test_memcmp()
269 NX_CRYPTO_KEEP void* _nx_crypto_self_test_memmove(void *dest, const void *src, size_t size) in _nx_crypto_self_test_memmove() argument
279 for(i = 0; i < size; i++) in _nx_crypto_self_test_memmove()
287 for(i = size; i != 0; i--) in _nx_crypto_self_test_memmove()
Dnx_crypto_ecjpake.c787 UINT size; in _nx_crypto_ecjpake_schnorr_zkp_hash() local
826 size = g -> nx_crypto_ec_point_x.nx_crypto_huge_buffer_size + in _nx_crypto_ecjpake_schnorr_zkp_hash()
828 _nx_crypto_ec_point_extract_uncompressed(curve, g, (UCHAR *)scratch, size, &size); in _nx_crypto_ecjpake_schnorr_zkp_hash()
829 NX_CRYPTO_CHANGE_ULONG_ENDIAN(size); in _nx_crypto_ecjpake_schnorr_zkp_hash()
835 (UCHAR *)&size, in _nx_crypto_ecjpake_schnorr_zkp_hash()
850 NX_CRYPTO_CHANGE_ULONG_ENDIAN(size); in _nx_crypto_ecjpake_schnorr_zkp_hash()
857 size, in _nx_crypto_ecjpake_schnorr_zkp_hash()
872 size = v -> nx_crypto_ec_point_x.nx_crypto_huge_buffer_size + in _nx_crypto_ecjpake_schnorr_zkp_hash()
874 _nx_crypto_ec_point_extract_uncompressed(curve, v, (UCHAR *)scratch, size, &size); in _nx_crypto_ecjpake_schnorr_zkp_hash()
875 NX_CRYPTO_CHANGE_ULONG_ENDIAN(size); in _nx_crypto_ecjpake_schnorr_zkp_hash()
[all …]
Dnx_crypto_huge_number.c537 UINT size = value -> nx_crypto_huge_number_size; in _nx_crypto_huge_number_add_digit_unsigned() local
543 for (i = 1; (i < size) && ((product >> HN_SHIFT) != 0); i++) in _nx_crypto_huge_number_add_digit_unsigned()
550 if ((product >> HN_SHIFT) && (i == size)) in _nx_crypto_huge_number_add_digit_unsigned()
612 UINT size = value -> nx_crypto_huge_number_size; in _nx_crypto_huge_number_subtract_digit_unsigned() local
618 for (i = 1; (i < size) && ((product >> HN_SHIFT) == 0); i++) in _nx_crypto_huge_number_subtract_digit_unsigned()
812 INT size; in _nx_crypto_huge_number_adjust_size() local
815 for (size = (INT)(val -> nx_crypto_huge_number_size - 1); size >= 0; size--) in _nx_crypto_huge_number_adjust_size()
817 if (val -> nx_crypto_huge_number_data[size] != 0) in _nx_crypto_huge_number_adjust_size()
822 val -> nx_crypto_huge_number_size = (UINT)(size + 1); in _nx_crypto_huge_number_adjust_size()
1202 UINT size; in _nx_crypto_huge_number_multiply_digit() local
[all …]
/NetX-Duo-v6.4.1/test/regression/dhcp_test/
Dnetx_dhcp_clone_function.c93 UINT size = *(++data); in dhcp_search_buffer() local
96 data += size + 1; in dhcp_search_buffer()
97 i += size + 1; in dhcp_search_buffer()
104 ULONG dhcp_get_data(UCHAR *data, UINT size) in dhcp_get_data() argument
111 while (size-- > 0) in dhcp_get_data()
/NetX-Duo-v6.4.1/crypto_libraries/inc/
Dnx_crypto.h105 VOID *_nx_crypto_self_test_memcpy(void *dest, const void *src, size_t size);
106 VOID *_nx_crypto_self_test_memmove(void *dest, const void *src, size_t size);
107 VOID *_nx_crypto_self_test_memset(void *dest, int value, size_t size);
108 int _nx_crypto_self_test_memcmp(const void *dest, const void *src, size_t size);
127 VOID *(*volatile _nx_crypto_memset_ptr)(void *dest, int value, size_t size) = memset;
128 VOID *(*volatile _nx_crypto_memcpy_ptr)(void *dest, const void *src, size_t size) = memcpy;
130 extern VOID *(*volatile _nx_crypto_memset_ptr)(void *dest, int value, size_t size);
131 extern VOID *(*volatile _nx_crypto_memcpy_ptr)(void *dest, const void *src, size_t size);
Dnx_crypto_huge_number.h133 #define NX_CRYPTO_HUGE_NUMBER_INITIALIZE(hn, buff, size) \ argument
136 …(hn) -> nx_crypto_huge_buffer_size = (((size) + HN_SIZE_ROUND) >> HN_SIZE_SHIFT) << HN_SIZE_SHIFT;\
138 (buff) = (buff) + (((size) + HN_SIZE_ROUND) >> HN_SIZE_SHIFT);
168 …T _nx_crypto_huge_number_setup(NX_CRYPTO_HUGE_NUMBER *number, const UCHAR *byte_stream, UINT size);
/NetX-Duo-v6.4.1/common/src/
Dnx_packet_copy.c87 ULONG size; /* Packet data size */ in _nx_packet_copy() local
165size = (ULONG)(packet_ptr -> nx_packet_append_ptr - packet_ptr -> nx_packet_data_start); in _nx_packet_copy()
169 …status = _nx_packet_data_append(work_ptr, packet_ptr -> nx_packet_data_start, size, pool_ptr, wai… in _nx_packet_copy()
176size = (ULONG)(packet_ptr -> nx_packet_append_ptr - packet_ptr -> nx_packet_prepend_ptr); in _nx_packet_copy()
180 …status = _nx_packet_data_append(work_ptr, packet_ptr -> nx_packet_prepend_ptr, size, pool_ptr, wa… in _nx_packet_copy()
Dnx_utility.c252 UINT size; in _nx_utility_uint_to_string() local
262 size = 0; in _nx_utility_uint_to_string()
265 while (size < string_buffer_size - 1) in _nx_utility_uint_to_string()
269 for (i = size; i != 0; i--) in _nx_utility_uint_to_string()
293 size++; in _nx_utility_uint_to_string()
305 size = 0; in _nx_utility_uint_to_string()
309 string_buffer[size] = (CHAR) NX_NULL; in _nx_utility_uint_to_string()
312 return(size); in _nx_utility_uint_to_string()
Dnx_ipv6_packet_copy.c82 UINT _nx_ipv6_packet_copy(NX_PACKET *source_pkt_head, NX_PACKET *dest_pkt_head, UINT size) in _nx_ipv6_packet_copy() argument
94 bytes_remaining = size; in _nx_ipv6_packet_copy()
/NetX-Duo-v6.4.1/test/regression/web_test/
Dtest_utility.h7 static void print_buffer(const UCHAR* buf, ULONG size) in print_buffer() argument
10 printf("Buffer of size: %ld. Data:\n", size); in print_buffer()
13 for(i = 0; i < size; ++i) in print_buffer()
/NetX-Duo-v6.4.1/test/regression/nx_secure_test/
Dtls_test_utility.h19 static void print_buffer(const UCHAR* buf, ULONG size) in print_buffer() argument
22 printf("Buffer of size: %ld. Data:\n", size); in print_buffer()
25 for(i = 0; i < size; ++i) in print_buffer()
Dnx_secure_tls_session_create_ext_test.c246 INT size = 0; in calculate_tls_ciphersuite_info_size() local
253 size += sizeof(NX_SECURE_TLS_CIPHERSUITE_INFO); in calculate_tls_ciphersuite_info_size()
257 return size; in calculate_tls_ciphersuite_info_size()
262 INT size = 0; in calculate_x509_ciphersuite_info_size() local
269 size += sizeof(NX_SECURE_X509_CRYPTO); in calculate_x509_ciphersuite_info_size()
273 return size; in calculate_x509_ciphersuite_info_size()
278 INT size = 0; in calculate_ecc_curves_size() local
285 size += sizeof(NX_CRYPTO_METHOD *); in calculate_ecc_curves_size()
289 return size; in calculate_ecc_curves_size()
Dnx_secure_tls_test_init_utility.c5 void print_buffer(const UCHAR* buf, ULONG size) in print_buffer() argument
8 printf("Buffer of size: %ld. Data:\n", size); in print_buffer()
11 for(i = 0; i < size; ++i) in print_buffer()
/NetX-Duo-v6.4.1/addons/pop3/
Dnxd_pop3_client.c873 UINT _nxe_pop3_client_mail_item_size_get(NX_POP3_CLIENT *client_ptr, UINT mail_item, ULONG *size) in _nxe_pop3_client_mail_item_size_get() argument
880 if ((client_ptr == NX_NULL) || (size == NX_NULL)) in _nxe_pop3_client_mail_item_size_get()
892 status = _nx_pop3_client_mail_item_size_get(client_ptr, mail_item, size); in _nxe_pop3_client_mail_item_size_get()
953 UINT _nx_pop3_client_mail_item_size_get(NX_POP3_CLIENT *client_ptr, UINT mail_item, ULONG *size) in _nx_pop3_client_mail_item_size_get() argument
965 *size = 0; in _nx_pop3_client_mail_item_size_get()
1098 *size = strtoul(argument, NULL, 10); in _nx_pop3_client_mail_item_size_get()
1235 UINT size; in _nx_pop3_client_mail_item_get() local
1292 size = _nx_pop3_server_number_convert(mail_item, &argument[0]); in _nx_pop3_client_mail_item_get()
1293 …if ((buffer + size + (sizeof(NX_POP3_COMMAND_TERMINATION) - 1)) >= (CHAR *)packet_ptr -> nx_packet… in _nx_pop3_client_mail_item_get()
1302 memcpy(buffer, &argument[0], size); /* Use case of memcpy is verified. */ in _nx_pop3_client_mail_item_get()
[all …]
/NetX-Duo-v6.4.1/test/regression/rtp_test/
Dnetx_rtp_session_aac_send_test.c153 ULONG size; in validate_rtp_aac_data() local
164 size = (ULONG)(data_ptr[0] << 5 | data_ptr[1] >> 3); in validate_rtp_aac_data()
165 if (size != (data_length - 4)) in validate_rtp_aac_data()
190 ULONG size; in validate_long_rtp_aac_data() local
202 size = (ULONG)(data_ptr[0] << 5 | data_ptr[1] >> 3); in validate_long_rtp_aac_data()
203 if (size != (data_length - 4)) in validate_long_rtp_aac_data()
/NetX-Duo-v6.4.1/addons/dns/
Dnxd_dns.c1740 UINT _nxe_dns_get_serverlist_size(NX_DNS *dns_ptr, UINT *size) in _nxe_dns_get_serverlist_size() argument
1746 if ((dns_ptr == NX_NULL) || (dns_ptr -> nx_dns_id != NX_DNS_ID) || (size == NX_NULL)) in _nxe_dns_get_serverlist_size()
1753 status = _nx_dns_get_serverlist_size(dns_ptr, size); in _nxe_dns_get_serverlist_size()
1800 UINT _nx_dns_get_serverlist_size(NX_DNS *dns_ptr, UINT *size) in _nx_dns_get_serverlist_size() argument
1804 *size = 0; in _nx_dns_get_serverlist_size()
1807 while (*size < NX_DNS_MAX_SERVERS) in _nx_dns_get_serverlist_size()
1811 if (dns_ptr -> nx_dns_server_ip_array[*size].nxd_ip_version == 0) in _nx_dns_get_serverlist_size()
1818 (*size)++; in _nx_dns_get_serverlist_size()
5253 UINT size; in _nx_dns_process_a_type() local
5267 size = _nx_dns_name_string_unencode(packet_ptr, data_ptr, temp_string_buffer, NX_DNS_NAME_MAX); in _nx_dns_process_a_type()
[all …]
/NetX-Duo-v6.4.1/addons/dhcp/
Dnxd_dhcp_server.c57 …_option_data(NX_DHCP_CLIENT *dhcp_ptr, CHAR *buffer, UCHAR value, UINT get_option_data, UINT size);
58 static UINT _nx_dhcp_add_option(UCHAR *bootp_message, UINT option, UINT size, ULONG value, U…
63 static UINT _nx_dhcp_server_get_data(UCHAR *data, UINT size, ULONG *value);
64 static VOID _nx_dhcp_server_store_data(UCHAR *data, UINT size, ULONG value);
4882 ULONG size = 0; in _nx_dhcp_server_extract_information() local
5072 _nx_dhcp_server_get_data(work_ptr, 1, &size); in _nx_dhcp_server_extract_information()
5078 if (work_ptr + size > packet_ptr -> nx_packet_append_ptr) in _nx_dhcp_server_extract_information()
5092 …dhcp_process_option_data(temp_client_rec_ptr, (CHAR *)work_ptr, (UCHAR)value, NX_TRUE, (UINT)size); in _nx_dhcp_server_extract_information()
5097 work_ptr += size; in _nx_dhcp_server_extract_information()
5161 …_data(NX_DHCP_CLIENT *dhcp_client_ptr, CHAR *buffer, UCHAR option, UINT get_option_data, UINT size) in _nx_dhcp_process_option_data() argument
[all …]
/NetX-Duo-v6.4.1/addons/azure_iot/
Dnx_azure_iot.c422 UINT size; in nx_azure_iot_mqtt_packet_adjust() local
434 size = (UINT)(packet_ptr -> nx_packet_append_ptr - packet_ptr -> nx_packet_prepend_ptr); in nx_azure_iot_mqtt_packet_adjust()
435 …memmove(packet_ptr -> nx_packet_data_start, packet_ptr -> nx_packet_prepend_ptr, size); /* Use cas… in nx_azure_iot_mqtt_packet_adjust()
437 packet_ptr -> nx_packet_append_ptr = packet_ptr -> nx_packet_data_start + size; in nx_azure_iot_mqtt_packet_adjust()
454 size = (UINT)(packet_ptr -> nx_packet_data_end - packet_ptr -> nx_packet_append_ptr); in nx_azure_iot_mqtt_packet_adjust()
459 if (size >= copy_size) in nx_azure_iot_mqtt_packet_adjust()
470 …ptr -> nx_packet_append_ptr, current_packet_ptr -> nx_packet_prepend_ptr, size); /* Use case of me… in nx_azure_iot_mqtt_packet_adjust()
475 (VOID *)(current_packet_ptr -> nx_packet_prepend_ptr + size), in nx_azure_iot_mqtt_packet_adjust()
476 (copy_size - size)); in nx_azure_iot_mqtt_packet_adjust()
478 …cket_ptr -> nx_packet_append_ptr = current_packet_ptr -> nx_packet_data_start + (copy_size - size); in nx_azure_iot_mqtt_packet_adjust()
/NetX-Duo-v6.4.1/nx_secure/src/
Dnx_secure_tls_psk_binder_generate.c31 static void print_buffer(const char* buf_name, const UCHAR* buf, ULONG size)
34 printf("Buffer %s of size: %ld. Data:\n", buf_name, size);
37 for(i = 0; i < size; ++i)
/NetX-Duo-v6.4.1/test/regression/sntp_test/
Dnetx_sntp_forward_unicast_update_test.c33 static void inject_sntp_server_reply(char *pkt_data, UINT size);
268 void inject_sntp_server_reply(char *pkt_data, UINT size) in inject_sntp_server_reply() argument
285 my_packet -> nx_packet_length = size - 14; in inject_sntp_server_reply()
/NetX-Duo-v6.4.1/test/cmake/azure_iot/
Drun.sh40 …000 -O $1.txt -T test --no-compress-output --test-output-size-passed 4194304 --test-output-size-fa…

123