Home
last modified time | relevance | path

Searched refs:ip_targ (Results 1 – 3 of 3) sorted by relevance

/external/android-clat/
Dipv6.c80 struct iphdr *ip_targ = (struct iphdr *) out[pos].iov_base; in ipv6_packet() local
122 fill_ip_header(ip_targ, 0, protocol, ip6); in ipv6_packet()
137 protocol = parse_frag_header(frag_hdr, ip_targ); in ipv6_packet()
143 ip_targ->protocol = IPPROTO_ICMP; in ipv6_packet()
152 new_sum = ipv4_pseudo_header_checksum(ip_targ, len_left); in ipv6_packet()
176 ip_targ->tot_len = htons(ntohs(ip_targ->tot_len) + packet_length(out, pos)); in ipv6_packet()
177 ip_targ->check = ip_checksum(ip_targ, sizeof(struct iphdr)); in ipv6_packet()
Dtranslate.h46 void fill_ip_header(struct iphdr *ip_targ, uint16_t payload_len, uint8_t protocol,
61 uint8_t parse_frag_header(const struct ip6_frag *frag_hdr, struct iphdr *ip_targ);
66 uint8_t parse_frag_header(const struct ip6_frag *frag_hdr, struct iphdr *ip_targ);
Dtranslate.c207 uint8_t parse_frag_header(const struct ip6_frag *frag_hdr, struct iphdr *ip_targ) { in parse_frag_header() argument
212 ip_targ->frag_off = htons(frag_off); in parse_frag_header()
213 ip_targ->id = htons(ntohl(frag_hdr->ip6f_ident) & 0xffff); in parse_frag_header()
214 ip_targ->protocol = frag_hdr->ip6f_nxt; in parse_frag_header()