/linux-6.1.9/tools/testing/selftests/net/bpf/ |
D | nat6to4.c | 46 #define IP_DF 0x4000 // Flag: "Don't Fragment" macro 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-6.1.9/net/ipv4/netfilter/ |
D | nf_dup_ipv4.c | 81 iph->frag_off |= htons(IP_DF); in nf_dup_ipv4()
|
D | nf_reject_ipv4.c | 180 niph->frag_off = htons(IP_DF); in nf_reject_iphdr_put()
|
/linux-6.1.9/net/xfrm/ |
D | xfrm_inout.h | 30 XFRM_MODE_SKB_CB(skb)->frag_off = htons(IP_DF); in xfrm6_extract_header()
|
D | xfrm_output.c | 308 0 : (XFRM_MODE_SKB_CB(skb)->frag_off & htons(IP_DF)); in xfrm4_tunnel_encap_add() 776 if (!(ip_hdr(skb)->frag_off & htons(IP_DF)) || skb->ignore_df) in xfrm4_tunnel_check_size()
|
/linux-6.1.9/net/ipv4/ |
D | ip_forward.c | 48 if (unlikely((ip_hdr(skb)->frag_off & htons(IP_DF)) == 0)) in ip_exceeds_mtu()
|
D | ipip.c | 337 p->iph.ihl != 5 || (p->iph.frag_off & htons(~IP_DF))) in ipip_tunnel_ctl() 521 !!(parm->iph.frag_off & htons(IP_DF))) || in ipip_fill_info()
|
D | ip_tunnel_core.c | 237 .frag_off = htons(IP_DF), in iptunnel_pmtud_build_icmp() 266 if (mtu < 576 || iph->frag_off != htons(IP_DF)) in iptunnel_pmtud_check_icmp() 1133 parms->iph.frag_off = htons(IP_DF); in ip_tunnel_netlink_parms() 1140 parms->iph.frag_off = htons(IP_DF); in ip_tunnel_netlink_parms()
|
D | af_inet.c | 1392 if (fixedid && !(ip_hdr(skb)->frag_off & htons(IP_DF))) in inet_gso_segment() 1489 flush = (u16)((ntohl(*(__be32 *)iph) ^ skb_gro_len(skb)) | (id & ~IP_DF)); in inet_gro_receive() 1516 ((iph->frag_off ^ iph2->frag_off) & htons(IP_DF)); in inet_gro_receive() 1533 !(iph->frag_off & htons(IP_DF))) { in inet_gro_receive() 1547 NAPI_GRO_CB(skb)->is_atomic = !!(iph->frag_off & htons(IP_DF)); in inet_gro_receive()
|
D | ip_tunnel.c | 509 (inner_iph->frag_off & htons(IP_DF)) && in tnl_update_pmtu() 598 df = htons(IP_DF); in ip_md_tunnel_xmit() 771 df |= (inner_iph->frag_off & htons(IP_DF)); in ip_tunnel_xmit() 885 p->iph.frag_off |= htons(IP_DF); in ip_tunnel_ctl()
|
D | ip_output.c | 167 iph->frag_off = htons(IP_DF); in ip_build_and_send_pkt() 511 iph->frag_off = htons(IP_DF); in __ip_queue_xmit() 580 if ((iph->frag_off & htons(IP_DF)) == 0) in ip_fragment() 733 iph->frag_off |= htons(IP_DF); in ip_frag_next() 1536 df = htons(IP_DF); in __ip_make_skb()
|
D | ip_fragment.c | 364 if (ip_hdr(skb)->frag_off & htons(IP_DF) && in ip_frag_queue() 451 iph->frag_off = htons(IP_DF); in ip_frag_reasm()
|
D | ip_gre.c | 790 p->iph.ihl != 5 || (p->iph.frag_off & htons(~IP_DF)) || in ipgre_tunnel_ctl() 1169 parms->iph.frag_off = htons(IP_DF); in ipgre_netlink_parms() 1180 && (parms->iph.frag_off & htons(IP_DF))) in ipgre_netlink_parms() 1507 !!(p->iph.frag_off & htons(IP_DF))) || in ipgre_fill_info()
|
D | ip_vti.c | 241 if (!(ip_hdr(skb)->frag_off & htons(IP_DF))) in vti_xmit()
|
/linux-6.1.9/tools/testing/selftests/bpf/progs/ |
D | xdp_synproxy_kern.c | 21 #define IP_DF 0x4000 macro 422 if ((hdr->ipv4->frag_off & bpf_htons(IP_DF | IP_MF | IP_OFFSET)) != bpf_htons(IP_DF)) in tcp_lookup()
|
/linux-6.1.9/drivers/infiniband/hw/ocrdma/ |
D | ocrdma_ah.c | 131 ipv4.frag_off = htons(IP_DF); in set_av_attr()
|
/linux-6.1.9/drivers/net/ |
D | geneve.c | 966 df = key->tun_flags & TUNNEL_DONT_FRAGMENT ? htons(IP_DF) : 0; in geneve_xmit_skb() 976 df = htons(IP_DF); in geneve_xmit_skb() 981 df = htons(IP_DF); in geneve_xmit_skb() 985 if (iph->frag_off & htons(IP_DF)) in geneve_xmit_skb() 986 df = htons(IP_DF); in geneve_xmit_skb()
|
D | bareudp.c | 323 df = key->tun_flags & TUNNEL_DONT_FRAGMENT ? htons(IP_DF) : 0; in bareudp_xmit_skb()
|
/linux-6.1.9/include/net/ |
D | ip.h | 137 #define IP_DF 0x4000 /* Flag: "Don't Fragment" */ macro 536 if ((iph->frag_off & htons(IP_DF)) && !skb->ignore_df) { in ip_select_ident_segs()
|
/linux-6.1.9/net/netfilter/ |
D | nfnetlink_osf.c | 181 ctx->df = ntohs(ip->frag_off) & IP_DF; in nf_osf_hdr_ctx_init()
|
/linux-6.1.9/net/ipv6/ |
D | sit.c | 1260 p->iph.ihl != 5 || (p->iph.frag_off & htons(~IP_DF))) in __ipip6_tunnel_ioctl_validate() 1264 p->iph.frag_off |= htons(IP_DF); in __ipip6_tunnel_ioctl_validate() 1700 !!(parm->iph.frag_off & htons(IP_DF))) || in ipip6_fill_info()
|
/linux-6.1.9/drivers/net/ppp/ |
D | pptp.c | 228 iph->frag_off = htons(IP_DF); in pptp_xmit()
|
/linux-6.1.9/drivers/infiniband/sw/rxe/ |
D | rxe_net.c | 279 __be16 df = htons(IP_DF); in prepare4()
|
/linux-6.1.9/net/netfilter/ipvs/ |
D | ip_vs_xmit.c | 242 if (unlikely(ip_hdr(skb)->frag_off & htons(IP_DF) && in ensure_mtu_is_adequate() 989 *df = (old_iph->frag_off & htons(IP_DF)); in ip_vs_prepare_tunneled_skb()
|
/linux-6.1.9/drivers/infiniband/hw/qedr/ |
D | qedr_roce_cm.c | 471 udh->ip4.frag_off = htons(IP_DF); in qedr_gsi_build_header()
|