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.c88 UINT bytes_to_copy; in _nx_ipv6_packet_copy() local
116 bytes_to_copy = bytes_remaining; in _nx_ipv6_packet_copy()
122 …if (bytes_to_copy > (UINT)(source_pkt -> nx_packet_append_ptr - source_pkt -> nx_packet_prepend_pt… in _nx_ipv6_packet_copy()
128bytes_to_copy = (UINT)(source_pkt -> nx_packet_append_ptr - source_pkt -> nx_packet_prepend_ptr); in _nx_ipv6_packet_copy()
134 … if (bytes_to_copy > (UINT)(dest_pkt -> nx_packet_data_end - dest_pkt -> nx_packet_append_ptr)) in _nx_ipv6_packet_copy()
140bytes_to_copy = (UINT)(dest_pkt -> nx_packet_data_end - dest_pkt -> nx_packet_append_ptr); in _nx_ipv6_packet_copy()
147 dest_pkt -> nx_packet_append_ptr += bytes_to_copy; in _nx_ipv6_packet_copy()
148 dest_pkt -> nx_packet_length -= bytes_to_copy; in _nx_ipv6_packet_copy()
152 source_pkt -> nx_packet_prepend_ptr += bytes_to_copy; in _nx_ipv6_packet_copy()
154 while (bytes_to_copy) in _nx_ipv6_packet_copy()
[all …]
Dnx_packet_data_extract_offset.c94 ULONG bytes_to_copy; in _nx_packet_data_extract_offset() local
161 bytes_to_copy = (packet_ptr -> nx_packet_length - offset); in _nx_packet_data_extract_offset()
164 if (bytes_to_copy < buffer_length) in _nx_packet_data_extract_offset()
166 *bytes_copied = bytes_to_copy; /* the amount of bytes returned to the caller */ in _nx_packet_data_extract_offset()
167 remaining_bytes = bytes_to_copy; /* for use in the copy loop */ in _nx_packet_data_extract_offset()
183 bytes_to_copy = (ULONG)(working_packet_ptr -> nx_packet_append_ptr - source_ptr); in _nx_packet_data_extract_offset()
184 if (remaining_bytes < bytes_to_copy) in _nx_packet_data_extract_offset()
186 bytes_to_copy = remaining_bytes; in _nx_packet_data_extract_offset()
190 …memcpy(destination_ptr, source_ptr, bytes_to_copy); /* Use case of memcpy is verified. lgtm[cpp/ba… in _nx_packet_data_extract_offset()
193 destination_ptr += bytes_to_copy; in _nx_packet_data_extract_offset()
[all …]
Dnx_packet_data_retrieve.c80 ULONG bytes_to_copy; in _nx_packet_data_retrieve() local
102bytes_to_copy = (ULONG)(packet_ptr -> nx_packet_append_ptr - packet_ptr -> nx_packet_prepend_ptr); in _nx_packet_data_retrieve()
106 …memcpy(destination_ptr, packet_ptr -> nx_packet_prepend_ptr, bytes_to_copy); /* Use case of memcpy… in _nx_packet_data_retrieve()
108 remaining_bytes -= bytes_to_copy; in _nx_packet_data_retrieve()
109 destination_ptr += bytes_to_copy; in _nx_packet_data_retrieve()
Dnx_icmpv6_send_error_message.c109 UINT bytes_to_copy, i; in _nx_icmpv6_send_error_message() local
189bytes_to_copy = (UINT)(offending_packet -> nx_packet_append_ptr - offending_packet -> nx_packet_ip… in _nx_icmpv6_send_error_message()
193 …if ((bytes_to_copy + sizeof(NX_ICMPV6_ERROR) + sizeof(NX_IPV6_HEADER)) >= NX_MINIMUM_IPV6_PATH_MTU) in _nx_icmpv6_send_error_message()
197bytes_to_copy = (UINT)(NX_MINIMUM_IPV6_PATH_MTU - (sizeof(NX_IPV6_HEADER) + sizeof(NX_ICMPV6_ERROR… in _nx_icmpv6_send_error_message()
204 …if (((INT)((bytes_to_copy + sizeof(NX_IPV6_HEADER) + sizeof(NX_ICMPV6_ERROR) + NX_PHYSICAL_HEADER)… in _nx_icmpv6_send_error_message()
207bytes_to_copy = (UINT)(payload - (sizeof(NX_IPV6_HEADER) + sizeof(NX_ICMPV6_ERROR) + NX_PHYSICAL_H… in _nx_icmpv6_send_error_message()
213 pkt_ptr -> nx_packet_length = bytes_to_copy + (ULONG)sizeof(NX_ICMPV6_ERROR); in _nx_icmpv6_send_error_message()
235 for (; (INT)bytes_to_copy > 0; bytes_to_copy -= 4) in _nx_icmpv6_send_error_message()
Dnx_icmpv4_send_error_message.c101 UINT bytes_to_copy, i; in _nx_icmpv4_send_error_message() local
198 bytes_to_copy = (UINT)((ip_header_size + 2) * sizeof(ULONG)); in _nx_icmpv4_send_error_message()
203 pkt_ptr -> nx_packet_length = bytes_to_copy + (ULONG)sizeof(NX_ICMPV4_ERROR); in _nx_icmpv4_send_error_message()
224 for (; bytes_to_copy > 0; bytes_to_copy -= 4) in _nx_icmpv4_send_error_message()
/NetX-Duo-v6.2.1/addons/BSD/
Dnxd_bsd.c9154 ULONG bytes_to_copy; in nx_packet_data_extract_offset() local
9212 bytes_to_copy = (packet_ptr->nx_packet_length - offset); in nx_packet_data_extract_offset()
9215 if( bytes_to_copy < buffer_length) in nx_packet_data_extract_offset()
9217 *bytes_copied = bytes_to_copy; /* the amount of bytes returned to the caller */ in nx_packet_data_extract_offset()
9218 remaining_bytes = bytes_to_copy; /* for use in the copy loop */ in nx_packet_data_extract_offset()
9233 bytes_to_copy = working_packet_ptr -> nx_packet_append_ptr - source_ptr; in nx_packet_data_extract_offset()
9234 if(remaining_bytes < bytes_to_copy) in nx_packet_data_extract_offset()
9235 bytes_to_copy = remaining_bytes; in nx_packet_data_extract_offset()
9238 memcpy(destination_ptr, source_ptr, bytes_to_copy); /* Use case of memcpy is verified. */ in nx_packet_data_extract_offset()
9241 destination_ptr += bytes_to_copy; in nx_packet_data_extract_offset()
[all …]