Home
last modified time | relevance | path

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

123456

/kernel/linux/linux-5.10/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 …]
Dnf_log_ipv6.c101 nf_log_buf_add(m, "%u ", ntohs(fh->frag_off) & 0xFFF8); in dump_ipv6_packet()
104 if (fh->frag_off & htons(0x0001)) in dump_ipv6_packet()
110 if (ntohs(fh->frag_off) & 0xFFF8) in dump_ipv6_packet()
/kernel/linux/linux-5.10/include/net/netfilter/
Dnf_tables_ipv6.h14 unsigned short frag_off; in nft_set_pktinfo_ipv6() local
16 protohdr = ipv6_find_hdr(pkt->skb, &thoff, -1, &frag_off, &flags); in nft_set_pktinfo_ipv6()
25 pkt->xt.fragoff = frag_off; in nft_set_pktinfo_ipv6()
35 unsigned short frag_off; in __nft_set_pktinfo_ipv6_validate() local
51 protohdr = ipv6_find_hdr(pkt->skb, &thoff, -1, &frag_off, &flags); in __nft_set_pktinfo_ipv6_validate()
58 pkt->xt.fragoff = frag_off; in __nft_set_pktinfo_ipv6_validate()
78 unsigned short frag_off; in nft_set_pktinfo_ipv6_ingress() local
99 protohdr = ipv6_find_hdr(pkt->skb, &thoff, -1, &frag_off, &flags); in nft_set_pktinfo_ipv6_ingress()
106 pkt->xt.fragoff = frag_off; in nft_set_pktinfo_ipv6_ingress()
Dnf_tables_ipv4.h17 pkt->xt.fragoff = ntohs(ip->frag_off) & IP_OFFSET; in nft_set_pktinfo_ipv4()
44 pkt->xt.fragoff = ntohs(iph->frag_off) & IP_OFFSET; in __nft_set_pktinfo_ipv4_validate()
81 pkt->xt.fragoff = ntohs(iph->frag_off) & IP_OFFSET; in nft_set_pktinfo_ipv4_ingress()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/net/ipv4/netfilter/
Dnf_log_ipv4.c65 if (ntohs(ih->frag_off) & IP_CE) in dump_ipv4_packet()
67 if (ntohs(ih->frag_off) & IP_DF) in dump_ipv4_packet()
69 if (ntohs(ih->frag_off) & IP_MF) in dump_ipv4_packet()
73 if (ntohs(ih->frag_off) & IP_OFFSET) in dump_ipv4_packet()
74 nf_log_buf_add(m, "FRAG:%u ", ntohs(ih->frag_off) & IP_OFFSET); in dump_ipv4_packet()
100 ntohs(ih->frag_off) & IP_OFFSET, in dump_ipv4_packet()
107 ntohs(ih->frag_off) & IP_OFFSET, in dump_ipv4_packet()
135 if (ntohs(ih->frag_off) & IP_OFFSET) in dump_ipv4_packet()
202 if (ntohs(ih->frag_off) & IP_OFFSET) in dump_ipv4_packet()
228 if (ntohs(ih->frag_off) & IP_OFFSET) in dump_ipv4_packet()
Dnf_reject_ipv4.c21 if (ip_hdr(oldskb)->frag_off & htons(IP_OFFSET)) in nf_reject_ip_tcphdr_get()
56 niph->frag_off = htons(IP_DF); in nf_reject_iphdr_put()
193 if (iph->frag_off & htons(IP_OFFSET)) in nf_send_unreach()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/include/net/
Dipv6_frag.h118 __be16 frag_off; in ipv6frag_thdr_truncated() local
121 offset = ipv6_skip_exthdr(skb, start, &nexthdr, &frag_off); in ipv6frag_thdr_truncated()
122 if (offset < 0 || (frag_off & htons(IP6_OFFSET))) in ipv6frag_thdr_truncated()
/kernel/linux/linux-5.10/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()
519 iph->frag_off = htons(IP_DF); in __ip_queue_xmit()
521 iph->frag_off = 0; in __ip_queue_xmit()
588 if ((iph->frag_off & htons(IP_DF)) == 0) in ip_fragment()
619 iph->frag_off = htons(IP_MF); in ip_fraglist_init()
641 iph->frag_off = htons(iter->offset >> 3); in ip_fraglist_prepare()
643 iph->frag_off |= htons(IP_MF); in ip_fraglist_prepare()
663 state->offset = (ntohs(iph->frag_off) & IP_OFFSET) << 3; in ip_frag_init()
664 state->not_last_frag = iph->frag_off & htons(IP_MF); in ip_frag_init()
[all …]
Dipip.c335 p->iph.ihl != 5 || (p->iph.frag_off & htons(~IP_DF))) in ipip_tunnel_ctl()
430 parms->iph.frag_off = htons(IP_DF); in ipip_netlink_parms()
440 parms->iph.frag_off = htons(IP_DF); in ipip_netlink_parms()
575 !!(parm->iph.frag_off & htons(IP_DF))) || in ipip_fill_info()
/kernel/linux/linux-5.10/net/netfilter/
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()
/kernel/linux/linux-5.10/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()
346 if (!(fhdr->frag_off & htons(IP6_OFFSET | IP6_MF))) { in ipv6_frag_rcv()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/
Dbpf_flow.c56 __be16 frag_off; member
286 if (iph->frag_off & bpf_htons(IP_MF | IP_OFFSET)) { in PROG()
288 if (iph->frag_off & bpf_htons(IP_OFFSET)) { in PROG()
363 if (!(fragh->frag_off & bpf_htons(IP6_OFFSET))) { in PROG()
/kernel/linux/linux-5.10/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.c384 __be16 frag_off; in nf_ct_bridge_confirm() local
387 &frag_off); in nf_ct_bridge_confirm()
388 if (protoff < 0 || (frag_off & htons(~0x7)) != 0) in nf_ct_bridge_confirm()
/kernel/linux/linux-5.10/samples/bpf/
Dparse_ldabs.c23 return load_half(ctx, nhoff + offsetof(struct iphdr, frag_off)) in ip_is_fragment()
/kernel/liteos_m/kal/libc/newlib/porting/include/netinet/
Dip.h66 uint16_t frag_off; member
/kernel/linux/linux-5.10/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()
599 work->word2.s.is_frag = !((ip_hdr(skb)->frag_off == 0) || in cvm_oct_xmit_pow()
600 (ip_hdr(skb)->frag_off == in cvm_oct_xmit_pow()

123456