Searched refs:len_left (Results 1 - 4 of 4) sorted by relevance

/external/android-clat/
H A Dipv4.c64 size_t len_left; local
94 len_left = len - header->ihl * 4;
111 * length, which is not the same as len_left in the case of fragmented packets. But since
114 old_sum = ipv4_pseudo_header_checksum(header, len_left);
115 new_sum = ipv6_pseudo_header_checksum(ip6_targ, len_left, nxthdr);
124 iov_len = generic_packet(out, pos + 2, next_header, len_left);
126 iov_len = icmp_packet(out, pos + 2, (const struct icmphdr *) next_header, new_sum, len_left);
129 len_left);
132 len_left);
134 iov_len = generic_packet(out, pos + 2, next_header, len_left);
[all...]
H A Dipv6.c84 size_t len_left; local
114 len_left = len - sizeof(struct ip6_hdr);
129 if (len_left < sizeof(*frag_hdr)) {
135 len_left -= sizeof(*frag_hdr);
148 * length, which is not the same as len_left in the case of fragmented packets. But since
151 old_sum = ipv6_pseudo_header_checksum(ip6, len_left, protocol);
152 new_sum = ipv4_pseudo_header_checksum(ip_targ, len_left);
156 iov_len = generic_packet(out, pos + 2, next_header, len_left);
158 iov_len = icmp6_packet(out, pos + 2, (const struct icmp6_hdr *) next_header, len_left);
161 len_left);
[all...]
/external/chromium_org/net/socket/
H A Dstream_listen_socket.cc131 int len_left = len; local
133 int sent = HANDLE_EINTR(send(socket_, send_buf, len_left, 0));
134 if (sent == len_left) { // A shortcut to avoid extraneous checks.
150 // sent != len_left according to the shortcut above.
153 len_left -= sent;
/external/bluetooth/bluedroid/stack/avrc/
H A Davrc_bld_tg.c302 UINT16 len, len_left; local
315 len_left = GKI_get_buf_size(p_pkt) - BT_HDR_SIZE - p_pkt->offset - p_pkt->len;
332 if (len_left < (p_rsp->p_attrs[xx].str_len + 4))
335 xx, p_rsp->p_attrs[xx].str_len, len_left);

Completed in 1368 milliseconds