Lines Matching refs:frag
188 struct ip6_frag *frag = (struct ip6_frag *) (ip6 + 1);
189 return len >= sizeof(*ip6) + sizeof(*frag) &&
190 (frag->ip6f_offlg & (IP6F_OFF_MASK | IP6F_MORE_FRAG));
197 int ipv6_fragment_offset(struct ip6_frag *frag) {
198 return ntohs((frag->ip6f_offlg & IP6F_OFF_MASK) >> 3);
230 struct ip6_frag *frag = (struct ip6_frag *) (ip6 + 1);
231 ASSERT_GE(len, sizeof(*ip6) + sizeof(*frag))
233 protocol = frag->ip6f_nxt;
234 payload = frag + 1;
237 payload_length = len - sizeof(*ip6) - sizeof(*frag);
320 struct ip6_frag *frag = (struct ip6_frag *) (ip6_orig + 1);
323 ASSERT_EQ(pos, ipv6_fragment_offset(frag) * 8 + ((i != 0) ? sizeof(*ip6): 0))
327 payload_offset = sizeof(*ip6_orig) + sizeof(*frag);
330 protocol = frag->ip6f_nxt;