Searched refs:bytes_to_copy (Results 1 – 6 of 6) sorted by relevance
88 UINT bytes_to_copy; in _nx_ipv6_packet_copy() local116 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()128 … bytes_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()140 … bytes_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 …]
94 ULONG bytes_to_copy; in _nx_packet_data_extract_offset() local161 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 …]
80 ULONG bytes_to_copy; in _nx_packet_data_retrieve() local102 … bytes_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()
109 UINT bytes_to_copy, i; in _nx_icmpv6_send_error_message() local189 …bytes_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()197 …bytes_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()207 …bytes_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()
101 UINT bytes_to_copy, i; in _nx_icmpv4_send_error_message() local198 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()
9154 ULONG bytes_to_copy; in nx_packet_data_extract_offset() local9212 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 …]