Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/progs/
H A Dip_check_defrag.c12 #define IP_OFFSET 0x1FFF macro
23 flags = offset & ~IP_OFFSET; in is_frag_v4()
24 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()
/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
48 & (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.c340 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 Dnft_inner.c137 if ((ntohs(iph->frag_off) & IP_OFFSET) == 0) { in nft_inner_parse_l2l3()
H A Dnf_conntrack_core.c355 if (iph->frag_off & htons(IP_OFFSET)) in ipv4_get_l4proto()
/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.c397 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.c289 flags = offset & ~IP_OFFSET; in ip_frag_queue()
290 offset &= IP_OFFSET; in ip_frag_queue()
H A Dicmp.c860 if (iph->frag_off & htons(IP_OFFSET)) in __icmp_send()
H A Dip_output.c657 state->offset = (ntohs(iph->frag_off) & IP_OFFSET) << 3; in ip_frag_init()
H A Droute.c1923 if (unlikely((outer_iph->frag_off & htons(IP_OFFSET)) != 0)) in ip_multipath_l3_keys()
/linux/net/netfilter/ipvs/
H A Dip_vs_proto.c225 else if (ih->frag_off & htons(IP_OFFSET)) in ip_vs_tcpudp_debug_packet_v4()
/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/include/net/
H A Dip.h145 #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 Dactions.c326 if (nh->frag_off & htons(IP_OFFSET)) in update_ip_l4_checksum()
/linux/net/ipv4/netfilter/
H A Dip_tables.c252 acpar.fragoff = ntohs(ip->frag_off) & IP_OFFSET; in ipt_do_table()
/linux/net/core/
H A Dflow_dissector.c1232 if (iph->frag_off & htons(IP_OFFSET)) { in __skb_flow_dissect()
/linux/security/selinux/
H A Dhooks.c4535 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()