Home
last modified time | relevance | path

Searched refs:work_ptr (Results 1 – 25 of 33) sorted by relevance

12

/NetX-Duo-v6.4.1/test/regression/snmp_test/
Dnetx_snmp_v3_nosec_traplist_test.c307 UCHAR *work_ptr; in thread_1_entry() local
418work_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 …]
Dnetx_snmp_no_security_function_test.c429 UCHAR *work_ptr; in check_valid_response() local
433work_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()
472work_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/
Dnx_packet_data_append.c90 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 …]
Dnx_packet_allocate.c86 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 …]
Dnx_packet_copy.c85 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()
130work_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()
141work_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 …]
Dnx_tcp_socket_state_data_check.c82 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 …]
Dnx_packet_data_adjust.c84 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()
157work_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()
Dnx_ip_raw_packet_receive.c83 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()
Dnx_http_proxy_client.c569 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/
Dnxd_smtp_client.c3460 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/
Dnx_pppoe_client.c1249 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 …]
Dnx_pppoe_server.c1227 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/
Dnetx_dhcp_client_activate_interfaces_test.c693 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
788work_ptr = packet_ptr -> nx_packet_prepend_ptr + sizeof(NX_IPV4_HEADER) + sizeof(NX_UDP_HEADER) +N… in my_dhcp_process_bc_callback()
790work_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()
Dnetx_dhcp_client_secondary_interface_test.c509 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/
Dnetx_smtp_invalid_release_test.c328 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()
Dnetx_smtp_auth_none_test.c331 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()
Dnetx_smtp_basic_function_test.c337 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()
Dnetx_smtp_auth_logon_function_test.c340 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()
Dnetx_smtp_auth_no_type_function_test.c337 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()
Dnetx_smtp_auth_no_type_test.c337 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()
Dnetx_smtp_missing_last_250_EHLO_message_test.c380 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()
Dnetx_smtp_two_packet_EHLO_auth_last_message_test.c377 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()
Dnetx_smtp_two_packet_EHLO_message_test.c380 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/
Dnxd_dhcp_server.c2003 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
2846work_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/
Dnxd_telnet_server.c2551 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()

12