Searched defs:ip_targ (Results 1 - 2 of 2) sorted by path

/external/android-clat/
H A Dipv6.c80 struct iphdr *ip_targ = (struct iphdr *) out[pos].iov_base; local
122 fill_ip_header(ip_targ, 0, protocol, ip6);
137 protocol = parse_frag_header(frag_hdr, ip_targ);
143 ip_targ->protocol = IPPROTO_ICMP;
152 new_sum = ipv4_pseudo_header_checksum(ip_targ, len_left);
176 ip_targ->tot_len = htons(ntohs(ip_targ->tot_len) + packet_length(out, pos));
177 ip_targ->check = ip_checksum(ip_targ, sizeof(struct iphdr));
H A Dtranslate.c118 * ip_targ - (ipv4) target packet header, source: original ipv4 addr, dest: local subnet addr
204 * ip_targ - target (ipv4) header
207 uint8_t parse_frag_header(const struct ip6_frag *frag_hdr, struct iphdr *ip_targ) { argument
212 ip_targ->frag_off = htons(frag_off);
213 ip_targ->id = htons(ntohl(frag_hdr->ip6f_ident) & 0xffff);
214 ip_targ->protocol = frag_hdr->ip6f_nxt;

Completed in 365 milliseconds