/NetX-Duo-v6.4.1/test/regression/snmp_test/ |
D | netx_snmp_v3_nosec_traplist_test.c | 307 UCHAR *work_ptr; in thread_1_entry() local 418 …work_ptr = agent_packet -> nx_packet_prepend_ptr + 80; /* Move past all the SNMP global headers e… in thread_1_entry() 421 …while ((work_ptr < agent_packet -> nx_packet_prepend_ptr + agent_packet -> nx_packet_length) && (o… in thread_1_entry() 425 (*work_ptr == 0x06) && in thread_1_entry() 426 (*(work_ptr + 1) == 0x01) && in thread_1_entry() 427 (*(work_ptr + 2) == 0x02) && in thread_1_entry() 428 (*(work_ptr + 3) == 0x01) && in thread_1_entry() 429 (*(work_ptr + 4) == 0x01) && in thread_1_entry() 430 (*(work_ptr + 5) == 0x03) && in thread_1_entry() 431 (*(work_ptr + 6) == 0x00) && in thread_1_entry() [all …]
|
D | netx_snmp_no_security_function_test.c | 429 UCHAR *work_ptr; in check_valid_response() local 433 … work_ptr = (UCHAR *)(&snmp_response[packet_number].snmp_response_pkt_data[0] + SNMP_START_OFFSET); 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() 469 if ((work_ptr[j] == 2) && (*(agent_packet -> nx_packet_prepend_ptr+j) == 1)) in check_valid_response() 472 …work_ptr = (UCHAR *)(&snmp_response[packet_number].snmp_response_pkt_data[0] + SNMP_START_OFFSET +… in check_valid_response() 493 if (work_ptr[j-1] == 2) in check_valid_response()
|
/NetX-Duo-v6.4.1/common/src/ |
D | nx_packet_data_append.c | 90 NX_PACKET *work_ptr; /* Working packet pointer */ in _nx_packet_data_append() local 104 work_ptr = packet_ptr -> nx_packet_last; in _nx_packet_data_append() 112 (ULONG)(work_ptr -> nx_packet_data_end - work_ptr -> nx_packet_append_ptr); in _nx_packet_data_append() 115 last_packet = work_ptr; in _nx_packet_data_append() 119 work_ptr = work_ptr -> nx_packet_next; in _nx_packet_data_append() 120 } while (work_ptr); in _nx_packet_data_append() 144 status = _nx_packet_allocate(pool_ptr, &work_ptr, 0, wait_option); in _nx_packet_data_append() 163 NX_PACKET_DEBUG(__FILE__, __LINE__, work_ptr); in _nx_packet_data_append() 176 (new_list_ptr -> nx_packet_last) -> nx_packet_next = work_ptr; in _nx_packet_data_append() 177 new_list_ptr -> nx_packet_last = work_ptr; in _nx_packet_data_append() [all …]
|
D | nx_packet_allocate.c | 86 NX_PACKET *work_ptr; /* Working packet pointer */ in _nx_packet_allocate() local 116 work_ptr = pool_ptr -> nx_packet_pool_available_list; in _nx_packet_allocate() 119 pool_ptr -> nx_packet_pool_available_list = work_ptr -> nx_packet_queue_next; in _nx_packet_allocate() 122 work_ptr -> nx_packet_queue_next = NX_NULL; in _nx_packet_allocate() 124 work_ptr -> nx_packet_next = NX_NULL; in _nx_packet_allocate() 125 work_ptr -> nx_packet_last = NX_NULL; in _nx_packet_allocate() 127 work_ptr -> nx_packet_length = 0; in _nx_packet_allocate() 128 work_ptr -> nx_packet_prepend_ptr = work_ptr -> nx_packet_data_start + packet_type; in _nx_packet_allocate() 129 work_ptr -> nx_packet_append_ptr = work_ptr -> nx_packet_prepend_ptr; in _nx_packet_allocate() 130 work_ptr -> nx_packet_address.nx_packet_interface_ptr = NX_NULL; in _nx_packet_allocate() [all …]
|
D | nx_packet_copy.c | 85 NX_PACKET *work_ptr; /* Working packet pointer */ in _nx_packet_copy() local 118 status = _nx_packet_allocate(pool_ptr, &work_ptr, 0, wait_option); in _nx_packet_copy() 130 …work_ptr -> nx_packet_address.nx_packet_interface_ptr = packet_ptr -> nx_packet_address.nx_packet_… in _nx_packet_copy() 135 work_ptr -> nx_packet_ip_version = packet_ptr -> nx_packet_ip_version; in _nx_packet_copy() 141 …work_ptr -> nx_packet_interface_capability_flag = packet_ptr -> nx_packet_interface_capability_fla… in _nx_packet_copy() 145 work_ptr -> nx_packet_ipsec_sa_ptr = packet_ptr -> nx_packet_ipsec_sa_ptr; 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() 180 …status = _nx_packet_data_append(work_ptr, packet_ptr -> nx_packet_prepend_ptr, size, pool_ptr, wa… in _nx_packet_copy() 188 _nx_packet_release(work_ptr); in _nx_packet_copy() 206 work_ptr -> nx_packet_prepend_ptr = work_ptr -> nx_packet_data_start + data_prepend_offset; in _nx_packet_copy() [all …]
|
D | nx_tcp_socket_state_data_check.c | 82 NX_PACKET *work_ptr; in _nx_tcp_socket_state_data_trim() local 94 work_ptr = packet_ptr; in _nx_tcp_socket_state_data_trim() 98 while (work_ptr) in _nx_tcp_socket_state_data_trim() 104 …if ((INT)(work_ptr -> nx_packet_append_ptr - work_ptr -> nx_packet_prepend_ptr) < (INT)bytes_to_ke… in _nx_tcp_socket_state_data_trim() 108 …bytes_to_keep -= (ULONG)((ALIGN_TYPE)work_ptr -> nx_packet_append_ptr - (ALIGN_TYPE)work_ptr -> nx… in _nx_tcp_socket_state_data_trim() 110 work_ptr = work_ptr -> nx_packet_next; in _nx_tcp_socket_state_data_trim() 117 work_ptr -> nx_packet_append_ptr = work_ptr -> nx_packet_prepend_ptr + bytes_to_keep; in _nx_tcp_socket_state_data_trim() 121 tmp_ptr = work_ptr -> nx_packet_next; in _nx_tcp_socket_state_data_trim() 122 work_ptr -> nx_packet_next = NX_NULL; in _nx_tcp_socket_state_data_trim() 123 work_ptr = tmp_ptr; in _nx_tcp_socket_state_data_trim() [all …]
|
D | nx_packet_data_adjust.c | 84 NX_PACKET *work_ptr; in _nx_packet_data_adjust() local 147 status = _nx_packet_allocate(packet_ptr -> nx_packet_pool_owner, &work_ptr, 0, NX_NO_WAIT); in _nx_packet_data_adjust() 156 …memcpy(work_ptr -> nx_packet_prepend_ptr, data_start, append_size); /* Use case of memcpy is verif… in _nx_packet_data_adjust() 157 …work_ptr -> nx_packet_append_ptr = (UCHAR *)((ALIGN_TYPE)work_ptr -> nx_packet_prepend_ptr + appen… in _nx_packet_data_adjust() 171 work_ptr -> nx_packet_next = packet_ptr -> nx_packet_next; in _nx_packet_data_adjust() 172 packet_ptr -> nx_packet_next = work_ptr; in _nx_packet_data_adjust() 177 packet_ptr -> nx_packet_last = work_ptr; in _nx_packet_data_adjust()
|
D | nx_ip_raw_packet_receive.c | 83 NX_PACKET *work_ptr; /* Working packet pointer */ in _nx_ip_raw_packet_receive() local 105 work_ptr = ip_ptr -> nx_ip_raw_received_packet_head; in _nx_ip_raw_packet_receive() 108 ip_ptr -> nx_ip_raw_received_packet_head = work_ptr -> nx_packet_queue_next; in _nx_ip_raw_packet_receive() 111 if (ip_ptr -> nx_ip_raw_received_packet_tail == work_ptr) in _nx_ip_raw_packet_receive() 119 *packet_ptr = work_ptr; in _nx_ip_raw_packet_receive()
|
D | nx_http_proxy_client.c | 569 NX_PACKET *work_ptr; in _nx_http_proxy_client_connect_response_process() local 599 work_ptr = head_packet_ptr; in _nx_http_proxy_client_connect_response_process() 602 buffer_ptr = (CHAR *) work_ptr -> nx_packet_prepend_ptr; in _nx_http_proxy_client_connect_response_process() 609 while ((buffer_ptr < (CHAR *) work_ptr -> nx_packet_append_ptr) && in _nx_http_proxy_client_connect_response_process() 646 if (work_ptr -> nx_packet_next != NX_NULL) in _nx_http_proxy_client_connect_response_process() 650 work_ptr = work_ptr -> nx_packet_next; in _nx_http_proxy_client_connect_response_process() 651 buffer_ptr = (CHAR *) work_ptr -> nx_packet_prepend_ptr; in _nx_http_proxy_client_connect_response_process()
|
/NetX-Duo-v6.4.1/addons/smtp/ |
D | nxd_smtp_client.c | 3460 UCHAR *work_ptr; in _nx_smtp_utility_read_server_code() local 3508 work_ptr = client_ptr -> nx_smtp_server_packet -> nx_packet_prepend_ptr; in _nx_smtp_utility_read_server_code() 3514 status = _nx_smtp_parse_response(client_ptr, work_ptr, 1, buffer_length, &server_code[0], in _nx_smtp_utility_read_server_code() 4021 UCHAR *work_ptr; in _nx_smtp_utility_parse_server_services() local 4034 work_ptr = client_ptr -> nx_smtp_server_packet -> nx_packet_prepend_ptr; in _nx_smtp_utility_parse_server_services() 4045 ((*work_ptr == 'A') || (*work_ptr == 'a')) && in _nx_smtp_utility_parse_server_services() 4046 ((*(work_ptr + 1) == 'U') || (*(work_ptr + 1) == 'u')) && in _nx_smtp_utility_parse_server_services() 4047 ((*(work_ptr + 2) == 'T') || (*(work_ptr + 2) == 't')) && in _nx_smtp_utility_parse_server_services() 4048 ((*(work_ptr + 3) == 'H') || (*(work_ptr + 3) == 'h')) in _nx_smtp_utility_parse_server_services() 4053 work_ptr += 4; in _nx_smtp_utility_parse_server_services() [all …]
|
/NetX-Duo-v6.4.1/addons/pppoe/ |
D | nx_pppoe_client.c | 1249 UCHAR *work_ptr; in _nx_pppoe_client_session_packet_send() local 1295 work_ptr = packet_ptr -> nx_packet_prepend_ptr; in _nx_pppoe_client_session_packet_send() 1308 …_nx_pppoe_client_data_add(work_ptr + NX_PPPOE_CLIENT_OFFSET_VER_TYPE, 1, NX_PPPOE_CLIENT_VERSION_T… in _nx_pppoe_client_session_packet_send() 1311 _nx_pppoe_client_data_add(work_ptr + NX_PPPOE_CLIENT_OFFSET_CODE, 1, NX_PPPOE_CLIENT_CODE_ZERO); in _nx_pppoe_client_session_packet_send() 1314 …_nx_pppoe_client_data_add(work_ptr + NX_PPPOE_CLIENT_OFFSET_SESSION_ID, 2, server_session_ptr -> n… in _nx_pppoe_client_session_packet_send() 1317 …_nx_pppoe_client_data_add(work_ptr + NX_PPPOE_CLIENT_OFFSET_LENGTH, 2, packet_ptr -> nx_packet_len… in _nx_pppoe_client_session_packet_send() 2828 UCHAR *work_ptr; in _nx_pppoe_client_discovery_send() local 2845 work_ptr = packet_ptr -> nx_packet_prepend_ptr; in _nx_pppoe_client_discovery_send() 2870 if (((ULONG)(packet_ptr -> nx_packet_data_end) - (ULONG)(&work_ptr[index])) >= in _nx_pppoe_client_discovery_send() 2875 …_nx_pppoe_client_tag_string_add(work_ptr, NX_PPPOE_CLIENT_TAG_TYPE_SERVICE_NAME, pppoe_client_ptr … in _nx_pppoe_client_discovery_send() [all …]
|
D | nx_pppoe_server.c | 1227 UCHAR *work_ptr; in _nx_pppoe_server_session_send() local 1249 work_ptr = packet_ptr -> nx_packet_prepend_ptr; in _nx_pppoe_server_session_send() 1262 …_nx_pppoe_server_data_add(work_ptr + NX_PPPOE_SERVER_OFFSET_VER_TYPE, 1, NX_PPPOE_SERVER_VERSION_T… in _nx_pppoe_server_session_send() 1265 _nx_pppoe_server_data_add(work_ptr + NX_PPPOE_SERVER_OFFSET_CODE, 1, NX_PPPOE_SERVER_CODE_ZERO); in _nx_pppoe_server_session_send() 1268 …_nx_pppoe_server_data_add(work_ptr + NX_PPPOE_SERVER_OFFSET_SESSION_ID, 2, client_session_ptr -> n… in _nx_pppoe_server_session_send() 1271 _nx_pppoe_server_data_add(work_ptr + NX_PPPOE_SERVER_OFFSET_LENGTH, 2, data_length); in _nx_pppoe_server_session_send() 1497 UCHAR *work_ptr; in _nx_pppoe_server_session_packet_send() local 1526 work_ptr = packet_ptr -> nx_packet_prepend_ptr; in _nx_pppoe_server_session_packet_send() 1539 …_nx_pppoe_server_data_add(work_ptr + NX_PPPOE_SERVER_OFFSET_VER_TYPE, 1, NX_PPPOE_SERVER_VERSION_T… in _nx_pppoe_server_session_packet_send() 1542 _nx_pppoe_server_data_add(work_ptr + NX_PPPOE_SERVER_OFFSET_CODE, 1, NX_PPPOE_SERVER_CODE_ZERO); in _nx_pppoe_server_session_packet_send() [all …]
|
/NetX-Duo-v6.4.1/test/regression/dhcp_test/ |
D | netx_dhcp_client_activate_interfaces_test.c | 693 UCHAR *work_ptr; in nx_dhcp_response_packet_send() local 735 work_ptr = (UCHAR *)(response_packet -> nx_packet_prepend_ptr + NX_BOOTP_OFFSET_XID); in nx_dhcp_response_packet_send() 737 memcpy(work_ptr, (void const *)(&dhcp_xid), 4); in nx_dhcp_response_packet_send() 773 UCHAR *work_ptr; in my_dhcp_process_bc_callback() local 788 …work_ptr = packet_ptr -> nx_packet_prepend_ptr + sizeof(NX_IPV4_HEADER) + sizeof(NX_UDP_HEADER) +N… in my_dhcp_process_bc_callback() 790 …work_ptr = packet_ptr -> nx_packet_prepend_ptr + sizeof(NX_IP_HEADER) + sizeof(NX_UDP_HEADER) +NX_… in my_dhcp_process_bc_callback() 794 packet_client_mac_lsw = (((ULONG)work_ptr[2]) << 24) | in my_dhcp_process_bc_callback() 795 (((ULONG)work_ptr[3]) << 16) | in my_dhcp_process_bc_callback() 796 (((ULONG)work_ptr[4]) << 8) | in my_dhcp_process_bc_callback() 797 ((ULONG)work_ptr[5]); in my_dhcp_process_bc_callback()
|
D | netx_dhcp_client_secondary_interface_test.c | 509 UCHAR *work_ptr; in nx_dhcp_response_packet_send() local 527 work_ptr = (UCHAR *)(response_packet -> nx_packet_prepend_ptr + NX_BOOTP_OFFSET_XID); in nx_dhcp_response_packet_send() 529 memcpy(work_ptr, (void const *)(&dhcp_xid), 4); in nx_dhcp_response_packet_send()
|
/NetX-Duo-v6.4.1/test/regression/smtp_test/ |
D | netx_smtp_invalid_release_test.c | 328 UCHAR *work_ptr; in thread_1_entry() local 424 work_ptr = my_packet -> nx_packet_prepend_ptr + my_packet -> nx_packet_length - 5; in thread_1_entry() 426 if ((*work_ptr == 0x0D) && in thread_1_entry() 427 (*(work_ptr + 1) == 0x0A) && in thread_1_entry() 428 (*(work_ptr + 2) == 0x2E) && in thread_1_entry() 429 (*(work_ptr + 3) == 0x0D) && in thread_1_entry() 430 (*(work_ptr + 4) == 0x0A)) in thread_1_entry()
|
D | netx_smtp_auth_none_test.c | 331 UCHAR *work_ptr; in thread_1_entry() local 426 work_ptr = my_packet -> nx_packet_prepend_ptr + my_packet -> nx_packet_length - 5; in thread_1_entry() 428 if ((*work_ptr == 0x0D) && in thread_1_entry() 429 (*(work_ptr + 1) == 0x0A) && in thread_1_entry() 430 (*(work_ptr + 2) == 0x2E) && in thread_1_entry() 431 (*(work_ptr + 3) == 0x0D) && in thread_1_entry() 432 (*(work_ptr + 4) == 0x0A)) in thread_1_entry()
|
D | netx_smtp_basic_function_test.c | 337 UCHAR *work_ptr; in thread_1_entry() local 433 work_ptr = my_packet -> nx_packet_prepend_ptr + my_packet -> nx_packet_length - 5; in thread_1_entry() 435 if ((*work_ptr == 0x0D) && in thread_1_entry() 436 (*(work_ptr + 1) == 0x0A) && in thread_1_entry() 437 (*(work_ptr + 2) == 0x2E) && in thread_1_entry() 438 (*(work_ptr + 3) == 0x0D) && in thread_1_entry() 439 (*(work_ptr + 4) == 0x0A)) in thread_1_entry()
|
D | netx_smtp_auth_logon_function_test.c | 340 UCHAR *work_ptr; in thread_1_entry() local 436 work_ptr = my_packet -> nx_packet_prepend_ptr + my_packet -> nx_packet_length - 5; in thread_1_entry() 438 if ((*work_ptr == 0x0D) && in thread_1_entry() 439 (*(work_ptr + 1) == 0x0A) && in thread_1_entry() 440 (*(work_ptr + 2) == 0x2E) && in thread_1_entry() 441 (*(work_ptr + 3) == 0x0D) && in thread_1_entry() 442 (*(work_ptr + 4) == 0x0A)) in thread_1_entry()
|
D | netx_smtp_auth_no_type_function_test.c | 337 UCHAR *work_ptr; in thread_1_entry() local 433 work_ptr = my_packet -> nx_packet_prepend_ptr + my_packet -> nx_packet_length - 5; in thread_1_entry() 435 if ((*work_ptr == 0x0D) && in thread_1_entry() 436 (*(work_ptr + 1) == 0x0A) && in thread_1_entry() 437 (*(work_ptr + 2) == 0x2E) && in thread_1_entry() 438 (*(work_ptr + 3) == 0x0D) && in thread_1_entry() 439 (*(work_ptr + 4) == 0x0A)) in thread_1_entry()
|
D | netx_smtp_auth_no_type_test.c | 337 UCHAR *work_ptr; in thread_1_entry() local 433 work_ptr = my_packet -> nx_packet_prepend_ptr + my_packet -> nx_packet_length - 5; in thread_1_entry() 435 if ((*work_ptr == 0x0D) && in thread_1_entry() 436 (*(work_ptr + 1) == 0x0A) && in thread_1_entry() 437 (*(work_ptr + 2) == 0x2E) && in thread_1_entry() 438 (*(work_ptr + 3) == 0x0D) && in thread_1_entry() 439 (*(work_ptr + 4) == 0x0A)) in thread_1_entry()
|
D | netx_smtp_missing_last_250_EHLO_message_test.c | 380 UCHAR *work_ptr; in thread_1_entry() local 481 work_ptr = my_packet -> nx_packet_prepend_ptr + my_packet -> nx_packet_length - 5; in thread_1_entry() 483 if ((*work_ptr == 0x0D) && in thread_1_entry() 484 (*(work_ptr + 1) == 0x0A) && in thread_1_entry() 485 (*(work_ptr + 2) == 0x2E) && in thread_1_entry() 486 (*(work_ptr + 3) == 0x0D) && in thread_1_entry() 487 (*(work_ptr + 4) == 0x0A)) in thread_1_entry()
|
D | netx_smtp_two_packet_EHLO_auth_last_message_test.c | 377 UCHAR *work_ptr; in thread_1_entry() local 504 work_ptr = my_packet -> nx_packet_prepend_ptr + my_packet -> nx_packet_length - 5; in thread_1_entry() 506 if ((*work_ptr == 0x0D) && in thread_1_entry() 507 (*(work_ptr + 1) == 0x0A) && in thread_1_entry() 508 (*(work_ptr + 2) == 0x2E) && in thread_1_entry() 509 (*(work_ptr + 3) == 0x0D) && in thread_1_entry() 510 (*(work_ptr + 4) == 0x0A)) in thread_1_entry()
|
D | netx_smtp_two_packet_EHLO_message_test.c | 380 UCHAR *work_ptr; in thread_1_entry() local 507 work_ptr = my_packet -> nx_packet_prepend_ptr + my_packet -> nx_packet_length - 5; in thread_1_entry() 509 if ((*work_ptr == 0x0D) && in thread_1_entry() 510 (*(work_ptr + 1) == 0x0A) && in thread_1_entry() 511 (*(work_ptr + 2) == 0x2E) && in thread_1_entry() 512 (*(work_ptr + 3) == 0x0D) && in thread_1_entry() 513 (*(work_ptr + 4) == 0x0A)) in thread_1_entry()
|
/NetX-Duo-v6.4.1/addons/dhcp/ |
D | nxd_dhcp_server.c | 2003 ULONG *work_ptr; in _nx_dhcp_respond_to_client_message() local 2013 work_ptr = (ULONG *)packet_ptr -> nx_packet_prepend_ptr; in _nx_dhcp_respond_to_client_message() 2018 uword = *work_ptr; in _nx_dhcp_respond_to_client_message() 2032 work_ptr++; in _nx_dhcp_respond_to_client_message() 2513 CHAR *work_ptr; in _nx_dhcp_set_server_options() local 2527 work_ptr = buffer; in _nx_dhcp_set_server_options() 2541 buffer_size -= (UINT)(buffer - work_ptr); in _nx_dhcp_set_server_options() 2835 ULONG *work_ptr; in _nx_dhcp_server_packet_process() local 2846 …work_ptr = (ULONG *)(packet_ptr -> nx_packet_prepend_ptr - sizeof(NX_UDP_HEADER) - sizeof(NX_IPV4_… in _nx_dhcp_server_packet_process() 2851 uword = *work_ptr; in _nx_dhcp_server_packet_process() [all …]
|
/NetX-Duo-v6.4.1/addons/telnet/ |
D | nxd_telnet_server.c | 2551 UCHAR *work_ptr; in _nx_telnet_server_process_option() local 2556 work_ptr = (UCHAR *)(packet_ptr -> nx_packet_prepend_ptr + (*offset) + 2); in _nx_telnet_server_process_option() 2559 if (work_ptr >= packet_ptr -> nx_packet_append_ptr) in _nx_telnet_server_process_option() 2565 data_char = *work_ptr; in _nx_telnet_server_process_option() 2572 work_ptr--; in _nx_telnet_server_process_option() 2573 data_char = *work_ptr; in _nx_telnet_server_process_option() 2596 work_ptr--; in _nx_telnet_server_process_option() 2597 data_char = *work_ptr; in _nx_telnet_server_process_option()
|