Home | History | Annotate | Download | only in android-clat

Lines Matching refs:pos

37 int icmp6_packet(clat_packet out, int pos, const struct icmp6_hdr *icmp6, size_t len) {
49 return icmp6_to_icmp(out, pos, icmp6, payload, payload_size);
77 int ipv6_packet(clat_packet out, int pos, const char *packet, size_t len) {
79 struct iphdr *ip_targ = (struct iphdr *) out[pos].iov_base;
122 out[pos].iov_len = sizeof(struct iphdr);
155 iov_len = generic_packet(out, pos + 2, next_header, len_left);
157 iov_len = icmp6_packet(out, pos + 2, (const struct icmp6_hdr *) next_header, len_left);
159 iov_len = tcp_packet(out, pos + 2, (const struct tcphdr *) next_header, old_sum, new_sum,
162 iov_len = udp_packet(out, pos + 2, (const struct udphdr *) next_header, old_sum, new_sum,
165 iov_len = generic_packet(out, pos + 2, next_header, len_left);
175 ip_targ->tot_len = htons(ntohs(ip_targ->tot_len) + packet_length(out, pos));