Home
last modified time | relevance | path

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

/external/android-clat/
Dipv6.c84 size_t len_left; in ipv6_packet() local
114 len_left = len - sizeof(struct ip6_hdr); in ipv6_packet()
129 if (len_left < sizeof(*frag_hdr)) { in ipv6_packet()
135 len_left -= sizeof(*frag_hdr); in ipv6_packet()
151 old_sum = ipv6_pseudo_header_checksum(ip6, len_left, protocol); in ipv6_packet()
152 new_sum = ipv4_pseudo_header_checksum(ip_targ, len_left); in ipv6_packet()
156 iov_len = generic_packet(out, pos + 2, next_header, len_left); in ipv6_packet()
158 iov_len = icmp6_packet(out, pos + 2, (const struct icmp6_hdr *) next_header, len_left); in ipv6_packet()
161 len_left); in ipv6_packet()
164 len_left); in ipv6_packet()
[all …]
Dipv4.c64 size_t len_left; in ipv4_packet() local
94 len_left = len - header->ihl * 4; in ipv4_packet()
114 old_sum = ipv4_pseudo_header_checksum(header, len_left); in ipv4_packet()
115 new_sum = ipv6_pseudo_header_checksum(ip6_targ, len_left, nxthdr); in ipv4_packet()
124 iov_len = generic_packet(out, pos + 2, next_header, len_left); in ipv4_packet()
126 iov_len = icmp_packet(out, pos + 2, (const struct icmphdr *) next_header, new_sum, len_left); in ipv4_packet()
129 len_left); in ipv4_packet()
132 len_left); in ipv4_packet()
134 iov_len = generic_packet(out, pos + 2, next_header, len_left); in ipv4_packet()