Home
last modified time | relevance | path

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

12

/linux-6.1.9/tools/testing/selftests/net/bpf/
Dnat6to4.c46 #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/
Dnf_dup_ipv4.c81 iph->frag_off |= htons(IP_DF); in nf_dup_ipv4()
Dnf_reject_ipv4.c180 niph->frag_off = htons(IP_DF); in nf_reject_iphdr_put()
/linux-6.1.9/net/xfrm/
Dxfrm_inout.h30 XFRM_MODE_SKB_CB(skb)->frag_off = htons(IP_DF); in xfrm6_extract_header()
Dxfrm_output.c308 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/
Dip_forward.c48 if (unlikely((ip_hdr(skb)->frag_off & htons(IP_DF)) == 0)) in ip_exceeds_mtu()
Dipip.c337 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()
Dip_tunnel_core.c237 .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()
Daf_inet.c1392 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()
Dip_tunnel.c509 (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()
Dip_output.c167 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()
Dip_fragment.c364 if (ip_hdr(skb)->frag_off & htons(IP_DF) && in ip_frag_queue()
451 iph->frag_off = htons(IP_DF); in ip_frag_reasm()
Dip_gre.c790 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()
Dip_vti.c241 if (!(ip_hdr(skb)->frag_off & htons(IP_DF))) in vti_xmit()
/linux-6.1.9/tools/testing/selftests/bpf/progs/
Dxdp_synproxy_kern.c21 #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/
Docrdma_ah.c131 ipv4.frag_off = htons(IP_DF); in set_av_attr()
/linux-6.1.9/drivers/net/
Dgeneve.c966 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()
Dbareudp.c323 df = key->tun_flags & TUNNEL_DONT_FRAGMENT ? htons(IP_DF) : 0; in bareudp_xmit_skb()
/linux-6.1.9/include/net/
Dip.h137 #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/
Dnfnetlink_osf.c181 ctx->df = ntohs(ip->frag_off) & IP_DF; in nf_osf_hdr_ctx_init()
/linux-6.1.9/net/ipv6/
Dsit.c1260 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/
Dpptp.c228 iph->frag_off = htons(IP_DF); in pptp_xmit()
/linux-6.1.9/drivers/infiniband/sw/rxe/
Drxe_net.c279 __be16 df = htons(IP_DF); in prepare4()
/linux-6.1.9/net/netfilter/ipvs/
Dip_vs_xmit.c242 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/
Dqedr_roce_cm.c471 udh->ip4.frag_off = htons(IP_DF); in qedr_gsi_build_header()

12