Home
last modified time | relevance | path

Searched refs:bytes_to_copy (Results 1 – 6 of 6) sorted by relevance

/NetX-Duo-v6.2.1/common/src/
Dnx_ipv6_packet_copy.c87 UINT bytes_to_copy; in _nx_ipv6_packet_copy() local
115 bytes_to_copy = bytes_remaining; in _nx_ipv6_packet_copy()
121 …if (bytes_to_copy > (UINT)(source_pkt -> nx_packet_append_ptr - source_pkt -> nx_packet_prepend_pt… in _nx_ipv6_packet_copy()
127bytes_to_copy = (UINT)(source_pkt -> nx_packet_append_ptr - source_pkt -> nx_packet_prepend_ptr); in _nx_ipv6_packet_copy()
133 … if (bytes_to_copy > (UINT)(dest_pkt -> nx_packet_data_end - dest_pkt -> nx_packet_append_ptr)) in _nx_ipv6_packet_copy()
139bytes_to_copy = (UINT)(dest_pkt -> nx_packet_data_end - dest_pkt -> nx_packet_append_ptr); in _nx_ipv6_packet_copy()
146 dest_pkt -> nx_packet_append_ptr += bytes_to_copy; in _nx_ipv6_packet_copy()
147 dest_pkt -> nx_packet_length -= bytes_to_copy; in _nx_ipv6_packet_copy()
151 source_pkt -> nx_packet_prepend_ptr += bytes_to_copy; in _nx_ipv6_packet_copy()
153 while (bytes_to_copy) in _nx_ipv6_packet_copy()
[all …]
Dnx_packet_data_extract_offset.c93 ULONG bytes_to_copy; in _nx_packet_data_extract_offset() local
160 bytes_to_copy = (packet_ptr -> nx_packet_length - offset); in _nx_packet_data_extract_offset()
163 if (bytes_to_copy < buffer_length) in _nx_packet_data_extract_offset()
165 *bytes_copied = bytes_to_copy; /* the amount of bytes returned to the caller */ in _nx_packet_data_extract_offset()
166 remaining_bytes = bytes_to_copy; /* for use in the copy loop */ in _nx_packet_data_extract_offset()
182 bytes_to_copy = (ULONG)(working_packet_ptr -> nx_packet_append_ptr - source_ptr); in _nx_packet_data_extract_offset()
183 if (remaining_bytes < bytes_to_copy) in _nx_packet_data_extract_offset()
185 bytes_to_copy = remaining_bytes; in _nx_packet_data_extract_offset()
189 …memcpy(destination_ptr, source_ptr, bytes_to_copy); /* Use case of memcpy is verified. lgtm[cpp/ba… in _nx_packet_data_extract_offset()
192 destination_ptr += bytes_to_copy; in _nx_packet_data_extract_offset()
[all …]
Dnx_packet_data_retrieve.c79 ULONG bytes_to_copy; in _nx_packet_data_retrieve() local
101bytes_to_copy = (ULONG)(packet_ptr -> nx_packet_append_ptr - packet_ptr -> nx_packet_prepend_ptr); in _nx_packet_data_retrieve()
105 …memcpy(destination_ptr, packet_ptr -> nx_packet_prepend_ptr, bytes_to_copy); /* Use case of memcpy… in _nx_packet_data_retrieve()
107 remaining_bytes -= bytes_to_copy; in _nx_packet_data_retrieve()
108 destination_ptr += bytes_to_copy; in _nx_packet_data_retrieve()
Dnx_icmpv6_send_error_message.c108 UINT bytes_to_copy, i; in _nx_icmpv6_send_error_message() local
188bytes_to_copy = (UINT)(offending_packet -> nx_packet_append_ptr - offending_packet -> nx_packet_ip… in _nx_icmpv6_send_error_message()
192 …if ((bytes_to_copy + sizeof(NX_ICMPV6_ERROR) + sizeof(NX_IPV6_HEADER)) >= NX_MINIMUM_IPV6_PATH_MTU) in _nx_icmpv6_send_error_message()
196bytes_to_copy = (UINT)(NX_MINIMUM_IPV6_PATH_MTU - (sizeof(NX_IPV6_HEADER) + sizeof(NX_ICMPV6_ERROR… in _nx_icmpv6_send_error_message()
203 …if (((INT)((bytes_to_copy + sizeof(NX_IPV6_HEADER) + sizeof(NX_ICMPV6_ERROR) + NX_PHYSICAL_HEADER)… in _nx_icmpv6_send_error_message()
206bytes_to_copy = (UINT)(payload - (sizeof(NX_IPV6_HEADER) + sizeof(NX_ICMPV6_ERROR) + NX_PHYSICAL_H… in _nx_icmpv6_send_error_message()
212 pkt_ptr -> nx_packet_length = bytes_to_copy + (ULONG)sizeof(NX_ICMPV6_ERROR); in _nx_icmpv6_send_error_message()
234 for (; (INT)bytes_to_copy > 0; bytes_to_copy -= 4) in _nx_icmpv6_send_error_message()
Dnx_icmpv4_send_error_message.c100 UINT bytes_to_copy, i; in _nx_icmpv4_send_error_message() local
197 bytes_to_copy = (UINT)((ip_header_size + 2) * sizeof(ULONG)); in _nx_icmpv4_send_error_message()
202 pkt_ptr -> nx_packet_length = bytes_to_copy + (ULONG)sizeof(NX_ICMPV4_ERROR); in _nx_icmpv4_send_error_message()
223 for (; bytes_to_copy > 0; bytes_to_copy -= 4) in _nx_icmpv4_send_error_message()
/NetX-Duo-v6.2.1/addons/BSD/
Dnxd_bsd.c9595 ULONG bytes_to_copy; in nx_packet_data_extract_offset() local
9653 bytes_to_copy = (packet_ptr->nx_packet_length - offset); in nx_packet_data_extract_offset()
9656 if( bytes_to_copy < buffer_length) in nx_packet_data_extract_offset()
9658 *bytes_copied = bytes_to_copy; /* the amount of bytes returned to the caller */ in nx_packet_data_extract_offset()
9659 remaining_bytes = bytes_to_copy; /* for use in the copy loop */ in nx_packet_data_extract_offset()
9674 bytes_to_copy = working_packet_ptr -> nx_packet_append_ptr - source_ptr; in nx_packet_data_extract_offset()
9675 if(remaining_bytes < bytes_to_copy) in nx_packet_data_extract_offset()
9676 bytes_to_copy = remaining_bytes; in nx_packet_data_extract_offset()
9679 memcpy(destination_ptr, source_ptr, bytes_to_copy); /* Use case of memcpy is verified. */ in nx_packet_data_extract_offset()
9682 destination_ptr += bytes_to_copy; in nx_packet_data_extract_offset()
[all …]