| /linux/net/ipv6/netfilter/ |
| H A D | ip6t_frag.c | 55 (fh->reserved || (ntohs(fh->frag_off) & 0x6))) && in frag_mt6() 57 (ntohs(fh->frag_off) & ~0x7)) && in frag_mt6() 59 !(ntohs(fh->frag_off) & IP6_MF)) && in frag_mt6() 61 (ntohs(fh->frag_off) & IP6_MF)); in frag_mt6()
|
| /linux/net/xfrm/ |
| H A D | xfrm_inout.h | 15 XFRM_MODE_SKB_CB(skb)->frag_off = iph->frag_off; in xfrm4_extract_header() 30 XFRM_MODE_SKB_CB(skb)->frag_off = htons(IP_DF); in xfrm6_extract_header() 66 iph->frag_off = XFRM_MODE_SKB_CB(skb)->frag_off; in xfrm4_beet_make_header()
|
| /linux/net/netfilter/ipset/ |
| H A D | ip_set_getport.c | 109 if (ntohs(iph->frag_off) & IP_OFFSET) in ip_set_get_ip4_port() 137 __be16 frag_off = 0; in ip_set_get_ip6_port() local 143 &frag_off); in ip_set_get_ip6_port() 144 if (protoff < 0 || (frag_off & htons(~0x7)) != 0) in ip_set_get_ip6_port()
|
| /linux/net/netfilter/ |
| H A D | nf_log_syslog.c | 343 if (ntohs(ih->frag_off) & IP_CE) in dump_ipv4_packet() 345 if (ntohs(ih->frag_off) & IP_DF) in dump_ipv4_packet() 347 if (ntohs(ih->frag_off) & IP_MF) in dump_ipv4_packet() 351 if (ntohs(ih->frag_off) & IP_OFFSET) in dump_ipv4_packet() 352 nf_log_buf_add(m, "FRAG:%u ", ntohs(ih->frag_off) & IP_OFFSET); in dump_ipv4_packet() 378 ntohs(ih->frag_off) & IP_OFFSET, in dump_ipv4_packet() 385 ntohs(ih->frag_off) & IP_OFFSET, in dump_ipv4_packet() 408 if (ntohs(ih->frag_off) & IP_OFFSET) in dump_ipv4_packet() 475 if (ntohs(ih->frag_off) & IP_OFFSET) in dump_ipv4_packet() 501 if (ntohs(ih->frag_off) & IP_OFFSET) in dump_ipv4_packet() [all …]
|
| H A D | nf_conntrack_ovs.c | 45 __be16 frag_off; in nf_ct_helper() local 49 &frag_off); in nf_ct_helper() 50 if (ofs < 0 || (frag_off & htons(~0x7)) != 0) { in nf_ct_helper()
|
| H A D | xt_TCPOPTSTRIP.c | 101 __be16 frag_off; in tcpoptstrip_tg6() local 104 tcphoff = ipv6_skip_exthdr(skb, sizeof(*ipv6h), &nexthdr, &frag_off); in tcpoptstrip_tg6()
|
| H A D | xt_TCPMSS.c | 223 __be16 frag_off, oldlen, newlen; in tcpmss_tg6() local 228 tcphoff = ipv6_skip_exthdr(skb, sizeof(*ipv6h), &nexthdr, &frag_off); in tcpmss_tg6()
|
| H A D | nf_conntrack_proto.c | 146 __be16 frag_off; in nf_confirm() local 170 start = ipv6_skip_exthdr(skb, sizeof(struct ipv6hdr), &pnum, &frag_off); in nf_confirm() 171 if (start < 0 || (frag_off & htons(~0x7)) != 0) in nf_confirm()
|
| /linux/include/net/ |
| H A D | ipv6_frag.h | 124 __be16 frag_off; in ipv6frag_thdr_truncated() local 127 offset = ipv6_skip_exthdr(skb, start, &nexthdr, &frag_off); in ipv6frag_thdr_truncated() 128 if (offset < 0 || (frag_off & htons(IP6_OFFSET))) in ipv6frag_thdr_truncated()
|
| /linux/net/ipv4/ |
| H A D | ah4.c | 139 top_iph->frag_off = iph->frag_off; in ah_output_done() 198 iph->frag_off = top_iph->frag_off; in ah_output() 213 top_iph->frag_off = 0; in ah_output() 255 top_iph->frag_off = iph->frag_off; in ah_output() 395 iph->frag_off = 0; in ah_input()
|
| H A D | ip_output.c | 173 iph->frag_off = htons(IP_DF); in ip_build_and_send_pkt() 176 iph->frag_off = 0; in ip_build_and_send_pkt() 512 iph->frag_off = htons(IP_DF); in __ip_queue_xmit() 514 iph->frag_off = 0; in __ip_queue_xmit() 581 if ((iph->frag_off & htons(IP_DF)) == 0) in ip_fragment() 612 iph->frag_off = htons(IP_MF); in ip_fraglist_init() 634 iph->frag_off = htons(iter->offset >> 3); in ip_fraglist_prepare() 636 iph->frag_off |= htons(IP_MF); in ip_fraglist_prepare() 656 state->offset = (ntohs(iph->frag_off) & IP_OFFSET) << 3; in ip_frag_init() 657 state->not_last_frag = iph->frag_off & htons(IP_MF); in ip_frag_init() [all …]
|
| H A D | ip_tunnel_core.c | 89 iph->frag_off = ip_mtu_locked(&rt->dst) ? 0 : df; in iptunnel_xmit() 257 .frag_off = htons(IP_DF), in iptunnel_pmtud_build_icmp() 285 if (mtu < 576 || iph->frag_off != htons(IP_DF)) in iptunnel_pmtud_check_icmp() 389 __be16 frag_off; in iptunnel_pmtud_check_icmpv6() local 400 &frag_off); in iptunnel_pmtud_check_icmpv6() 401 if (offset < 0 || (frag_off & htons(~0x7))) in iptunnel_pmtud_check_icmpv6() 1178 parms->iph.frag_off = htons(IP_DF); in ip_tunnel_netlink_parms() 1185 parms->iph.frag_off = htons(IP_DF); in ip_tunnel_netlink_parms()
|
| /linux/tools/testing/selftests/drivers/net/ |
| H A D | gro.c | |
| /linux/net/ipv6/ |
| H A D | mcast_snoop.c | 42 __be16 frag_off; in ipv6_mc_check_exthdrs() local 51 offset = ipv6_skip_exthdr(skb, offset, &nexthdr, &frag_off); in ipv6_mc_check_exthdrs()
|
| H A D | exthdrs_core.c | 95 frag_off), in ipv6_skip_exthdr() 251 frag_off), in ipv6_find_hdr()
|
| /linux/net/ipv4/netfilter/ |
| H A D | nf_reject_ipv4.c | 122 if (ip_hdr(oldskb)->frag_off & htons(IP_OFFSET)) in nf_reject_skb_v4_unreach() 181 if (ip_hdr(oldskb)->frag_off & htons(IP_OFFSET)) in nf_reject_ip_tcphdr_get() 215 niph->frag_off = htons(IP_DF); in nf_reject_iphdr_put() 354 if (iph->frag_off & htons(IP_OFFSET)) in nf_send_unreach()
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | bpf_flow.c | 57 __be16 frag_off; member 300 if (iph->frag_off & bpf_htons(IP_MF | IP_OFFSET)) { in PROG() 302 if (iph->frag_off & bpf_htons(IP_OFFSET)) { in PROG() 377 if (!(fragh->frag_off & bpf_htons(IP6_OFFSET))) { in PROG()
|
| H A D | ip_check_defrag.c | 22 offset = bpf_ntohs(iph->frag_off); in is_frag_v4()
|
| H A D | test_cls_redirect.c | 210 uint16_t frag_off = ip->frag_off & bpf_htons(IP_OFFSET_MASK); in ipv4_is_fragment() 211 return (ip->frag_off & bpf_htons(IP_MF)) != 0 || frag_off > 0; in ipv4_is_fragment() 212 uint16_t frag_off = ip->frag_off & bpf_htons(IP_OFFSET_MASK); ipv4_is_fragment() local
|
| /linux/net/bridge/netfilter/ |
| H A D | ebt_ip6.c | 64 __be16 frag_off; in ebt_ip6_mt() local 67 offset_ph = ipv6_skip_exthdr(skb, sizeof(_ip6h), &nexthdr, &frag_off); in ebt_ip6_mt()
|
| H A D | ebt_log.c | 119 __be16 frag_off; in ebt_log_packet() local 130 offset_ph = ipv6_skip_exthdr(skb, sizeof(_iph), &nexthdr, &frag_off); in ebt_log_packet()
|
| /linux/samples/bpf/ |
| H A D | parse_ldabs.c | 23 return load_half(ctx, nhoff + offsetof(struct iphdr, frag_off)) in ip_is_fragment()
|
| /linux/tools/testing/selftests/net/ |
| H A D | nat6to4.bpf.c | 100 .frag_off = bpf_htons(IP_DF), // u16 in sched_cls_ingress6_nat_6_prog() 200 if (ip4->frag_off & ~bpf_htons(IP_DF)) in sched_cls_egress4_snat4_prog()
|
| /linux/net/openvswitch/ |
| H A D | flow.c | 383 unsigned short frag_off; in parse_ipv6hdr() local 405 nexthdr = ipv6_find_hdr(skb, &payload_ofs, -1, &frag_off, &flags); in parse_ipv6hdr() 407 if (frag_off) { in parse_ipv6hdr() 707 offset = nh->frag_off & htons(IP_OFFSET); in key_extract_l3l4() 713 if (nh->frag_off & htons(IP_MF) || in key_extract_l3l4()
|
| /linux/net/sched/ |
| H A D | act_nat.c | 170 } else if ((iph->frag_off & htons(IP_OFFSET)) || in tcf_nat_act() 178 switch (iph->frag_off & htons(IP_OFFSET) ? 0 : iph->protocol) { in tcf_nat_act()
|