Home
last modified time | relevance | path

Searched refs:len_left (Results 1 – 3 of 3) sorted by relevance

/external/android-clat/
Dipv6.c85 size_t len_left; in ipv6_packet() local
115 len_left = len - sizeof(struct ip6_hdr); in ipv6_packet()
130 if (len_left < sizeof(*frag_hdr)) { in ipv6_packet()
136 len_left -= sizeof(*frag_hdr); in ipv6_packet()
152 old_sum = ipv6_pseudo_header_checksum(ip6, len_left, protocol); in ipv6_packet()
153 new_sum = ipv4_pseudo_header_checksum(ip_targ, len_left); in ipv6_packet()
157 iov_len = generic_packet(out, pos + 2, next_header, len_left); in ipv6_packet()
159 iov_len = icmp6_packet(out, pos + 2, (const struct icmp6_hdr *)next_header, len_left); in ipv6_packet()
162 tcp_packet(out, pos + 2, (const struct tcphdr *)next_header, old_sum, new_sum, len_left); in ipv6_packet()
165 udp_packet(out, pos + 2, (const struct udphdr *)next_header, old_sum, new_sum, len_left); in ipv6_packet()
[all …]
Dipv4.c65 size_t len_left; in ipv4_packet() local
95 len_left = len - header->ihl * 4; in ipv4_packet()
115 old_sum = ipv4_pseudo_header_checksum(header, len_left); in ipv4_packet()
116 new_sum = ipv6_pseudo_header_checksum(ip6_targ, len_left, nxthdr); in ipv4_packet()
125 iov_len = generic_packet(out, pos + 2, next_header, len_left); in ipv4_packet()
127 iov_len = icmp_packet(out, pos + 2, (const struct icmphdr *)next_header, new_sum, len_left); in ipv4_packet()
130 tcp_packet(out, pos + 2, (const struct tcphdr *)next_header, old_sum, new_sum, len_left); in ipv4_packet()
133 udp_packet(out, pos + 2, (const struct udphdr *)next_header, old_sum, new_sum, len_left); in ipv4_packet()
135 iov_len = generic_packet(out, pos + 2, next_header, len_left); in ipv4_packet()
/external/u-boot/drivers/usb/gadget/
Dci_udc.c428 uint32_t len_left, len_this_dtd; in ci_ep_submit_next_request() local
446 len_left = len; in ci_ep_submit_next_request()
450 len_this_dtd = min(len_left, (unsigned)EP_MAX_LENGTH_TRANSFER); in ci_ep_submit_next_request()
459 len_left -= len_this_dtd; in ci_ep_submit_next_request()
462 if (len_left) { in ci_ep_submit_next_request()
471 } while (len_left); in ci_ep_submit_next_request()