Home
last modified time | relevance | path

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

/external/android-clat/
Dipv6.c79 struct iphdr *ip_targ = (struct iphdr *)out[pos].iov_base; in ipv6_packet() local
121 fill_ip_header(ip_targ, 0, protocol, ip6); in ipv6_packet()
136 protocol = parse_frag_header(frag_hdr, ip_targ); in ipv6_packet()
142 ip_targ->protocol = IPPROTO_ICMP; in ipv6_packet()
151 new_sum = ipv4_pseudo_header_checksum(ip_targ, len_left); in ipv6_packet()
175 ip_targ->tot_len = htons(ntohs(ip_targ->tot_len) + packet_length(out, pos)); in ipv6_packet()
176 ip_targ->check = ip_checksum(ip_targ, sizeof(struct iphdr)); in ipv6_packet()
Dtranslate.h47 void fill_ip_header(struct iphdr *ip_targ, uint16_t payload_len, uint8_t protocol,
62 uint8_t parse_frag_header(const struct ip6_frag *frag_hdr, struct iphdr *ip_targ);
67 uint8_t parse_frag_header(const struct ip6_frag *frag_hdr, struct iphdr *ip_targ);
Dtranslate.c208 uint8_t parse_frag_header(const struct ip6_frag *frag_hdr, struct iphdr *ip_targ) { in parse_frag_header() argument
213 ip_targ->frag_off = htons(frag_off); in parse_frag_header()
214 ip_targ->id = htons(ntohl(frag_hdr->ip6f_ident) & 0xffff); in parse_frag_header()
215 ip_targ->protocol = frag_hdr->ip6f_nxt; in parse_frag_header()