Home
last modified time | relevance | path

Searched refs:frag_off (Results 1 – 25 of 25) sorted by relevance

/external/android-clat/
Dtranslate.c134 ip->frag_off = htons(IP_DF); in fill_ip_header()
181 uint16_t frag_flags = ntohs(old_header->frag_off); in maybe_fill_frag_header()
182 uint16_t frag_off = frag_flags & IP_OFFMASK; in maybe_fill_frag_header() local
183 if (frag_off == 0 && (frag_flags & IP_MF) == 0) { in maybe_fill_frag_header()
191 frag_hdr->ip6f_offlg = htons(frag_off << 3); in maybe_fill_frag_header()
209 uint16_t frag_off = (ntohs(frag_hdr->ip6f_offlg & IP6F_OFF_MASK) >> 3); in parse_frag_header() local
211 frag_off |= IP_MF; in parse_frag_header()
213 ip_targ->frag_off = htons(frag_off); in parse_frag_header()
Dclatd_test.cpp189 return ntohs(ip->frag_off) & (IP_OFFMASK | IP_MF); in is_ipv4_fragment()
202 return ntohs(ip->frag_off) & IP_OFFMASK; in ipv4_fragment_offset()
365 ip->frag_off &= ~htons(IP_MF); in reassemble_packet()
Ddump.c45 frag_flags = ntohs(header->frag_off); in dump_ip()
/external/boringssl/src/ssl/
Dd1_both.cc362 const size_t frag_off = msg_hdr.frag_off; in dtls1_open_handshake() local
365 if (frag_off > msg_len || frag_off + frag_len < frag_off || in dtls1_open_handshake()
366 frag_off + frag_len > msg_len || in dtls1_open_handshake()
400 OPENSSL_memcpy(frag->data + DTLS1_HM_HEADER_LENGTH + frag_off, in dtls1_open_handshake()
402 dtls1_hm_fragment_mark(frag, frag_off, frag_off + frag_len); in dtls1_open_handshake()
466 !CBS_get_u24(cbs, &out_hdr->frag_off) || in dtls1_parse_fragment()
675 hdr.frag_off != 0 || in seal_next_message()
Dd1_pkt.cc158 if (msg_hdr.frag_off == 0) { in dtls1_open_app_data()
Dinternal.h2493 uint32_t frag_off;
/external/ltp/testcases/network/stress/ns-tools/
Dns-icmpv4_sender.c371 pkt.hdr.frag_off = htons(IPV4_DEFAULT_FLAG); in create_clean_packet()
446 pkt->hdr.frag_off |= htonl(0x80000000); in thrust_fakes()
454 pkt->hdr.frag_off |= htons(0x2000); in thrust_fakes()
462 pkt->hdr.frag_off &= htons(0xbfff); in thrust_fakes()
473 pkt->hdr.frag_off |= htons(seed); in thrust_fakes()
Dns-icmp_redirector.c410 sndip_p->hdr.frag_off = htons(IPV4_DEFAULT_FLAG); in return_icmp4_redirect()
/external/linux-kselftest/tools/testing/selftests/bpf/progs/
Dbpf_flow.c56 __be16 frag_off; member
286 if (iph->frag_off & bpf_htons(IP_MF | IP_OFFSET)) { in PROG()
288 if (iph->frag_off & bpf_htons(IP_OFFSET)) { in PROG()
363 if (!(fragh->frag_off & bpf_htons(IP6_OFFSET))) { in PROG()
Dtest_xdp.c132 iph->frag_off = 0; in handle_ipv4()
Dtest_xdp_loop.c128 iph->frag_off = 0; in handle_ipv4()
Dtest_xdp_noinline.c352 iph->frag_off = 0; in encap_v4()
677 if (iph->frag_off & 65343) in process_l3_headers_v4()
Dtest_l4lb.c382 if (iph->frag_off & PCKT_FRAGMENTED) in process_packet()
Dtest_l4lb_noinline.c382 if (iph->frag_off & PCKT_FRAGMENTED) in process_packet()
/external/iptables/iptables/
Dxtables-monitor.c341 if (iph->frag_off & htons(0x8000)) in trace_print_packet()
343 if (iph->frag_off & htons(IP_DF)) in trace_print_packet()
345 if (iph->frag_off & htons(IP_MF)) in trace_print_packet()
348 if (ntohs(iph->frag_off) & 0x1fff) in trace_print_packet()
349 printf("FRAG:%u ", ntohs(iph->frag_off) & 0x1fff); in trace_print_packet()
Dnft-ipv4.c64 add_payload(r, offsetof(struct iphdr, frag_off), 2, in nft_ipv4_add()
227 case offsetof(struct iphdr, frag_off): in nft_ipv4_parse_payload()
/external/iproute2/ip/
Diptunnel.c72 p->iph.frag_off = htons(IP_DF); in parse_args()
125 p->iph.frag_off = 0; in parse_args()
127 p->iph.frag_off = htons(IP_DF); in parse_args()
270 if (p.iph.ttl && p.iph.frag_off == 0) { in do_add()
349 if (!(p->iph.frag_off & htons(IP_DF))) in print_tunnel()
/external/linux-kselftest/tools/testing/selftests/bpf/prog_tests/
Dflow_dissector.c71 __be16 frag_off; member
197 .iph.frag_off = __bpf_constant_htons(IP_MF),
223 .iph.frag_off = __bpf_constant_htons(IP_MF),
/external/libnl/include/linux-private/linux/
Dip.h98 __be16 frag_off; member
/external/iproute2/include/uapi/linux/
Dip.h99 __be16 frag_off; member
/external/kernel-headers/original/uapi/linux/
Dip.h99 __be16 frag_off; member
/external/iputils/
Dping.c1297 printf(" %1x %04x", ((ip->frag_off) & 0xe000) >> 13, in pr_iph()
1298 (ip->frag_off) & 0x1fff); in pr_iph()
/external/iputils/Modules/
Dpg3.c279 iph->frag_off = 0; in fill_packet()
/external/toybox/toys/pending/
Dip.c2485 if (!(ptnl->iph.frag_off & htons(IP_DF))) printf(" nopmtudisc"); in display_tunnel()
2556 ptnl->iph.frag_off = htons(IP_DF); in parse_iptunnel_args()
2637 ptnl->iph.frag_off = 0; in parse_iptunnel_args()
2640 ptnl->iph.frag_off = htons(IP_DF); in parse_iptunnel_args()
2756 if (idx != 2 && iptnl.iph.ttl && !(iptnl.iph.frag_off)) in tunnelupdate()
/external/linux-kselftest/tools/testing/selftests/net/
Dpsock_tpacket.c165 ip->frag_off = 0; in create_payload()