Searched refs:frag_hdr (Results 1 – 5 of 5) sorted by relevance
/packages/modules/Connectivity/clatd/ |
D | ipv6.c | 80 struct ip6_frag *frag_hdr = NULL; in ipv6_packet() local 127 frag_hdr = (struct ip6_frag *)next_header; in ipv6_packet() 128 if (len_left < sizeof(*frag_hdr)) { in ipv6_packet() 133 next_header += sizeof(*frag_hdr); in ipv6_packet() 134 len_left -= sizeof(*frag_hdr); in ipv6_packet() 136 protocol = parse_frag_header(frag_hdr, ip_targ); in ipv6_packet() 154 if (frag_hdr && (frag_hdr->ip6f_offlg & IP6F_OFF_MASK)) { in ipv6_packet()
|
D | translate.c | 179 size_t maybe_fill_frag_header(struct ip6_frag *frag_hdr, struct ip6_hdr *ip6_targ, in maybe_fill_frag_header() argument 188 frag_hdr->ip6f_nxt = ip6_targ->ip6_nxt; in maybe_fill_frag_header() 189 frag_hdr->ip6f_reserved = 0; in maybe_fill_frag_header() 191 frag_hdr->ip6f_offlg = htons(frag_off << 3); in maybe_fill_frag_header() 193 frag_hdr->ip6f_offlg |= IP6F_MORE_FRAG; in maybe_fill_frag_header() 195 frag_hdr->ip6f_ident = htonl(ntohs(old_header->id)); in maybe_fill_frag_header() 198 return sizeof(*frag_hdr); in maybe_fill_frag_header() 208 uint8_t parse_frag_header(const struct ip6_frag *frag_hdr, struct iphdr *ip_targ) { in parse_frag_header() argument 209 uint16_t frag_off = (ntohs(frag_hdr->ip6f_offlg & IP6F_OFF_MASK) >> 3); in parse_frag_header() 210 if (frag_hdr->ip6f_offlg & IP6F_MORE_FRAG) { in parse_frag_header() [all …]
|
D | translate.h | 60 size_t maybe_fill_frag_header(struct ip6_frag *frag_hdr, struct ip6_hdr *ip6_targ, 62 uint8_t parse_frag_header(const struct ip6_frag *frag_hdr, struct iphdr *ip_targ); 65 size_t maybe_fill_frag_header(struct ip6_frag *frag_hdr, struct ip6_hdr *ip6_targ, 67 uint8_t parse_frag_header(const struct ip6_frag *frag_hdr, struct iphdr *ip_targ);
|
D | ipv4.c | 60 struct ip6_frag *frag_hdr; in ipv4_packet() local 118 frag_hdr = (struct ip6_frag *)out[pos + 1].iov_base; in ipv4_packet() 119 frag_hdr_len = maybe_fill_frag_header(frag_hdr, ip6_targ, header); in ipv4_packet() 122 if (frag_hdr_len && frag_hdr->ip6f_offlg & IP6F_OFF_MASK) { in ipv4_packet()
|
/packages/modules/Connectivity/bpf_progs/ |
D | clatd.c | 48 struct frag_hdr { struct 123 if (data + l2_header_size + sizeof(*ip6) + sizeof(struct frag_hdr) > data_end) in nat64() 125 const struct frag_hdr *frag = (const struct frag_hdr *)(ip6 + 1); in nat64() 137 tot_len -= sizeof(struct frag_hdr); in nat64() 241 if (bpf_skb_adjust_room(skb, -(__s32)sizeof(struct frag_hdr), BPF_ADJ_ROOM_NET, /*flags*/0)) in nat64()
|