Home
last modified time | relevance | path

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

123456

/linux/net/ipv6/netfilter/
A Dip6t_frag.c56 pr_debug("INFO %04X ", fh->frag_off); in frag_mt6()
69 ntohs(fh->frag_off) & 0x6, 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()
84 ntohs(fh->frag_off) & IP6_MF, in frag_mt6()
86 (ntohs(fh->frag_off) & IP6_MF))); in frag_mt6()
94 (ntohs(fh->frag_off) & ~0x7)) && in frag_mt6()
96 !(ntohs(fh->frag_off) & IP6_MF)) && in frag_mt6()
[all …]
/linux/include/net/netfilter/
A 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()
A 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/net/xfrm/
A 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/net/netfilter/ipset/
A 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/net/rds/
A Dib_recv.c537 unsigned long frag_off = 0; in rds_ib_inc_copy_to_user() local
547 if (frag_off == RDS_FRAG_SIZE) { in rds_ib_inc_copy_to_user()
550 frag_off = 0; in rds_ib_inc_copy_to_user()
553 RDS_FRAG_SIZE - frag_off); in rds_ib_inc_copy_to_user()
559 frag->f_sg.offset + frag_off, in rds_ib_inc_copy_to_user()
565 frag_off += to_copy; in rds_ib_inc_copy_to_user()
789 unsigned long frag_off; in rds_ib_cong_recv() local
804 frag_off = 0; in rds_ib_cong_recv()
835 frag_off += to_copy; in rds_ib_cong_recv()
836 if (frag_off == RDS_FRAG_SIZE) { in rds_ib_cong_recv()
[all …]
/linux/net/netfilter/
A Dnf_log_syslog.c324 if (ntohs(ih->frag_off) & IP_CE) in dump_ipv4_packet()
326 if (ntohs(ih->frag_off) & IP_DF) in dump_ipv4_packet()
328 if (ntohs(ih->frag_off) & IP_MF) in dump_ipv4_packet()
332 if (ntohs(ih->frag_off) & IP_OFFSET) in dump_ipv4_packet()
359 ntohs(ih->frag_off) & IP_OFFSET, in dump_ipv4_packet()
366 ntohs(ih->frag_off) & IP_OFFSET, in dump_ipv4_packet()
389 if (ntohs(ih->frag_off) & IP_OFFSET) in dump_ipv4_packet()
456 if (ntohs(ih->frag_off) & IP_OFFSET) in dump_ipv4_packet()
482 if (ntohs(ih->frag_off) & IP_OFFSET) in dump_ipv4_packet()
595 if (fh->frag_off & htons(0x0001)) in dump_ipv6_packet()
[all …]
A 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()
A 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/include/net/
A Dipv6_frag.h117 __be16 frag_off; in ipv6frag_thdr_truncated() local
120 offset = ipv6_skip_exthdr(skb, start, &nexthdr, &frag_off); in ipv6frag_thdr_truncated()
121 if (offset < 0 || (frag_off & htons(IP6_OFFSET))) in ipv6frag_thdr_truncated()
/linux/net/ipv4/
A 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()
A Dip_output.c166 iph->frag_off = htons(IP_DF); in ip_build_and_send_pkt()
169 iph->frag_off = 0; in ip_build_and_send_pkt()
504 iph->frag_off = htons(IP_DF); in __ip_queue_xmit()
506 iph->frag_off = 0; in __ip_queue_xmit()
573 if ((iph->frag_off & htons(IP_DF)) == 0) in ip_fragment()
604 iph->frag_off = htons(IP_MF); in ip_fraglist_init()
626 iph->frag_off = htons(iter->offset >> 3); in ip_fraglist_prepare()
628 iph->frag_off |= htons(IP_MF); in ip_fraglist_prepare()
727 iph->frag_off |= htons(IP_DF); in ip_frag_next()
734 iph->frag_off |= htons(IP_MF); in ip_frag_next()
[all …]
A Dipip.c337 p->iph.ihl != 5 || (p->iph.frag_off & htons(~IP_DF))) in ipip_tunnel_ctl()
432 parms->iph.frag_off = htons(IP_DF); in ipip_netlink_parms()
442 parms->iph.frag_off = htons(IP_DF); in ipip_netlink_parms()
577 !!(parm->iph.frag_off & htons(IP_DF))) || in ipip_fill_info()
A 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()
/linux/net/ipv4/netfilter/
A Dnf_reject_ipv4.c90 if (ip_hdr(oldskb)->frag_off & htons(IP_OFFSET)) in nf_reject_skb_v4_unreach()
143 if (ip_hdr(oldskb)->frag_off & htons(IP_OFFSET)) in nf_reject_ip_tcphdr_get()
178 niph->frag_off = htons(IP_DF); in nf_reject_iphdr_put()
316 if (iph->frag_off & htons(IP_OFFSET)) in nf_send_unreach()
/linux/net/ipv6/
A 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()
A Dexthdrs_core.c92 frag_off), in ipv6_skip_exthdr()
242 frag_off), in ipv6_find_hdr()
A 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()
/linux/tools/testing/selftests/bpf/progs/
A Dbpf_flow.c55 __be16 frag_off; member
285 if (iph->frag_off & bpf_htons(IP_MF | IP_OFFSET)) { in PROG()
287 if (iph->frag_off & bpf_htons(IP_OFFSET)) { in PROG()
362 if (!(fragh->frag_off & bpf_htons(IP6_OFFSET))) { in PROG()
/linux/net/bridge/netfilter/
A 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()
A 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()
A 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()
/linux/drivers/staging/octeon/
A 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/drivers/infiniband/core/
A Dud_header.c141 { STRUCT_FIELD(ip4, frag_off),
292 iph.frag_off = header->ip4.frag_off; in ib_ud_ip4_csum()
/linux/samples/bpf/
A Dparse_ldabs.c23 return load_half(ctx, nhoff + offsetof(struct iphdr, frag_off)) in ip_is_fragment()

Completed in 51 milliseconds

123456