Home
last modified time | relevance | path

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

12

/linux-6.6.21/tools/testing/selftests/bpf/progs/
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()
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()
Dxdp_synproxy_kern.c23 #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/
Dnf_tables_ipv4.h16 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/
Dparse_ldabs.c19 #define IP_OFFSET 0x1FFF macro
24 & (IP_MF | IP_OFFSET); in ip_is_fragment()
Dsockex2_kern.c11 #define IP_OFFSET 0x1FFF macro
49 & (IP_MF | IP_OFFSET); in ip_is_fragment()
Dsockex3_kern.c18 #define IP_OFFSET 0x1FFF macro
45 & (IP_MF | IP_OFFSET); in ip_is_fragment()
/linux-6.6.21/net/netfilter/
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()
Dnft_inner.c130 if ((ntohs(iph->frag_off) & IP_OFFSET) == 0) { in nft_inner_parse_l2l3()
/linux-6.6.21/net/ipv4/netfilter/
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-6.6.21/net/netfilter/ipset/
Dip_set_getport.c109 if (ntohs(iph->frag_off) & IP_OFFSET) in ip_set_get_ip4_port()
/linux-6.6.21/net/sched/
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()
Dact_csum.c396 switch (iph->frag_off & htons(IP_OFFSET) ? 0 : iph->protocol) { in tcf_csum_ipv4()
/linux-6.6.21/net/bridge/netfilter/
Debt_ip.c66 if (ntohs(ih->frag_off) & IP_OFFSET) in ebt_ip_mt()
/linux-6.6.21/net/ipv4/
Dip_fragment.c301 flags = offset & ~IP_OFFSET; in ip_frag_queue()
302 offset &= IP_OFFSET; in ip_frag_queue()
Dicmp.c640 if (iph->frag_off & htons(IP_OFFSET)) in __icmp_send()
Dip_output.c656 state->offset = (ntohs(iph->frag_off) & IP_OFFSET) << 3; in ip_frag_init()
/linux-6.6.21/net/netfilter/ipvs/
Dip_vs_proto.c226 else if (ih->frag_off & htons(IP_OFFSET)) in ip_vs_tcpudp_debug_packet_v4()
Dip_vs_core.c969 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/
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-6.6.21/include/net/
Dip.h142 #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/
Dlsm_audit.c53 if (ntohs(ih->frag_off) & IP_OFFSET) in ipv4_skb_to_auditdata()
/linux-6.6.21/net/openvswitch/
Dflow.c710 offset = nh->frag_off & htons(IP_OFFSET); in key_extract_l3l4()
/linux-6.6.21/security/selinux/
Dhooks.c4289 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/
Dqlge_main.c1526 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()

12