Home
last modified time | relevance | path

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

123456

/linux-6.1.9/net/ipv6/netfilter/
Dip6t_frag.c56 pr_debug("INFO %04X ", fh->frag_off); in frag_mt6()
57 pr_debug("OFFSET %04X ", ntohs(fh->frag_off) & ~0x7); in frag_mt6()
58 pr_debug("RES %02X %04X", fh->reserved, ntohs(fh->frag_off) & 0x6); in frag_mt6()
59 pr_debug("MF %04X ", fh->frag_off & htons(IP6_MF)); in frag_mt6()
69 ntohs(fh->frag_off) & 0x6, in frag_mt6()
71 (fh->reserved || (ntohs(fh->frag_off) & 0x06)))); in frag_mt6()
74 ntohs(fh->frag_off) & ~0x7, in frag_mt6()
76 (ntohs(fh->frag_off) & ~0x7))); in frag_mt6()
79 ntohs(fh->frag_off) & IP6_MF, in frag_mt6()
81 !((ntohs(fh->frag_off) & IP6_MF)))); in frag_mt6()
[all …]
/linux-6.1.9/include/net/netfilter/
Dnf_tables_ipv6.h13 unsigned short frag_off; in nft_set_pktinfo_ipv6() local
15 protohdr = ipv6_find_hdr(pkt->skb, &thoff, -1, &frag_off, &flags); in nft_set_pktinfo_ipv6()
24 pkt->fragoff = frag_off; in nft_set_pktinfo_ipv6()
33 unsigned short frag_off; in __nft_set_pktinfo_ipv6_validate() local
49 protohdr = ipv6_find_hdr(pkt->skb, &thoff, -1, &frag_off, &flags); in __nft_set_pktinfo_ipv6_validate()
56 pkt->fragoff = frag_off; in __nft_set_pktinfo_ipv6_validate()
74 unsigned short frag_off; in nft_set_pktinfo_ipv6_ingress() local
95 protohdr = ipv6_find_hdr(pkt->skb, &thoff, -1, &frag_off, &flags); in nft_set_pktinfo_ipv6_ingress()
102 pkt->fragoff = frag_off; in nft_set_pktinfo_ipv6_ingress()
Dnf_tables_ipv4.h16 pkt->fragoff = ntohs(ip->frag_off) & IP_OFFSET; in nft_set_pktinfo_ipv4()
42 pkt->fragoff = ntohs(iph->frag_off) & IP_OFFSET; in __nft_set_pktinfo_ipv4_validate()
77 pkt->fragoff = ntohs(iph->frag_off) & IP_OFFSET; in nft_set_pktinfo_ipv4_ingress()
/linux-6.1.9/net/xfrm/
Dxfrm_inout.h15 XFRM_MODE_SKB_CB(skb)->frag_off = iph->frag_off; in xfrm4_extract_header()
30 XFRM_MODE_SKB_CB(skb)->frag_off = htons(IP_DF); in xfrm6_extract_header()
66 iph->frag_off = XFRM_MODE_SKB_CB(skb)->frag_off; in xfrm4_beet_make_header()
/linux-6.1.9/net/netfilter/ipset/
Dip_set_getport.c109 if (ntohs(iph->frag_off) & IP_OFFSET) in ip_set_get_ip4_port()
137 __be16 frag_off = 0; in ip_set_get_ip6_port() local
143 &frag_off); in ip_set_get_ip6_port()
144 if (protoff < 0 || (frag_off & htons(~0x7)) != 0) in ip_set_get_ip6_port()
/linux-6.1.9/net/netfilter/
Dnf_log_syslog.c329 if (ntohs(ih->frag_off) & IP_CE) in dump_ipv4_packet()
331 if (ntohs(ih->frag_off) & IP_DF) in dump_ipv4_packet()
333 if (ntohs(ih->frag_off) & IP_MF) in dump_ipv4_packet()
337 if (ntohs(ih->frag_off) & IP_OFFSET) in dump_ipv4_packet()
338 nf_log_buf_add(m, "FRAG:%u ", ntohs(ih->frag_off) & IP_OFFSET); in dump_ipv4_packet()
364 ntohs(ih->frag_off) & IP_OFFSET, in dump_ipv4_packet()
371 ntohs(ih->frag_off) & IP_OFFSET, in dump_ipv4_packet()
394 if (ntohs(ih->frag_off) & IP_OFFSET) in dump_ipv4_packet()
461 if (ntohs(ih->frag_off) & IP_OFFSET) in dump_ipv4_packet()
487 if (ntohs(ih->frag_off) & IP_OFFSET) in dump_ipv4_packet()
[all …]
Dxt_AUDIT.c51 __be16 frag_off; in audit_ip6() local
58 ipv6_skip_exthdr(skb, skb_network_offset(skb) + sizeof(_ip6h), &nexthdr, &frag_off); in audit_ip6()
Dxt_TCPOPTSTRIP.c101 __be16 frag_off; in tcpoptstrip_tg6() local
104 tcphoff = ipv6_skip_exthdr(skb, sizeof(*ipv6h), &nexthdr, &frag_off); in tcpoptstrip_tg6()
/linux-6.1.9/net/rds/
Dib_recv.c538 unsigned long frag_off = 0; in rds_ib_inc_copy_to_user() local
548 if (frag_off == RDS_FRAG_SIZE) { in rds_ib_inc_copy_to_user()
551 frag_off = 0; in rds_ib_inc_copy_to_user()
554 RDS_FRAG_SIZE - frag_off); in rds_ib_inc_copy_to_user()
560 frag->f_sg.offset + frag_off, in rds_ib_inc_copy_to_user()
566 frag_off += to_copy; in rds_ib_inc_copy_to_user()
790 unsigned long frag_off; in rds_ib_cong_recv() local
805 frag_off = 0; in rds_ib_cong_recv()
813 to_copy = min(RDS_FRAG_SIZE - frag_off, PAGE_SIZE - map_off); in rds_ib_cong_recv()
818 src = addr + frag->f_sg.offset + frag_off; in rds_ib_cong_recv()
[all …]
/linux-6.1.9/include/net/
Dipv6_frag.h119 __be16 frag_off; in ipv6frag_thdr_truncated() local
122 offset = ipv6_skip_exthdr(skb, start, &nexthdr, &frag_off); in ipv6frag_thdr_truncated()
123 if (offset < 0 || (frag_off & htons(IP6_OFFSET))) in ipv6frag_thdr_truncated()
/linux-6.1.9/net/ipv4/
Dah4.c137 top_iph->frag_off = iph->frag_off; in ah_output_done()
196 iph->frag_off = top_iph->frag_off; in ah_output()
211 top_iph->frag_off = 0; in ah_output()
253 top_iph->frag_off = iph->frag_off; in ah_output()
388 iph->frag_off = 0; in ah_input()
Dip_output.c167 iph->frag_off = htons(IP_DF); in ip_build_and_send_pkt()
170 iph->frag_off = 0; in ip_build_and_send_pkt()
511 iph->frag_off = htons(IP_DF); in __ip_queue_xmit()
513 iph->frag_off = 0; in __ip_queue_xmit()
580 if ((iph->frag_off & htons(IP_DF)) == 0) in ip_fragment()
611 iph->frag_off = htons(IP_MF); in ip_fraglist_init()
633 iph->frag_off = htons(iter->offset >> 3); in ip_fraglist_prepare()
635 iph->frag_off |= htons(IP_MF); in ip_fraglist_prepare()
655 state->offset = (ntohs(iph->frag_off) & IP_OFFSET) << 3; in ip_frag_init()
656 state->not_last_frag = iph->frag_off & htons(IP_MF); in ip_frag_init()
[all …]
Dip_tunnel_core.c74 iph->frag_off = ip_mtu_locked(&rt->dst) ? 0 : df; in iptunnel_xmit()
237 .frag_off = htons(IP_DF), in iptunnel_pmtud_build_icmp()
266 if (mtu < 576 || iph->frag_off != htons(IP_DF)) in iptunnel_pmtud_check_icmp()
359 __be16 frag_off; in iptunnel_pmtud_check_icmpv6() local
370 &frag_off); in iptunnel_pmtud_check_icmpv6()
371 if (offset < 0 || (frag_off & htons(~0x7))) in iptunnel_pmtud_check_icmpv6()
1133 parms->iph.frag_off = htons(IP_DF); in ip_tunnel_netlink_parms()
1140 parms->iph.frag_off = htons(IP_DF); in ip_tunnel_netlink_parms()
/linux-6.1.9/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()
180 niph->frag_off = htons(IP_DF); in nf_reject_iphdr_put()
319 if (iph->frag_off & htons(IP_OFFSET)) in nf_send_unreach()
/linux-6.1.9/net/ipv6/
Dmcast_snoop.c42 __be16 frag_off; in ipv6_mc_check_exthdrs() local
51 offset = ipv6_skip_exthdr(skb, offset, &nexthdr, &frag_off); in ipv6_mc_check_exthdrs()
Dexthdrs_core.c92 frag_off), in ipv6_skip_exthdr()
242 frag_off), in ipv6_find_hdr()
Dreassembly.c121 offset = ntohs(fhdr->frag_off) & ~0x7; in ip6_frag_queue()
126 *prob_offset = (u8 *)&fhdr->frag_off - skb_network_header(skb); in ip6_frag_queue()
143 if (!(fhdr->frag_off & htons(IP6_MF))) { in ip6_frag_queue()
347 if (!(fhdr->frag_off & htons(IP6_OFFSET | IP6_MF))) { in ipv6_frag_rcv()
/linux-6.1.9/tools/testing/selftests/bpf/progs/
Dbpf_flow.c57 __be16 frag_off; member
300 if (iph->frag_off & bpf_htons(IP_MF | IP_OFFSET)) { in PROG()
302 if (iph->frag_off & bpf_htons(IP_OFFSET)) { in PROG()
377 if (!(fragh->frag_off & bpf_htons(IP6_OFFSET))) { in PROG()
/linux-6.1.9/net/bridge/netfilter/
Debt_ip6.c64 __be16 frag_off; in ebt_ip6_mt() local
67 offset_ph = ipv6_skip_exthdr(skb, sizeof(_ip6h), &nexthdr, &frag_off); in ebt_ip6_mt()
Debt_log.c119 __be16 frag_off; in ebt_log_packet() local
130 offset_ph = ipv6_skip_exthdr(skb, sizeof(_iph), &nexthdr, &frag_off); in ebt_log_packet()
Dnf_conntrack_bridge.c385 __be16 frag_off; in nf_ct_bridge_confirm() local
388 &frag_off); in nf_ct_bridge_confirm()
389 if (protoff < 0 || (frag_off & htons(~0x7)) != 0) in nf_ct_bridge_confirm()
/linux-6.1.9/samples/bpf/
Dparse_ldabs.c23 return load_half(ctx, nhoff + offsetof(struct iphdr, frag_off)) in ip_is_fragment()
/linux-6.1.9/tools/testing/selftests/net/bpf/
Dnat6to4.c100 .frag_off = bpf_htons(IP_DF), // u16 in sched_cls_ingress6_nat_6_prog()
200 if (ip4->frag_off & ~bpf_htons(IP_DF)) in sched_cls_egress4_snat4_prog()
/linux-6.1.9/drivers/staging/octeon/
Dethernet-tx.c368 ((ip_hdr(skb)->frag_off == 0) || in cvm_oct_xmit()
369 (ip_hdr(skb)->frag_off == htons(1 << 14))) && in cvm_oct_xmit()
598 work->word2.s.is_frag = !((ip_hdr(skb)->frag_off == 0) || in cvm_oct_xmit_pow()
599 (ip_hdr(skb)->frag_off == in cvm_oct_xmit_pow()
/linux-6.1.9/drivers/infiniband/core/
Dud_header.c141 { STRUCT_FIELD(ip4, frag_off),
292 iph.frag_off = header->ip4.frag_off; in ib_ud_ip4_csum()

123456