Home
last modified time | relevance | path

Searched refs:packet_ptr (Results 1 – 25 of 299) sorted by relevance

12345678910>>...12

/NetX-Duo-v6.2.1/common/src/
Dnx_ip_packet_send.c92 VOID _nx_ip_packet_send(NX_IP *ip_ptr, NX_PACKET *packet_ptr, in _nx_ip_packet_send() argument
109 NX_PACKET_DEBUG(__FILE__, __LINE__, packet_ptr); in _nx_ip_packet_send()
118 if (packet_ptr -> nx_packet_address.nx_packet_interface_ptr == NX_NULL) in _nx_ip_packet_send()
128packet_ptr -> nx_packet_prepend_ptr = packet_ptr -> nx_packet_prepend_ptr - sizeof(NX_IPV4_HEADER… in _nx_ip_packet_send()
131packet_ptr -> nx_packet_length = packet_ptr -> nx_packet_length + (ULONG)sizeof(NX_IPV4_HEADER); in _nx_ip_packet_send()
134 _nx_packet_transmit_release(packet_ptr); in _nx_ip_packet_send()
141 if (packet_ptr -> nx_packet_address.nx_packet_interface_ptr -> nx_interface_capability_flag & in _nx_ip_packet_send()
151 _nx_packet_transmit_release(packet_ptr); in _nx_ip_packet_send()
160 if (packet_ptr -> nx_packet_ipsec_sa_ptr && in _nx_ip_packet_send()
161 …((NX_IPSEC_SA *)(packet_ptr -> nx_packet_ipsec_sa_ptr)) -> nx_ipsec_sa_mode == NX_IPSEC_TRANSPORT_… in _nx_ip_packet_send()
[all …]
Dnx_packet_data_adjust.c76 UINT _nx_packet_data_adjust(NX_PACKET *packet_ptr, ULONG header_size) in _nx_packet_data_adjust() argument
90 NX_PACKET_DEBUG(__FILE__, __LINE__, packet_ptr); in _nx_packet_data_adjust()
93 …if (((ALIGN_TYPE)packet_ptr -> nx_packet_data_end - (ALIGN_TYPE)packet_ptr -> nx_packet_data_start… in _nx_packet_data_adjust()
99 …if (((ALIGN_TYPE)packet_ptr -> nx_packet_prepend_ptr - (ALIGN_TYPE)packet_ptr -> nx_packet_data_st… in _nx_packet_data_adjust()
107 …available_size = (ULONG)(((ALIGN_TYPE)packet_ptr -> nx_packet_prepend_ptr - (ALIGN_TYPE)packet_ptr in _nx_packet_data_adjust()
108 … ((ALIGN_TYPE)packet_ptr -> nx_packet_data_end - (ALIGN_TYPE)packet_ptr -> nx_packet_append_ptr)); in _nx_packet_data_adjust()
117 …shift_size = (ULONG)((ALIGN_TYPE)packet_ptr -> nx_packet_append_ptr - (ALIGN_TYPE)packet_ptr -> nx… in _nx_packet_data_adjust()
120 …memmove(packet_ptr -> nx_packet_data_start + header_size, packet_ptr -> nx_packet_prepend_ptr, shi… in _nx_packet_data_adjust()
123 packet_ptr -> nx_packet_prepend_ptr = packet_ptr -> nx_packet_data_start + header_size; in _nx_packet_data_adjust()
124 packet_ptr -> nx_packet_append_ptr = packet_ptr -> nx_packet_prepend_ptr + shift_size; in _nx_packet_data_adjust()
[all …]
Dnx_ipv6_header_add.c98 NX_PACKET *packet_ptr = *packet_pptr; in _nx_ipv6_header_add() local
110 NX_PACKET_DEBUG(__FILE__, __LINE__, packet_ptr); in _nx_ipv6_header_add()
130 packet_ptr -> nx_packet_ip_header = packet_ptr -> nx_packet_prepend_ptr; in _nx_ipv6_header_add()
134 if (packet_ptr -> nx_packet_ipsec_sa_ptr && in _nx_ipv6_header_add()
135 …((NX_IPSEC_SA *)(packet_ptr -> nx_packet_ipsec_sa_ptr)) -> nx_ipsec_sa_mode == NX_IPSEC_TRANSPORT_… in _nx_ipv6_header_add()
136 (packet_ptr -> nx_packet_ipsec_state == NX_IPSEC_AH_PACKET || in _nx_ipv6_header_add()
137 packet_ptr -> nx_packet_ipsec_state == NX_IPSEC_ESP_PACKET)) in _nx_ipv6_header_add()
143 if (packet_ptr -> nx_packet_ipsec_sa_ptr && in _nx_ipv6_header_add()
144 packet_ptr -> nx_packet_ipsec_state != NX_IPSEC_ESP_PACKET && in _nx_ipv6_header_add()
145 packet_ptr -> nx_packet_ipsec_state != NX_IPSEC_AH_PACKET && in _nx_ipv6_header_add()
[all …]
Dnx_ip_dispatch_process.c107 UINT _nx_ip_dispatch_process(NX_IP *ip_ptr, NX_PACKET *packet_ptr, UINT protocol) in _nx_ip_dispatch_process() argument
139 incoming_addr = packet_ptr -> nx_packet_address.nx_packet_ipv6_address_ptr; in _nx_ip_dispatch_process()
147 NX_PACKET_DEBUG(__FILE__, __LINE__, packet_ptr); in _nx_ip_dispatch_process()
151 nx_packet_option_offset = packet_ptr -> nx_packet_option_offset; in _nx_ip_dispatch_process()
160 if (packet_ptr -> nx_packet_option_state >= (UCHAR)HOP_BY_HOP_HEADER) in _nx_ip_dispatch_process()
166 NX_ICMPV6_SEND_PARAMETER_PROBLEM(ip_ptr, packet_ptr, 1, nx_packet_option_offset); in _nx_ip_dispatch_process()
173 packet_ptr -> nx_packet_option_state = (UCHAR)HOP_BY_HOP_HEADER; in _nx_ip_dispatch_process()
176 drop_packet = _nx_ipv6_process_hop_by_hop_option(ip_ptr, packet_ptr); in _nx_ip_dispatch_process()
184 if (packet_ptr -> nx_packet_destination_header >= 1) in _nx_ip_dispatch_process()
189 if ((packet_ptr -> nx_packet_option_state < (UCHAR)DESTINATION_HEADER_1) || in _nx_ip_dispatch_process()
[all …]
Dnx_packet_release.c73 UINT _nx_packet_release(NX_PACKET *packet_ptr) in _nx_packet_release() argument
86 …E_INSERT(NX_TRACE_PACKET_RELEASE, packet_ptr, packet_ptr -> nx_packet_union_next.nx_packet_tcp_que… in _nx_packet_release()
91 while (packet_ptr) in _nx_packet_release()
97 …if (packet_ptr -> nx_packet_union_next.nx_packet_tcp_queue_next != ((NX_PACKET *)NX_PACKET_ALLOCAT… in _nx_packet_release()
102 pool_ptr = packet_ptr -> nx_packet_pool_owner; in _nx_packet_release()
120 next_packet = packet_ptr -> nx_packet_next; in _nx_packet_release()
124 NX_PACKET_DEBUG(__FILE__, __LINE__, packet_ptr); in _nx_packet_release()
130 pool_ptr = packet_ptr -> nx_packet_pool_owner; in _nx_packet_release()
178 packet_ptr -> nx_packet_queue_next = NX_NULL; in _nx_packet_release()
180 packet_ptr -> nx_packet_next = NX_NULL; in _nx_packet_release()
[all …]
Dnx_ipv4_packet_receive.c84 VOID _nx_ipv4_packet_receive(NX_IP *ip_ptr, NX_PACKET *packet_ptr) in _nx_ipv4_packet_receive() argument
118 ip_header_ptr = (NX_IPV4_HEADER *)packet_ptr -> nx_packet_prepend_ptr; in _nx_ipv4_packet_receive()
121 NX_PACKET_DEBUG(__FILE__, __LINE__, packet_ptr); in _nx_ipv4_packet_receive()
124 …NAL_IP_RECEIVE, ip_ptr, ip_header_ptr -> nx_ip_header_source_ip, packet_ptr, packet_ptr -> nx_pack… in _nx_ipv4_packet_receive()
139 if (packet_ptr -> nx_packet_length != pkt_length) in _nx_ipv4_packet_receive()
143 if (packet_ptr -> nx_packet_length < pkt_length) in _nx_ipv4_packet_receive()
158 _nx_packet_release(packet_ptr); in _nx_ipv4_packet_receive()
165 delta = packet_ptr -> nx_packet_length - pkt_length; in _nx_ipv4_packet_receive()
168 packet_ptr -> nx_packet_length = packet_ptr -> nx_packet_length - delta; in _nx_ipv4_packet_receive()
178 if (packet_ptr -> nx_packet_last == NX_NULL) in _nx_ipv4_packet_receive()
[all …]
Dnx_ipv6_packet_receive.c83 VOID _nx_ipv6_packet_receive(NX_IP *ip_ptr, NX_PACKET *packet_ptr) in _nx_ipv6_packet_receive() argument
104 NX_PACKET_DEBUG(__FILE__, __LINE__, packet_ptr); in _nx_ipv6_packet_receive()
108 ip_header_ptr = (NX_IPV6_HEADER *)packet_ptr -> nx_packet_prepend_ptr; in _nx_ipv6_packet_receive()
116 if (packet_ptr -> nx_packet_length != (ULONG)pkt_length) in _nx_ipv6_packet_receive()
120 if (packet_ptr -> nx_packet_length < (ULONG)pkt_length) in _nx_ipv6_packet_receive()
134 _nx_packet_release(packet_ptr); in _nx_ipv6_packet_receive()
141 delta = packet_ptr -> nx_packet_length - pkt_length; in _nx_ipv6_packet_receive()
144 packet_ptr -> nx_packet_length = packet_ptr -> nx_packet_length - delta; in _nx_ipv6_packet_receive()
154 if (packet_ptr -> nx_packet_last == NX_NULL) in _nx_ipv6_packet_receive()
158 packet_ptr -> nx_packet_append_ptr = packet_ptr -> nx_packet_append_ptr - delta; in _nx_ipv6_packet_receive()
[all …]
Dnxd_udp_socket_send.c88 NX_PACKET *packet_ptr, in _nx_udp_socket_driver_send() argument
96 UCHAR *original_ptr = packet_ptr -> nx_packet_prepend_ptr + sizeof(NX_UDP_HEADER); in _nx_udp_socket_driver_send()
97 ULONG original_length = packet_ptr -> nx_packet_length - sizeof(NX_UDP_HEADER); in _nx_udp_socket_driver_send()
107 interface_ptr = packet_ptr -> nx_packet_address.nx_packet_interface_ptr; in _nx_udp_socket_driver_send()
113 …interface_ptr = packet_ptr -> nx_packet_address.nx_packet_ipv6_address_ptr -> nxd_ipv6_address_att… in _nx_udp_socket_driver_send()
126 _nx_ip_header_add(ip_ptr, packet_ptr, in _nx_udp_socket_driver_send()
138 if (_nx_ipv6_header_add(ip_ptr, &packet_ptr, NX_PROTOCOL_UDP, in _nx_udp_socket_driver_send()
139 packet_ptr -> nx_packet_length, in _nx_udp_socket_driver_send()
151packet_ptr -> nx_packet_prepend_ptr = packet_ptr -> nx_packet_prepend_ptr + sizeof(NX_IPV6_HEADER); in _nx_udp_socket_driver_send()
152packet_ptr -> nx_packet_length = packet_ptr -> nx_packet_length - sizeof(NX_IPV6_HEADER); in _nx_udp_socket_driver_send()
[all …]
Dnx_packet_transmit_release.c79 UINT _nx_packet_transmit_release(NX_PACKET *packet_ptr) in _nx_packet_transmit_release() argument
88 …NX_TRACE_PACKET_TRANSMIT_RELEASE, packet_ptr, packet_ptr -> nx_packet_union_next.nx_packet_tcp_que… in _nx_packet_transmit_release()
94 NX_PACKET_DEBUG(__FILE__, __LINE__, packet_ptr); in _nx_packet_transmit_release()
99 …if ((packet_ptr -> nx_packet_union_next.nx_packet_tcp_queue_next != ((NX_PACKET *)NX_PACKET_ALLOCA… in _nx_packet_transmit_release()
100 … (packet_ptr -> nx_packet_union_next.nx_packet_tcp_queue_next != ((NX_PACKET *)NX_PACKET_FREE))) in _nx_packet_transmit_release()
106 packet_ptr -> nx_packet_queue_next = (NX_PACKET *)NX_DRIVER_TX_DONE; in _nx_packet_transmit_release()
109 packet_ptr -> nx_packet_prepend_ptr += packet_ptr -> nx_packet_ip_header_length; in _nx_packet_transmit_release()
110 packet_ptr -> nx_packet_length -= packet_ptr -> nx_packet_ip_header_length; in _nx_packet_transmit_release()
113 packet_ptr -> nx_packet_ip_header_length = 0; in _nx_packet_transmit_release()
128 status = _nx_packet_release(packet_ptr); in _nx_packet_transmit_release()
Dnx_udp_packet_receive.c87 VOID _nx_udp_packet_receive(NX_IP *ip_ptr, NX_PACKET *packet_ptr) in _nx_udp_packet_receive() argument
99 NX_PACKET_DEBUG(__FILE__, __LINE__, packet_ptr); in _nx_udp_packet_receive()
110 if (packet_ptr -> nx_packet_length < sizeof(NX_UDP_HEADER)) in _nx_udp_packet_receive()
120 _nx_packet_release(packet_ptr); in _nx_udp_packet_receive()
129 udp_header_ptr = (NX_UDP_HEADER *)packet_ptr -> nx_packet_prepend_ptr; in _nx_udp_packet_receive()
139 …if (packet_ptr -> nx_packet_length < (((udp_header_ptr -> nx_udp_header_word_1) >> NX_SHIFT_BY_16)… in _nx_udp_packet_receive()
149 _nx_packet_release(packet_ptr); in _nx_udp_packet_receive()
158packet_ptr -> nx_packet_length = (((udp_header_ptr -> nx_udp_header_word_1) >> NX_SHIFT_BY_16) & N… in _nx_udp_packet_receive()
188 if ((packet_ptr -> nx_packet_ip_version == NX_IP_VERSION_V4) && in _nx_udp_packet_receive()
197 NX_ICMPV4_SEND_DEST_UNREACHABLE(ip_ptr, packet_ptr, NX_ICMP_PORT_UNREACH_CODE); in _nx_udp_packet_receive()
[all …]
Dnx_arp_packet_receive.c83 VOID _nx_arp_packet_receive(NX_IP *ip_ptr, NX_PACKET *packet_ptr) in _nx_arp_packet_receive() argument
101 if (packet_ptr -> nx_packet_length < NX_ARP_MESSAGE_SIZE) in _nx_arp_packet_receive()
112 _nx_packet_release(packet_ptr); in _nx_arp_packet_receive()
121 message_ptr = (ULONG *)packet_ptr -> nx_packet_prepend_ptr; in _nx_arp_packet_receive()
147 _nx_packet_release(packet_ptr); in _nx_arp_packet_receive()
160 if (packet_ptr -> nx_packet_address.nx_packet_interface_ptr == NX_NULL) in _nx_arp_packet_receive()
164 packet_ptr -> nx_packet_address.nx_packet_interface_ptr = &ip_ptr -> nx_ip_interface[0]; in _nx_arp_packet_receive()
168 interface_ptr = packet_ptr -> nx_packet_address.nx_packet_interface_ptr; in _nx_arp_packet_receive()
193 _nx_packet_release(packet_ptr); in _nx_arp_packet_receive()
203 …if ((sender_physical_msw != packet_ptr -> nx_packet_address.nx_packet_interface_ptr -> nx_interfac… in _nx_arp_packet_receive()
[all …]
Dnx_ip_header_add.c88 UINT _nx_ip_header_add(NX_IP *ip_ptr, NX_PACKET *packet_ptr, ULONG source_ip, ULONG destination_ip, in _nx_ip_header_add() argument
108packet_ptr -> nx_packet_prepend_ptr = (packet_ptr -> nx_packet_prepend_ptr - sizeof(NX_IPV4_HEADE… in _nx_ip_header_add()
111packet_ptr -> nx_packet_length = packet_ptr -> nx_packet_length + (ULONG)sizeof(NX_IPV4_HEADER) +… in _nx_ip_header_add()
115 NX_ASSERT(packet_ptr -> nx_packet_prepend_ptr >= packet_ptr -> nx_packet_data_start); in _nx_ip_header_add()
119 ip_header_ptr = (NX_IPV4_HEADER *)packet_ptr -> nx_packet_prepend_ptr; in _nx_ip_header_add()
120 packet_ptr -> nx_packet_ip_header = packet_ptr -> nx_packet_prepend_ptr; in _nx_ip_header_add()
121 packet_ptr -> nx_packet_ip_header_length = (UCHAR)(packet_ptr -> nx_packet_ip_header_length + in _nx_ip_header_add()
126 if (packet_ptr -> nx_packet_identical_copy == NX_TRUE) in _nx_ip_header_add()
144 (0xFFFF & packet_ptr -> nx_packet_length)); in _nx_ip_header_add()
151 …-> nx_ip_header_word_0 = (NX_IP_VERSION | type_of_service | (0xFFFF & packet_ptr -> nx_packet_len… in _nx_ip_header_add()
[all …]
Dnx_ip_packet_receive.c82 VOID _nx_ip_packet_receive(NX_IP *ip_ptr, NX_PACKET *packet_ptr) in _nx_ip_packet_receive() argument
95 NX_PACKET_DEBUG(__FILE__, __LINE__, packet_ptr); in _nx_ip_packet_receive()
99 if (packet_ptr -> nx_packet_address.nx_packet_interface_ptr == NX_NULL) in _nx_ip_packet_receive()
101 packet_ptr -> nx_packet_address.nx_packet_interface_ptr = &(ip_ptr -> nx_ip_interface[0]); in _nx_ip_packet_receive()
106 version_byte = *(packet_ptr -> nx_packet_prepend_ptr); in _nx_ip_packet_receive()
111 packet_ptr -> nx_packet_ip_version = ip_version; in _nx_ip_packet_receive()
113 packet_ptr -> nx_packet_ip_header = packet_ptr -> nx_packet_prepend_ptr; in _nx_ip_packet_receive()
121 if (ip_ptr -> nx_ip_packet_filter((VOID *)(packet_ptr -> nx_packet_prepend_ptr), in _nx_ip_packet_receive()
126 _nx_packet_release(packet_ptr); in _nx_ip_packet_receive()
136 … if (ip_ptr -> nx_ip_packet_filter_extended(ip_ptr, packet_ptr, NX_IP_PACKET_IN) != NX_SUCCESS) in _nx_ip_packet_receive()
[all …]
Dnx_ipv6_process_fragment_option.c85 UINT _nx_ipv6_process_fragment_option(NX_IP *ip_ptr, NX_PACKET *packet_ptr) in _nx_ipv6_process_fragment_option() argument
94 NX_PACKET_DEBUG(__FILE__, __LINE__, packet_ptr); in _nx_ipv6_process_fragment_option()
110 if (packet_ptr -> nx_packet_length < sizeof(NX_IPV6_HEADER_FRAGMENT_OPTION)) in _nx_ipv6_process_fragment_option()
117 fragment_option = (NX_IPV6_HEADER_FRAGMENT_OPTION *)packet_ptr -> nx_packet_prepend_ptr; in _nx_ipv6_process_fragment_option()
133 ip_header = (NX_IPV6_HEADER *)packet_ptr -> nx_packet_ip_header; in _nx_ipv6_process_fragment_option()
149 NX_ICMPV6_SEND_PARAMETER_PROBLEM(ip_ptr, packet_ptr, 0, 4); in _nx_ipv6_process_fragment_option()
163 …if (((fragment_option -> nx_ipv6_header_fragment_option_offset_flag & 0xFFF8) + packet_ptr -> nx_p… in _nx_ipv6_process_fragment_option()
174 NX_ICMPV6_SEND_PARAMETER_PROBLEM(ip_ptr, packet_ptr, 0, in _nx_ipv6_process_fragment_option()
175 … (ULONG)((packet_ptr -> nx_packet_prepend_ptr - packet_ptr -> nx_packet_ip_header) + 2)); in _nx_ipv6_process_fragment_option()
192 (ip_ptr -> nx_ip_received_fragment_tail) -> nx_packet_queue_next = packet_ptr; in _nx_ipv6_process_fragment_option()
[all …]
Dnx_icmpv6_packet_process.c101 VOID _nx_icmpv6_packet_process(NX_IP *ip_ptr, NX_PACKET *packet_ptr) in _nx_icmpv6_packet_process() argument
113 NX_PACKET_DEBUG(__FILE__, __LINE__, packet_ptr); in _nx_icmpv6_packet_process()
117 header_ptr = (NX_ICMPV6_HEADER *)packet_ptr -> nx_packet_prepend_ptr; in _nx_icmpv6_packet_process()
124 …if (packet_ptr -> nx_packet_address.nx_packet_ipv6_address_ptr -> nxd_ipv6_address_attached -> nx_… in _nx_icmpv6_packet_process()
130 …if ((packet_ptr -> nx_packet_ipsec_sa_ptr != NX_NULL) && (((NX_IPSEC_SA *)(packet_ptr -> nx_packet… in _nx_icmpv6_packet_process()
141 ipv6_header = (NX_IPV6_HEADER *)packet_ptr -> nx_packet_ip_header; in _nx_icmpv6_packet_process()
144 checksum = _nx_ip_checksum_compute(packet_ptr, NX_PROTOCOL_ICMPV6, in _nx_icmpv6_packet_process()
145 (UINT)packet_ptr -> nx_packet_length, in _nx_icmpv6_packet_process()
165 _nx_packet_release(packet_ptr); in _nx_icmpv6_packet_process()
173 _nx_icmpv6_process_echo_reply(ip_ptr, packet_ptr); in _nx_icmpv6_packet_process()
[all …]
Dnx_ip_packet_checksum_compute.c83 VOID _nx_ip_packet_checksum_compute(NX_PACKET *packet_ptr) in _nx_ip_packet_checksum_compute() argument
109 if (packet_ptr -> nx_packet_ip_version == NX_IP_VERSION_V4) in _nx_ip_packet_checksum_compute()
115 if (packet_ptr -> nx_packet_ip_version == NX_IP_VERSION_V6) in _nx_ip_packet_checksum_compute()
122 org_prepend_ptr = packet_ptr -> nx_packet_prepend_ptr; in _nx_ip_packet_checksum_compute()
136 ip_header_ptr = (NX_IPV4_HEADER *)packet_ptr -> nx_packet_prepend_ptr; in _nx_ip_packet_checksum_compute()
148 … if (packet_ptr -> nx_packet_interface_capability_flag & NX_INTERFACE_CAPABILITY_IPV4_TX_CHECKSUM) in _nx_ip_packet_checksum_compute()
151 checksum = _nx_ip_checksum_compute(packet_ptr, NX_IP_VERSION_V4, in _nx_ip_packet_checksum_compute()
167packet_ptr -> nx_packet_interface_capability_flag &= (ULONG)(~NX_INTERFACE_CAPABILITY_IPV4_TX_CHE… in _nx_ip_packet_checksum_compute()
183packet_ptr -> nx_packet_prepend_ptr = packet_ptr -> nx_packet_prepend_ptr + (ip_header_length << … in _nx_ip_packet_checksum_compute()
184 data_length = packet_ptr -> nx_packet_length - (ip_header_length << 2); in _nx_ip_packet_checksum_compute()
[all …]
Dnx_ram_network_driver.c68 void _nx_ram_network_driver_output(NX_PACKET *packet_ptr, UINT interface_instance_id);
69 void _nx_ram_network_driver_receive(NX_IP *ip_ptr, NX_PACKET *packet_ptr, UINT interface_instanc…
159 NX_PACKET *packet_ptr; in _nx_ram_network_driver() local
348 packet_ptr = driver_req_ptr -> nx_ip_driver_packet; in _nx_ram_network_driver()
351packet_ptr -> nx_packet_prepend_ptr = packet_ptr -> nx_packet_prepend_ptr - NX_ETHERNET_SIZE; in _nx_ram_network_driver()
354 packet_ptr -> nx_packet_length = packet_ptr -> nx_packet_length + NX_ETHERNET_SIZE; in _nx_ram_network_driver()
359 ethernet_frame_ptr = (ULONG *)(packet_ptr -> nx_packet_prepend_ptr - 2); in _nx_ram_network_driver()
380 else if (packet_ptr -> nx_packet_ip_version == 4) in _nx_ram_network_driver()
404 _nx_ram_network_driver_output(packet_ptr, i); in _nx_ram_network_driver()
668 void _nx_ram_network_driver_output(NX_PACKET *packet_ptr, UINT interface_instance_id) in _nx_ram_network_driver_output() argument
[all …]
Dnx_icmpv6_process_echo_request.c89 VOID _nx_icmpv6_process_echo_request(NX_IP *ip_ptr, NX_PACKET *packet_ptr) in _nx_icmpv6_process_echo_request() argument
113 NX_PACKET_DEBUG(__FILE__, __LINE__, packet_ptr); in _nx_icmpv6_process_echo_request()
117 if (packet_ptr -> nx_packet_length < sizeof(NX_ICMPV6_ECHO)) in _nx_icmpv6_process_echo_request()
126 _nx_packet_release(packet_ptr); in _nx_icmpv6_process_echo_request()
133 header_ptr = (NX_ICMPV6_HEADER *)packet_ptr -> nx_packet_prepend_ptr; in _nx_icmpv6_process_echo_request()
137 ipv6_header = (NX_IPV6_HEADER *)packet_ptr -> nx_packet_ip_header; in _nx_icmpv6_process_echo_request()
144 …interface_ptr = packet_ptr -> nx_packet_address.nx_packet_ipv6_address_ptr -> nxd_ipv6_address_att… in _nx_icmpv6_process_echo_request()
148 … &packet_ptr -> nx_packet_address.nx_packet_ipv6_address_ptr, interface_ptr); in _nx_icmpv6_process_echo_request()
155 _nx_packet_release(packet_ptr); in _nx_icmpv6_process_echo_request()
164 …if (packet_ptr -> nx_packet_address.nx_packet_ipv6_address_ptr -> nxd_ipv6_address_state != NX_IPV… in _nx_icmpv6_process_echo_request()
[all …]
Dnx_ip_driver_packet_send.c83 VOID _nx_ip_driver_packet_send(NX_IP *ip_ptr, NX_PACKET *packet_ptr, ULONG destination_ip, ULONG f… in _nx_ip_driver_packet_send() argument
99 NX_PACKET_DEBUG(__FILE__, __LINE__, packet_ptr); in _nx_ip_driver_packet_send()
103 driver_request.nx_ip_driver_packet = packet_ptr; in _nx_ip_driver_packet_send()
104 …driver_request.nx_ip_driver_interface = packet_ptr -> nx_packet_address.nx_packet_inte… in _nx_ip_driver_packet_send()
108 …if (packet_ptr -> nx_packet_address.nx_packet_interface_ptr -> nx_interface_address_mapping_needed) in _nx_ip_driver_packet_send()
112 …network_mask = packet_ptr -> nx_packet_address.nx_packet_interface_ptr -> nx_interface_ip_network_… in _nx_ip_driver_packet_send()
113 … network = packet_ptr -> nx_packet_address.nx_packet_interface_ptr -> nx_interface_ip_network; in _nx_ip_driver_packet_send()
127 …else if (destination_ip == packet_ptr -> nx_packet_address.nx_packet_interface_ptr -> nx_interface… in _nx_ip_driver_packet_send()
233 …if (packet_ptr -> nx_packet_length > packet_ptr -> nx_packet_address.nx_packet_interface_ptr -> nx… in _nx_ip_driver_packet_send()
248 _nx_packet_transmit_release(packet_ptr); in _nx_ip_driver_packet_send()
[all …]
Dnx_icmpv6_process_echo_reply.c87 VOID _nx_icmpv6_process_echo_reply(NX_IP *ip_ptr, NX_PACKET *packet_ptr) in _nx_icmpv6_process_echo_reply() argument
99 NX_PACKET_DEBUG(__FILE__, __LINE__, packet_ptr); in _nx_icmpv6_process_echo_reply()
103 if (packet_ptr -> nx_packet_length < sizeof(NX_ICMPV6_ECHO)) in _nx_icmpv6_process_echo_reply()
112 _nx_packet_release(packet_ptr); in _nx_icmpv6_process_echo_reply()
119 ipv6_header = (NX_IPV6_HEADER *)packet_ptr -> nx_packet_ip_header; in _nx_icmpv6_process_echo_reply()
123 echo_ptr = (NX_ICMPV6_ECHO *)packet_ptr -> nx_packet_prepend_ptr; in _nx_icmpv6_process_echo_reply()
141 _nx_packet_release(packet_ptr); in _nx_icmpv6_process_echo_reply()
148 …if (packet_ptr -> nx_packet_address.nx_packet_ipv6_address_ptr -> nxd_ipv6_address_state != NX_IPV… in _nx_icmpv6_process_echo_reply()
159 _nx_packet_release(packet_ptr); in _nx_icmpv6_process_echo_reply()
238packet_ptr -> nx_packet_length = packet_ptr -> nx_packet_length - (ULONG)sizeof(NX_ICMPV6_ECH… in _nx_icmpv6_process_echo_reply()
[all …]
Dnx_icmpv4_packet_process.c83 VOID _nx_icmpv4_packet_process(NX_IP *ip_ptr, NX_PACKET *packet_ptr) in _nx_icmpv4_packet_process() argument
97 NX_PACKET_DEBUG(__FILE__, __LINE__, packet_ptr); in _nx_icmpv4_packet_process()
101 header_ptr = (NX_ICMPV4_HEADER *)packet_ptr -> nx_packet_prepend_ptr; in _nx_icmpv4_packet_process()
108 …if (packet_ptr -> nx_packet_address.nx_packet_interface_ptr -> nx_interface_capability_flag & NX_I… in _nx_icmpv4_packet_process()
114 …if ((packet_ptr -> nx_packet_ipsec_sa_ptr != NX_NULL) && (((NX_IPSEC_SA *)(packet_ptr -> nx_packet… in _nx_icmpv4_packet_process()
125 checksum = _nx_ip_checksum_compute(packet_ptr, NX_IP_ICMP, in _nx_icmpv4_packet_process()
126 (UINT)packet_ptr -> nx_packet_length, in _nx_icmpv4_packet_process()
147 _nx_packet_release(packet_ptr); in _nx_icmpv4_packet_process()
155 _nx_icmpv4_process_echo_reply(ip_ptr, packet_ptr); in _nx_icmpv4_packet_process()
159 _nx_icmpv4_process_echo_request(ip_ptr, packet_ptr); in _nx_icmpv4_packet_process()
[all …]
/NetX-Duo-v6.2.1/addons/ftp/
Dnxd_ftp_client.c391 NX_PACKET *packet_ptr; in _nx_ftp_client_connect_internal() local
434 …status = nx_tcp_socket_receive(&(ftp_client_ptr -> nx_ftp_client_control_socket), &packet_ptr, wa… in _nx_ftp_client_connect_internal()
451 if (packet_ptr -> nx_packet_next) in _nx_ftp_client_connect_internal()
455 nx_packet_release(packet_ptr); in _nx_ftp_client_connect_internal()
469 buffer_ptr = packet_ptr -> nx_packet_prepend_ptr; in _nx_ftp_client_connect_internal()
470 length = packet_ptr -> nx_packet_length; in _nx_ftp_client_connect_internal()
480 nx_packet_release(packet_ptr); in _nx_ftp_client_connect_internal()
492 …if (((!username) && ((UINT)(packet_ptr -> nx_packet_data_end - packet_ptr -> nx_packet_prepend_ptr… in _nx_ftp_client_connect_internal()
493 …((username) && ((UINT)(packet_ptr -> nx_packet_data_end - packet_ptr -> nx_packet_prepend_ptr) < 7… in _nx_ftp_client_connect_internal()
497 nx_packet_release(packet_ptr); in _nx_ftp_client_connect_internal()
[all …]
/NetX-Duo-v6.2.1/nx_secure/src/
Dnx_secure_tls_packet_allocate.c82 NX_PACKET **packet_ptr, ULONG wait_option) in _nx_secure_tls_packet_allocate() argument
97 status = nx_packet_allocate(pool_ptr, packet_ptr, packet_type, wait_option); in _nx_secure_tls_packet_allocate()
105 …if (((ULONG)((*packet_ptr) -> nx_packet_data_end) - (ULONG)((*packet_ptr) -> nx_packet_prepend_ptr… in _nx_secure_tls_packet_allocate()
110 nx_packet_release(*packet_ptr); in _nx_secure_tls_packet_allocate()
111 *packet_ptr = NX_NULL; in _nx_secure_tls_packet_allocate()
116 (*packet_ptr) -> nx_packet_prepend_ptr += NX_SECURE_TLS_RECORD_HEADER_SIZE; in _nx_secure_tls_packet_allocate()
129 nx_packet_release(*packet_ptr); in _nx_secure_tls_packet_allocate()
130 *packet_ptr = NX_NULL; in _nx_secure_tls_packet_allocate()
134 …if ((iv_size + 2u) > ((ULONG)((*packet_ptr) -> nx_packet_data_end) - (ULONG)((*packet_ptr) -> nx_p… in _nx_secure_tls_packet_allocate()
138 nx_packet_release(*packet_ptr); in _nx_secure_tls_packet_allocate()
[all …]
Dnx_secure_dtls_packet_allocate.c78 NX_PACKET **packet_ptr, ULONG wait_option) in _nx_secure_dtls_packet_allocate() argument
97 status = nx_packet_allocate(pool_ptr, packet_ptr, packet_type, wait_option); in _nx_secure_dtls_packet_allocate()
104 …if (((ULONG)((*packet_ptr) -> nx_packet_data_end) - (ULONG)((*packet_ptr) -> nx_packet_prepend_ptr… in _nx_secure_dtls_packet_allocate()
109 nx_packet_release(*packet_ptr); in _nx_secure_dtls_packet_allocate()
114 (*packet_ptr) -> nx_packet_prepend_ptr += NX_SECURE_DTLS_RECORD_HEADER_SIZE; in _nx_secure_dtls_packet_allocate()
131 …if ((iv_size + 2u) > ((ULONG)((*packet_ptr) -> nx_packet_data_end) - (ULONG)((*packet_ptr) -> nx_p… in _nx_secure_dtls_packet_allocate()
135 nx_packet_release(*packet_ptr); in _nx_secure_dtls_packet_allocate()
136 *packet_ptr = NX_NULL; in _nx_secure_dtls_packet_allocate()
144 NX_SECURE_MEMSET((*packet_ptr) -> nx_packet_prepend_ptr, 0, iv_size); in _nx_secure_dtls_packet_allocate()
145 (*packet_ptr) -> nx_packet_prepend_ptr += iv_size; in _nx_secure_dtls_packet_allocate()
[all …]
/NetX-Duo-v6.2.1/addons/ppp/
Dnx_ppp.c162 NX_PACKET *packet_ptr; in _nx_ppp_thread_entry() local
223 packet_ptr = ppp_ptr -> nx_ppp_deferred_received_packet_head; in _nx_ppp_thread_entry() local
226 … ppp_ptr -> nx_ppp_deferred_received_packet_head = packet_ptr -> nx_packet_queue_next; in _nx_ppp_thread_entry()
240 nx_packet_release(packet_ptr); in _nx_ppp_thread_entry()
248 packet_ptr = ppp_ptr -> nx_ppp_ip_packet_queue_head; in _nx_ppp_thread_entry() local
267 next_packet_ptr = packet_ptr -> nx_packet_queue_next; in _nx_ppp_thread_entry()
270 nx_packet_release(packet_ptr); in _nx_ppp_thread_entry()
273 packet_ptr = next_packet_ptr; in _nx_ppp_thread_entry()
283 packet_ptr = ppp_ptr -> nx_ppp_raw_packet_queue_head; in _nx_ppp_thread_entry() local
302 next_packet_ptr = packet_ptr -> nx_packet_queue_next; in _nx_ppp_thread_entry()
[all …]

12345678910>>...12