Home
last modified time | relevance | path

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

12

/linux/tools/testing/selftests/net/
H A Dnat6to4.bpf.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/tools/testing/selftests/drivers/net/
H A Dgro.c
/linux/net/xfrm/
H A Dxfrm_inout.h30 XFRM_MODE_SKB_CB(skb)->frag_off = htons(IP_DF); in xfrm6_extract_header()
H A Dxfrm_output.c312 0 : (XFRM_MODE_SKB_CB(skb)->frag_off & htons(IP_DF)); in xfrm4_tunnel_encap_add()
848 if (!(ip_hdr(skb)->frag_off & htons(IP_DF)) || skb->ignore_df) in xfrm4_tunnel_check_size()
H A Dxfrm_interface_core.c493 if (!(ip_hdr(skb)->frag_off & htons(IP_DF))) in xfrmi_xmit2()
/linux/net/ipv4/
H A Dip_forward.c48 if (unlikely((ip_hdr(skb)->frag_off & htons(IP_DF)) == 0)) in ip_exceeds_mtu()
H A Dipip.c346 p->iph.ihl != 5 || (p->iph.frag_off & htons(~IP_DF))) in ipip_tunnel_ctl()
559 !!(parm->iph.frag_off & htons(IP_DF))) ||
H A Dip_tunnel_core.c257 .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()
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()
H A Dip_output.c173 iph->frag_off = htons(IP_DF); in ip_build_and_send_pkt()
512 iph->frag_off = htons(IP_DF); in __ip_queue_xmit()
581 if ((iph->frag_off & htons(IP_DF)) == 0) in ip_fragment()
734 iph->frag_off |= htons(IP_DF); in ip_frag_next()
1445 df = htons(IP_DF); in __ip_make_skb()
H A Dip_tunnel.c537 (inner_iph->frag_off & htons(IP_DF)) && in tnl_update_pmtu()
630 df = htons(IP_DF); in ip_md_tunnel_xmit()
804 df |= (inner_iph->frag_off & htons(IP_DF)); in ip_tunnel_xmit()
921 p->iph.frag_off |= htons(IP_DF); in ip_tunnel_ctl()
H A Dip_fragment.c355 if (ip_hdr(skb)->frag_off & htons(IP_DF) && in ip_frag_queue()
435 /* When we set IP_DF on a refragmented skb we must also force a in ip_frag_reasm()
445 iph->frag_off = htons(IP_DF); in ip_frag_reasm()
H A Dip_gre.c833 p->iph.ihl != 5 || (p->iph.frag_off & htons(~IP_DF)) || in ipgre_tunnel_ctl()
1229 parms->iph.frag_off = htons(IP_DF); in ipgre_netlink_parms()
1240 && (parms->iph.frag_off & htons(IP_DF))) in ipgre_netlink_parms()
1575 !!(p->iph.frag_off & htons(IP_DF))) || in ipgre_fill_info()
H A Dip_vti.c244 if (!(ip_hdr(skb)->frag_off & htons(IP_DF))) in vti_xmit()
H A Dipconfig.c841 h->frag_off = htons(IP_DF); in ic_bootp_send_if()
/linux/drivers/infiniband/hw/ocrdma/
H A Docrdma_ah.c131 ipv4.frag_off = htons(IP_DF); in set_av_attr()
/linux/include/net/
H A Ddst_metadata.h229 if (tun_dst && (iph->frag_off & htons(IP_DF))) in ip_tun_rx_dst()
H A Dip.h143 #define IP_DF 0x4000 /* Flag: "Don't Fragment" */ macro
581 if ((iph->frag_off & htons(IP_DF)) && !skb->ignore_df) { in ip_select_ident_segs()
/linux/drivers/net/
H A Dgeneve.c1390 htons(IP_DF) : 0; in geneve_xmit_skb()
1399 df = htons(IP_DF); in geneve_xmit_skb()
1404 df = htons(IP_DF); in geneve6_xmit_skb()
1408 if (iph->frag_off & htons(IP_DF)) in geneve6_xmit_skb()
1409 df = htons(IP_DF); in geneve6_xmit_skb()
H A Dbareudp.c340 htons(IP_DF) : 0; in bareudp_xmit_skb()
/linux/net/netfilter/
H A Dnfnetlink_osf.c166 ctx->df = ntohs(ip->frag_off) & IP_DF; in nf_osf_hdr_ctx_init()
H A Dnf_synproxy_core.c410 iph->frag_off = htons(IP_DF); in synproxy_build_ip()
/linux/drivers/infiniband/hw/qedr/
H A Dqedr_roce_cm.c468 udh->ip4.frag_off = htons(IP_DF); in qedr_gsi_build_header()
/linux/net/bridge/
H A Dbr_netfilter_hooks.c815 if (unlikely(((iph->frag_off & htons(IP_DF)) && !skb->ignore_df) || in br_nf_ip_fragment()
/linux/net/ipv6/
H A Dip6_vti.c521 if (!(ip_hdr(skb)->frag_off & htons(IP_DF))) in vti6_xmit()
/linux/drivers/net/vxlan/
H A Dvxlan_core.c2502 df = htons(IP_DF); in vxlan_xmit_one()
2508 old_iph->frag_off & htons(IP_DF))) in vxlan_xmit_one()
2509 df = htons(IP_DF); in vxlan_xmit_one()
2513 df = htons(IP_DF); in vxlan_xmit_one()

12