Home
last modified time | relevance | path

Searched refs:IP_OFFSET (Results 1 – 25 of 30) sorted by relevance

12

/linux/tools/testing/selftests/bpf/progs/
H A Dip_check_defrag.c12 #define IP_OFFSET 0x1FFF macro
28 flags = offset & ~IP_OFFSET; in is_frag_v4()
29 offset &= IP_OFFSET; in is_frag_v4()
H A Dxdp_flowtable.c10 #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 Dbpf_flow.c40 #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()
H A Dxdp_synproxy_kern.c26 #define IP_OFFSET 0x1fff macro
445 if ((hdr->ipv4->frag_off & bpf_htons(IP_DF | IP_MF | IP_OFFSET)) != bpf_htons(IP_DF)) in tcp_lookup()
/linux/include/net/netfilter/
H A Dnf_tables_ipv4.h16 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 Dparse_ldabs.c19 #define IP_OFFSET 0x1FFF macro
24 & (IP_MF | IP_OFFSET); in ip_is_fragment()
H A Dsockex2_kern.c11 #define IP_OFFSET 0x1FFF macro
49 & (IP_MF | IP_OFFSET); in ip_is_fragment()
H A Dsockex3_kern.c18 #define IP_OFFSET 0x1FFF macro
45 & (IP_MF | IP_OFFSET); in ip_is_fragment()
/linux/net/netfilter/
H A Dnf_log_syslog.c338 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()
H A Dnft_inner.c130 if ((ntohs(iph->frag_off) & IP_OFFSET) == 0) { in nft_inner_parse_l2l3()
/linux/net/ipv4/netfilter/
H A Dnf_reject_ipv4.c91 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/net/sched/
H A Dact_nat.c170 } 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 Dact_csum.c396 switch (iph->frag_off & htons(IP_OFFSET) ? 0 : iph->protocol) { in tcf_csum_ipv4()
/linux/net/netfilter/ipset/
H A Dip_set_getport.c109 if (ntohs(iph->frag_off) & IP_OFFSET) in ip_set_get_ip4_port()
/linux/net/bridge/netfilter/
H A Debt_ip.c66 if (ntohs(ih->frag_off) & IP_OFFSET) in ebt_ip_mt()
/linux/net/ipv4/
H A Dip_fragment.c301 flags = offset & ~IP_OFFSET; in ip_frag_queue()
302 offset &= IP_OFFSET; in ip_frag_queue()
H A Dicmp.c648 if (iph->frag_off & htons(IP_OFFSET)) in __icmp_send()
H A Dip_output.c659 state->offset = (ntohs(iph->frag_off) & IP_OFFSET) << 3; in ip_frag_init()
/linux/drivers/net/ethernet/packetengines/
H A Dhamachi.c185 #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/net/netfilter/ipvs/
H A Dip_vs_proto.c226 else if (ih->frag_off & htons(IP_OFFSET)) in ip_vs_tcpudp_debug_packet_v4()
H A Dip_vs_core.c969 if (unlikely(cih->frag_off & htons(IP_OFFSET) && in ip_vs_out_icmp()
1640 if (unlikely(cih->frag_off & htons(IP_OFFSET))) in ip_vs_in_icmp()
1662 if (unlikely(cih->frag_off & htons(IP_OFFSET))) in ip_vs_in_icmp()
1694 if (unlikely(cih->frag_off & htons(IP_OFFSET) && in ip_vs_in_icmp()
/linux/include/net/
H A Dip.h143 #define IP_OFFSET 0x1FFF /* "Fragment Offset" part */ macro
410 return (iph->frag_off & htons(IP_MF | IP_OFFSET)) != 0; in ip_is_fragment()
/linux/security/
H A Dlsm_audit.c53 if (ntohs(ih->frag_off) & IP_OFFSET) in ipv4_skb_to_auditdata()
/linux/net/openvswitch/
H A Dflow.c711 offset = nh->frag_off & htons(IP_OFFSET); in key_extract_l3l4()
/linux/security/selinux/
H A Dhooks.c4314 if (ntohs(ih->frag_off) & IP_OFFSET) in selinux_parse_skb_ipv4()
4330 if (ntohs(ih->frag_off) & IP_OFFSET) in selinux_parse_skb_ipv4()
4346 if (ntohs(ih->frag_off) & IP_OFFSET) in selinux_parse_skb_ipv4()
4363 if (ntohs(ih->frag_off) & IP_OFFSET) in selinux_parse_skb_ipv4()

12