/linux-6.6.21/tools/testing/selftests/bpf/progs/ |
D | ip_check_defrag.c | 12 #define IP_OFFSET 0x1FFF macro 28 flags = offset & ~IP_OFFSET; in is_frag_v4() 29 offset &= IP_OFFSET; in is_frag_v4()
|
D | bpf_flow.c | 40 #define IP_OFFSET 0x1FFF macro 300 if (iph->frag_off & bpf_htons(IP_MF | IP_OFFSET)) { in PROG() 302 if (iph->frag_off & bpf_htons(IP_OFFSET)) { in PROG()
|
D | xdp_synproxy_kern.c | 23 #define IP_OFFSET 0x1fff macro 442 if ((hdr->ipv4->frag_off & bpf_htons(IP_DF | IP_MF | IP_OFFSET)) != bpf_htons(IP_DF)) in tcp_lookup()
|
/linux-6.6.21/include/net/netfilter/ |
D | nf_tables_ipv4.h | 16 pkt->fragoff = ntohs(ip->frag_off) & IP_OFFSET; in nft_set_pktinfo_ipv4() 44 pkt->fragoff = ntohs(iph->frag_off) & IP_OFFSET; in __nft_set_pktinfo_ipv4_validate() 81 pkt->fragoff = ntohs(iph->frag_off) & IP_OFFSET; in nft_set_pktinfo_ipv4_ingress()
|
/linux-6.6.21/samples/bpf/ |
D | parse_ldabs.c | 19 #define IP_OFFSET 0x1FFF macro 24 & (IP_MF | IP_OFFSET); in ip_is_fragment()
|
D | sockex2_kern.c | 11 #define IP_OFFSET 0x1FFF macro 49 & (IP_MF | IP_OFFSET); in ip_is_fragment()
|
D | sockex3_kern.c | 18 #define IP_OFFSET 0x1FFF macro 45 & (IP_MF | IP_OFFSET); in ip_is_fragment()
|
/linux-6.6.21/net/netfilter/ |
D | nf_log_syslog.c | 338 if (ntohs(ih->frag_off) & IP_OFFSET) in dump_ipv4_packet() 339 nf_log_buf_add(m, "FRAG:%u ", ntohs(ih->frag_off) & IP_OFFSET); in dump_ipv4_packet() 365 ntohs(ih->frag_off) & IP_OFFSET, in dump_ipv4_packet() 372 ntohs(ih->frag_off) & IP_OFFSET, in dump_ipv4_packet() 395 if (ntohs(ih->frag_off) & IP_OFFSET) in dump_ipv4_packet() 462 if (ntohs(ih->frag_off) & IP_OFFSET) in dump_ipv4_packet() 488 if (ntohs(ih->frag_off) & IP_OFFSET) in dump_ipv4_packet()
|
D | nft_inner.c | 130 if ((ntohs(iph->frag_off) & IP_OFFSET) == 0) { in nft_inner_parse_l2l3()
|
/linux-6.6.21/net/ipv4/netfilter/ |
D | nf_reject_ipv4.c | 91 if (ip_hdr(oldskb)->frag_off & htons(IP_OFFSET)) in nf_reject_skb_v4_unreach() 145 if (ip_hdr(oldskb)->frag_off & htons(IP_OFFSET)) in nf_reject_ip_tcphdr_get() 323 if (iph->frag_off & htons(IP_OFFSET)) in nf_send_unreach()
|
/linux-6.6.21/net/netfilter/ipset/ |
D | ip_set_getport.c | 109 if (ntohs(iph->frag_off) & IP_OFFSET) in ip_set_get_ip4_port()
|
/linux-6.6.21/net/sched/ |
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()
|
D | act_csum.c | 396 switch (iph->frag_off & htons(IP_OFFSET) ? 0 : iph->protocol) { in tcf_csum_ipv4()
|
/linux-6.6.21/net/bridge/netfilter/ |
D | ebt_ip.c | 66 if (ntohs(ih->frag_off) & IP_OFFSET) in ebt_ip_mt()
|
/linux-6.6.21/net/ipv4/ |
D | ip_fragment.c | 301 flags = offset & ~IP_OFFSET; in ip_frag_queue() 302 offset &= IP_OFFSET; in ip_frag_queue()
|
D | icmp.c | 640 if (iph->frag_off & htons(IP_OFFSET)) in __icmp_send()
|
D | ip_output.c | 656 state->offset = (ntohs(iph->frag_off) & IP_OFFSET) << 3; in ip_frag_init()
|
/linux-6.6.21/net/netfilter/ipvs/ |
D | ip_vs_proto.c | 226 else if (ih->frag_off & htons(IP_OFFSET)) in ip_vs_tcpudp_debug_packet_v4()
|
D | ip_vs_core.c | 969 if (unlikely(cih->frag_off & htons(IP_OFFSET) && in ip_vs_out_icmp() 1636 if (unlikely(cih->frag_off & htons(IP_OFFSET))) in ip_vs_in_icmp() 1658 if (unlikely(cih->frag_off & htons(IP_OFFSET))) in ip_vs_in_icmp() 1690 if (unlikely(cih->frag_off & htons(IP_OFFSET) && in ip_vs_in_icmp()
|
/linux-6.6.21/drivers/net/ethernet/packetengines/ |
D | hamachi.c | 185 #ifndef IP_OFFSET 187 #define IP_OFFSET IPOPT_OFFSET macro 189 #define IP_OFFSET 2 macro 1536 if (!(ih->frag_off & cpu_to_be16(IP_MF|IP_OFFSET))) { in hamachi_rx()
|
/linux-6.6.21/include/net/ |
D | ip.h | 142 #define IP_OFFSET 0x1FFF /* "Fragment Offset" part */ macro 401 return (iph->frag_off & htons(IP_MF | IP_OFFSET)) != 0; in ip_is_fragment()
|
/linux-6.6.21/security/ |
D | lsm_audit.c | 53 if (ntohs(ih->frag_off) & IP_OFFSET) in ipv4_skb_to_auditdata()
|
/linux-6.6.21/net/openvswitch/ |
D | flow.c | 710 offset = nh->frag_off & htons(IP_OFFSET); in key_extract_l3l4()
|
/linux-6.6.21/security/selinux/ |
D | hooks.c | 4289 if (ntohs(ih->frag_off) & IP_OFFSET) in selinux_parse_skb_ipv4() 4305 if (ntohs(ih->frag_off) & IP_OFFSET) in selinux_parse_skb_ipv4() 4321 if (ntohs(ih->frag_off) & IP_OFFSET) in selinux_parse_skb_ipv4() 4338 if (ntohs(ih->frag_off) & IP_OFFSET) in selinux_parse_skb_ipv4()
|
/linux-6.6.21/drivers/staging/qlge/ |
D | qlge_main.c | 1526 htons(IP_MF | IP_OFFSET))) { in qlge_process_mac_rx_page() 1633 htons(IP_MF | IP_OFFSET))) { in qlge_process_mac_rx_skb() 1920 htons(IP_MF | IP_OFFSET))) { in qlge_process_mac_split_rx_intr()
|