| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | ip_check_defrag.c | 12 #define IP_OFFSET 0x1FFF macro 23 flags = offset & ~IP_OFFSET; in is_frag_v4() 24 offset &= IP_OFFSET; in is_frag_v4()
|
| H A D | xdp_flowtable.c | 10 #define IP_OFFSET 0x1fff /* "Fragment Offset" */ macro 35 if (iph->frag_off & bpf_htons(IP_MF | IP_OFFSET)) in xdp_flowtable_offload_check_iphdr()
|
| H A 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()
|
| /linux/samples/bpf/ |
| H A D | parse_ldabs.c | 19 #define IP_OFFSET 0x1FFF macro 24 & (IP_MF | IP_OFFSET); in ip_is_fragment()
|
| H A D | sockex2_kern.c | 11 #define IP_OFFSET 0x1FFF macro 48 & (IP_MF | IP_OFFSET); in ip_is_fragment()
|
| H A D | sockex3_kern.c | 18 #define IP_OFFSET 0x1FFF macro 45 & (IP_MF | IP_OFFSET); in ip_is_fragment()
|
| /linux/net/netfilter/ |
| H A D | nf_log_syslog.c | 351 if (ntohs(ih->frag_off) & IP_OFFSET) in dump_ipv4_packet() 352 nf_log_buf_add(m, "FRAG:%u ", ntohs(ih->frag_off) & IP_OFFSET); in dump_ipv4_packet() 378 ntohs(ih->frag_off) & IP_OFFSET, in dump_ipv4_packet() 385 ntohs(ih->frag_off) & IP_OFFSET, in dump_ipv4_packet() 408 if (ntohs(ih->frag_off) & IP_OFFSET) in dump_ipv4_packet() 475 if (ntohs(ih->frag_off) & IP_OFFSET) in dump_ipv4_packet() 501 if (ntohs(ih->frag_off) & IP_OFFSET) in dump_ipv4_packet()
|
| H A D | xt_hashlimit.c | 663 if (ntohs(ip_hdr(skb)->frag_off) & IP_OFFSET) in hashlimit_init_dst()
|
| H A D | nf_conntrack_core.c | 352 if (iph->frag_off & htons(IP_OFFSET)) in ipv4_get_l4proto()
|
| /linux/net/ipv4/netfilter/ |
| H A D | nf_reject_ipv4.c | 122 if (ip_hdr(oldskb)->frag_off & htons(IP_OFFSET)) in nf_reject_skb_v4_unreach() 181 if (ip_hdr(oldskb)->frag_off & htons(IP_OFFSET)) in nf_reject_ip_tcphdr_get() 354 if (iph->frag_off & htons(IP_OFFSET)) in nf_send_unreach()
|
| H A D | nf_socket_ipv4.c | 97 if (ntohs(iph->frag_off) & IP_OFFSET) in nf_sk_lookup_slow_v4()
|
| /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()
|
| /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()
|
| H A D | act_pedit.c | 336 (iph->frag_off & htons(IP_OFFSET))) in pedit_l4_skb_offset()
|
| H A D | act_csum.c | 401 switch (iph->frag_off & htons(IP_OFFSET) ? 0 : iph->protocol) { in tcf_csum_ipv4()
|
| /linux/net/bridge/netfilter/ |
| H A D | ebt_ip.c | 66 if (ntohs(ih->frag_off) & IP_OFFSET) in ebt_ip_mt()
|
| /linux/net/netfilter/ipvs/ |
| H A D | ip_vs_proto.c | 225 else if (ih->frag_off & htons(IP_OFFSET)) in ip_vs_tcpudp_debug_packet_v4()
|
| H A D | ip_vs_core.c | 1151 if (unlikely(cih->frag_off & htons(IP_OFFSET) && !pp->dont_defrag)) in ip_vs_out_icmp() 1824 if (unlikely(cih->frag_off & htons(IP_OFFSET))) in ip_vs_in_icmp() 1842 if (unlikely(cih->frag_off & htons(IP_OFFSET))) in ip_vs_in_icmp() 1878 if (unlikely(cih->frag_off & htons(IP_OFFSET) && !pp->dont_defrag)) in ip_vs_in_icmp()
|
| /linux/include/net/ |
| H A D | ip.h | 145 #define IP_OFFSET 0x1FFF /* "Fragment Offset" part */ macro 408 return (iph->frag_off & htons(IP_MF | IP_OFFSET)) != 0; in ip_is_fragment()
|
| /linux/net/openvswitch/ |
| H A D | flow.c | 707 offset = nh->frag_off & htons(IP_OFFSET); in key_extract_l3l4()
|
| H A D | actions.c | 327 if (nh->frag_off & htons(IP_OFFSET)) in update_ip_l4_checksum()
|
| /linux/net/ipv4/ |
| H A D | icmp.c | 872 if (iph->frag_off & htons(IP_OFFSET)) in __icmp_send()
|
| H A D | ip_output.c | 656 state->offset = (ntohs(iph->frag_off) & IP_OFFSET) << 3; in ip_frag_init()
|
| /linux/net/core/ |
| H A D | flow_dissector.c | 1240 if (iph->frag_off & htons(IP_OFFSET)) { in __skb_flow_dissect()
|
| /linux/security/selinux/ |
| H A D | hooks.c | 4647 if (ntohs(ih->frag_off) & IP_OFFSET) in selinux_parse_skb_ipv4() 4663 if (ntohs(ih->frag_off) & IP_OFFSET) in selinux_parse_skb_ipv4() 4680 if (ntohs(ih->frag_off) & IP_OFFSET) in selinux_parse_skb_ipv4()
|