| /linux/net/ipv6/netfilter/ |
| H A D | ip6t_frag.c | 56 pr_debug("INFO %04X ", fh->frag_off); in frag_mt6() 57 pr_debug("OFFSET %04X ", ntohs(fh->frag_off) & ~0x7); in frag_mt6() 58 pr_debug("RES %02X %04X", fh->reserved, ntohs(fh->frag_off) & 0x6); in frag_mt6() 59 pr_debug("MF %04X ", fh->frag_off & htons(IP6_MF)); in frag_mt6() 69 ntohs(fh->frag_off) & 0x6, in frag_mt6() 71 (fh->reserved || (ntohs(fh->frag_off) & 0x06)))); in frag_mt6() 74 ntohs(fh->frag_off) & ~0x7, in frag_mt6() 76 (ntohs(fh->frag_off) & ~0x7))); in frag_mt6() 79 ntohs(fh->frag_off) & IP6_MF, in frag_mt6() 81 !((ntohs(fh->frag_off) & IP6_MF)))); in frag_mt6() [all …]
|
| /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/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() 513 iph->frag_off = htons(IP_DF); in __ip_queue_xmit() 515 iph->frag_off = 0; in __ip_queue_xmit() 582 if ((iph->frag_off & htons(IP_DF)) == 0) in ip_fragment() 613 iph->frag_off = htons(IP_MF); in ip_fraglist_init() 635 iph->frag_off = htons(iter->offset >> 3); in ip_fraglist_prepare() 637 iph->frag_off |= htons(IP_MF); in ip_fraglist_prepare() 657 state->offset = (ntohs(iph->frag_off) & IP_OFFSET) << 3; in ip_frag_init() 658 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() 258 .frag_off = htons(IP_DF), in iptunnel_pmtud_build_icmp() 287 if (mtu < 576 || iph->frag_off != htons(IP_DF)) in iptunnel_pmtud_check_icmp() 383 __be16 frag_off; in iptunnel_pmtud_check_icmpv6() local 394 &frag_off); in iptunnel_pmtud_check_icmpv6() 395 if (offset < 0 || (frag_off & htons(~0x7))) in iptunnel_pmtud_check_icmpv6() 1172 parms->iph.frag_off = htons(IP_DF); in ip_tunnel_netlink_parms() 1179 parms->iph.frag_off = htons(IP_DF); in ip_tunnel_netlink_parms()
|
| H A D | ip_fragment.c | 288 offset = ntohs(ip_hdr(skb)->frag_off); in ip_frag_queue() 358 if (ip_hdr(skb)->frag_off & htons(IP_DF) && in ip_frag_queue() 448 iph->frag_off = htons(IP_DF); in ip_frag_reasm() 450 iph->frag_off = 0; in ip_frag_reasm()
|
| /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/netfilter/ |
| 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_flow_table_ip.c | 351 __be16 frag_off; in nf_flow_ip6_tunnel_proto() local 364 &frag_off); in nf_flow_ip6_tunnel_proto() 602 __be16 frag_off = iph->frag_off; in nf_flow_tunnel_ipip_push() local 626 iph->frag_off = ip_mtu_locked(&rt->dst) ? 0 : frag_off; in nf_flow_tunnel_ipip_push()
|
| /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
|
| H A D | test_cls_redirect_dynptr.c | 121 uint16_t frag_off = ip->frag_off & bpf_htons(IP_OFFSET_MASK); in ipv4_is_fragment() local 122 return (ip->frag_off & bpf_htons(IP_MF)) != 0 || frag_off > 0; in ipv4_is_fragment()
|
| /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/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/samples/bpf/ |
| H A D | parse_ldabs.c | 23 return load_half(ctx, nhoff + offsetof(struct iphdr, frag_off)) in ip_is_fragment()
|
| /linux/drivers/net/ethernet/huawei/hinic3/ |
| H A D | hinic3_tx.c | 248 __be16 frag_off; in hinic3_tx_csum() local 255 &l4_proto, &frag_off); in hinic3_tx_csum() 279 __be16 frag_off; in get_inner_l3_l4_type() local 290 l4_proto, &frag_off); in get_inner_l3_l4_type()
|
| /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()
|
| /linux/drivers/net/ethernet/huawei/hinic/ |
| H A D | hinic_tx.c | 218 __be16 frag_off; in get_inner_l3_l4_type() local 220 ipv6_skip_exthdr(skb, start, l4_proto, &frag_off); in get_inner_l3_l4_type() 378 __be16 frag_off; in offload_csum() local 387 &l4_proto, &frag_off); in offload_csum()
|