| /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 32 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/include/net/netfilter/ |
| H A D | nf_tables_ipv4.h | 16 pkt->fragoff = ntohs(ip->frag_off) & IP_OFFSET; in nft_set_pktinfo_ipv4() 46 pkt->fragoff = ntohs(iph->frag_off) & IP_OFFSET; in __nft_set_pktinfo_ipv4_validate() 83 pkt->fragoff = ntohs(iph->frag_off) & IP_OFFSET; in nft_set_pktinfo_ipv4_ingress()
|
| /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 | 340 if (ntohs(ih->frag_off) & IP_OFFSET) in dump_ipv4_packet() 341 nf_log_buf_add(m, "FRAG:%u ", ntohs(ih->frag_off) & IP_OFFSET); in dump_ipv4_packet() 367 ntohs(ih->frag_off) & IP_OFFSET, in dump_ipv4_packet() 374 ntohs(ih->frag_off) & IP_OFFSET, in dump_ipv4_packet() 397 if (ntohs(ih->frag_off) & IP_OFFSET) in dump_ipv4_packet() 464 if (ntohs(ih->frag_off) & IP_OFFSET) in dump_ipv4_packet() 490 if (ntohs(ih->frag_off) & IP_OFFSET) in dump_ipv4_packet()
|
| H A D | nft_inner.c | 137 if ((ntohs(iph->frag_off) & IP_OFFSET) == 0) { in nft_inner_parse_l2l3()
|
| H A D | nf_conntrack_core.c | 355 if (iph->frag_off & htons(IP_OFFSET)) in ipv4_get_l4proto()
|
| /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_csum.c | 397 switch (iph->frag_off & htons(IP_OFFSET) ? 0 : iph->protocol) { in tcf_csum_ipv4()
|
| /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/bridge/netfilter/ |
| H A D | ebt_ip.c | 66 if (ntohs(ih->frag_off) & IP_OFFSET) in ebt_ip_mt()
|
| /linux/net/ipv4/ |
| H A D | ip_fragment.c | 289 flags = offset & ~IP_OFFSET; in ip_frag_queue() 290 offset &= IP_OFFSET; in ip_frag_queue()
|
| H A D | icmp.c | 860 if (iph->frag_off & htons(IP_OFFSET)) in __icmp_send()
|
| H A D | ip_output.c | 657 state->offset = (ntohs(iph->frag_off) & IP_OFFSET) << 3; in ip_frag_init()
|
| H A D | route.c | 1923 if (unlikely((outer_iph->frag_off & htons(IP_OFFSET)) != 0)) in ip_multipath_l3_keys()
|
| /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()
|
| /linux/drivers/net/ethernet/packetengines/ |
| H A 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/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 | actions.c | 326 if (nh->frag_off & htons(IP_OFFSET)) in update_ip_l4_checksum()
|
| /linux/net/ipv4/netfilter/ |
| H A D | ip_tables.c | 252 acpar.fragoff = ntohs(ip->frag_off) & IP_OFFSET; in ipt_do_table()
|
| /linux/net/core/ |
| H A D | flow_dissector.c | 1232 if (iph->frag_off & htons(IP_OFFSET)) { in __skb_flow_dissect()
|
| /linux/security/selinux/ |
| H A D | hooks.c | 4535 if (ntohs(ih->frag_off) & IP_OFFSET) in selinux_parse_skb_ipv4() 4551 if (ntohs(ih->frag_off) & IP_OFFSET) in selinux_parse_skb_ipv4() 4568 if (ntohs(ih->frag_off) & IP_OFFSET) in selinux_parse_skb_ipv4()
|