Searched defs:frag_hdr (Results 1 - 3 of 3) sorted by relevance

/external/android-clat/
H A Dipv4.c60 struct ip6_frag *frag_hdr; local
118 frag_hdr = (struct ip6_frag *) out[pos + 1].iov_base;
119 frag_hdr_len = maybe_fill_frag_header(frag_hdr, ip6_targ, header);
122 if (frag_hdr_len && frag_hdr->ip6f_offlg & IP6F_OFF_MASK) {
H A Dipv6.c81 struct ip6_frag *frag_hdr = NULL; local
128 frag_hdr = (struct ip6_frag *) next_header;
129 if (len_left < sizeof(*frag_hdr)) {
134 next_header += sizeof(*frag_hdr);
135 len_left -= sizeof(*frag_hdr);
137 protocol = parse_frag_header(frag_hdr, ip_targ);
155 if (frag_hdr && (frag_hdr->ip6f_offlg & IP6F_OFF_MASK)) {
H A Dtranslate.c173 * frag_hdr - target (ipv6) fragmentation header
178 size_t maybe_fill_frag_header(struct ip6_frag *frag_hdr, struct ip6_hdr *ip6_targ, argument
187 frag_hdr->ip6f_nxt = ip6_targ->ip6_nxt;
188 frag_hdr->ip6f_reserved = 0;
190 frag_hdr->ip6f_offlg = htons(frag_off << 3);
192 frag_hdr->ip6f_offlg |= IP6F_MORE_FRAG;
194 frag_hdr->ip6f_ident = htonl(ntohs(old_header->id));
197 return sizeof(*frag_hdr);
203 * frag_hdr - (ipv6) fragmentation header
207 uint8_t parse_frag_header(const struct ip6_frag *frag_hdr, struc argument
[all...]

Completed in 3842 milliseconds