Lines Matching refs:pos
34 int icmp_packet(clat_packet out, int pos, const struct icmphdr *icmp, uint32_t checksum,
47 return icmp_to_icmp6(out, pos, icmp, checksum, payload, payload_size);
57 int ipv4_packet(clat_packet out, int pos, const char *packet, size_t len) {
59 struct ip6_hdr *ip6_targ = (struct ip6_hdr *) out[pos].iov_base;
107 out[pos].iov_len = sizeof(struct ip6_hdr);
118 frag_hdr = (struct ip6_frag *) out[pos + 1].iov_base;
120 out[pos + 1].iov_len = frag_hdr_len;
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);
128 iov_len = tcp_packet(out, pos + 2, (const struct tcphdr *) next_header, old_sum, new_sum,
131 iov_len = udp_packet(out, pos + 2, (const struct udphdr *) next_header, old_sum, new_sum,
134 iov_len = generic_packet(out, pos + 2, next_header, len_left);
144 ip6_targ->ip6_plen = htons(packet_length(out, pos));