Home
last modified time | relevance | path

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

123456

/Linux-v4.19/net/ipv6/
Dmcast_snoop.c32 if (!pskb_may_pull(skb, offset)) in ipv6_mc_check_ip6hdr()
80 return pskb_may_pull(skb, len) ? 0 : -EINVAL; in ipv6_mc_check_mld_reportv2()
100 if (skb->len < len || !pskb_may_pull(skb, len)) in ipv6_mc_check_mld_query()
156 if (!pskb_may_pull(skb_chk, len)) in __ipv6_mc_check_mld()
Dtunnel6.c105 if (!pskb_may_pull(skb, sizeof(struct ipv6hdr))) in tunnel6_rcv()
123 if (!pskb_may_pull(skb, sizeof(struct iphdr))) in tunnel46_rcv()
Dxfrm6_policy.c150 pskb_may_pull(skb, nh + offset + sizeof(*exthdr) - skb->data)) { in _decode_session6()
172 pskb_may_pull(skb, nh + offset + 4 - skb->data))) { in _decode_session6()
185 pskb_may_pull(skb, nh + offset + 2 - skb->data))) { in _decode_session6()
200 pskb_may_pull(skb, nh + offset + 3 - skb->data))) { in _decode_session6()
Dip6_offload.c41 if (unlikely(!pskb_may_pull(skb, 8))) in ipv6_gso_pull_exthdrs()
47 if (unlikely(!pskb_may_pull(skb, len))) in ipv6_gso_pull_exthdrs()
75 if (unlikely(!pskb_may_pull(skb, sizeof(*ipv6h)))) in ipv6_gso_segment()
/Linux-v4.19/net/nsh/
Dnsh.c56 if (!pskb_may_pull(skb, NSH_BASE_HDR_LEN)) in nsh_pop()
63 if (!pskb_may_pull(skb, length)) in nsh_pop()
92 if (unlikely(!pskb_may_pull(skb, NSH_BASE_HDR_LEN))) in nsh_gso_segment()
97 if (unlikely(!pskb_may_pull(skb, nsh_len))) in nsh_gso_segment()
/Linux-v4.19/net/netfilter/
Dnf_flow_table_ip.c26 if (!pskb_may_pull(skb, thoff + sizeof(*tcph))) in nf_flow_state_check()
43 if (!pskb_may_pull(skb, thoff + sizeof(*tcph)) || in nf_flow_nat_ip_tcp()
58 if (!pskb_may_pull(skb, thoff + sizeof(*udph)) || in nf_flow_nat_ip_udp()
170 if (!pskb_may_pull(skb, sizeof(*iph))) in nf_flow_tuple_ip()
185 if (!pskb_may_pull(skb, thoff + sizeof(*ports))) in nf_flow_tuple_ip()
280 if (!pskb_may_pull(skb, thoff + sizeof(*tcph)) || in nf_flow_nat_ipv6_tcp()
297 if (!pskb_may_pull(skb, thoff + sizeof(*udph)) || in nf_flow_nat_ipv6_udp()
406 if (!pskb_may_pull(skb, sizeof(*ip6h))) in nf_flow_tuple_ipv6()
416 if (!pskb_may_pull(skb, thoff + sizeof(*ports))) in nf_flow_tuple_ipv6()
/Linux-v4.19/net/ipv4/
Dxfrm4_policy.c133 pskb_may_pull(skb, xprth + 4 - skb->data)) { in _decode_session4()
146 pskb_may_pull(skb, xprth + 2 - skb->data)) { in _decode_session4()
159 pskb_may_pull(skb, xprth + 4 - skb->data)) { in _decode_session4()
171 pskb_may_pull(skb, xprth + 8 - skb->data)) { in _decode_session4()
183 pskb_may_pull(skb, xprth + 4 - skb->data)) { in _decode_session4()
195 pskb_may_pull(skb, xprth + 12 - skb->data)) { in _decode_session4()
Dgre_demux.c71 if (unlikely(!pskb_may_pull(skb, nhs + sizeof(struct gre_base_hdr)))) in gre_parse_header()
81 if (!pskb_may_pull(skb, nhs + hdr_len)) in gre_parse_header()
131 if (!pskb_may_pull(skb, 12)) in gre_rcv()
Dtunnel4.c98 if (!pskb_may_pull(skb, sizeof(struct iphdr))) in tunnel4_rcv()
117 if (!pskb_may_pull(skb, sizeof(struct ipv6hdr))) in tunnel64_rcv()
137 if (!pskb_may_pull(skb, sizeof(struct mpls_label))) in tunnelmpls4_rcv()
Dxfrm4_mode_beet.c93 if (!pskb_may_pull(skb, sizeof(*ph))) in xfrm4_beet_input()
105 if (!pskb_may_pull(skb, phlen)) in xfrm4_beet_input()
/Linux-v4.19/net/ipv6/ila/
Dila_common.c83 if (likely(pskb_may_pull(skb, nhoff + sizeof(struct tcphdr)))) { in ila_csum_adjust_transport()
93 if (likely(pskb_may_pull(skb, nhoff + sizeof(struct udphdr)))) { in ila_csum_adjust_transport()
107 if (likely(pskb_may_pull(skb, in ila_csum_adjust_transport()
/Linux-v4.19/net/sched/
Dact_nat.c127 if (!pskb_may_pull(skb, sizeof(*iph) + noff)) in tcf_nat_act()
165 if (!pskb_may_pull(skb, ihl + sizeof(*tcph) + noff) || in tcf_nat_act()
178 if (!pskb_may_pull(skb, ihl + sizeof(*udph) + noff) || in tcf_nat_act()
195 if (!pskb_may_pull(skb, ihl + sizeof(*icmph) + noff)) in tcf_nat_act()
205 if (!pskb_may_pull(skb, ihl + sizeof(*icmph) + sizeof(*iph) + in tcf_nat_act()
Dact_csum.c131 if (!pskb_may_pull(skb, ipl + ntkoff) || (ipl < hl) || in tcf_csum_skb_nextlayer()
383 if (!pskb_may_pull(skb, sizeof(*iph) + ntkoff)) in tcf_csum_ipv4()
488 if (!pskb_may_pull(skb, hl + ntkoff)) in tcf_csum_ipv6()
503 if (!pskb_may_pull(skb, hl + sizeof(*ip6xh) + ntkoff)) in tcf_csum_ipv6()
507 if (!pskb_may_pull(skb, hl + ixhl + ntkoff)) in tcf_csum_ipv6()
548 } while (pskb_may_pull(skb, hl + 1 + ntkoff)); in tcf_csum_ipv6()
/Linux-v4.19/net/llc/
Dllc_input.c116 if (unlikely(!pskb_may_pull(skb, sizeof(*pdu)))) in llc_fixup_skb()
124 if (unlikely(!pskb_may_pull(skb, llc_len))) in llc_fixup_skb()
134 !pskb_may_pull(skb, data_size)) in llc_fixup_skb()
/Linux-v4.19/net/x25/
Dx25_in.c112 if (!pskb_may_pull(skb, X25_STD_MIN_LEN)) in x25_state1_machine()
146 if (!pskb_may_pull(skb, X25_STD_MIN_LEN + 2)) in x25_state1_machine()
176 if (!pskb_may_pull(skb, X25_STD_MIN_LEN + 2)) in x25_state2_machine()
226 if (!pskb_may_pull(skb, X25_STD_MIN_LEN + 2)) in x25_state3_machine()
361 if (!pskb_may_pull(skb, X25_STD_MIN_LEN + 2)) in x25_state4_machine()
Dx25_dev.c37 if (!pskb_may_pull(skb, X25_STD_MIN_LEN)) in x25_receive_data()
123 if (!pskb_may_pull(skb, 1)) in x25_lapb_receive_frame()
Dx25_subr.c271 if (!pskb_may_pull(skb, X25_STD_MIN_LEN)) in x25_decode()
298 if (!pskb_may_pull(skb, X25_EXT_MIN_LEN)) in x25_decode()
316 if (!pskb_may_pull(skb, X25_EXT_MIN_LEN)) in x25_decode()
/Linux-v4.19/net/bridge/netfilter/
Dnft_reject_bridge.c44 if (!pskb_may_pull(skb, sizeof(struct iphdr))) in nft_bridge_iphdr_validate()
57 if (!pskb_may_pull(skb, iph->ihl*4)) in nft_bridge_iphdr_validate()
122 if (!pskb_may_pull(oldskb, len)) in nft_reject_br_send_v4_unreach()
170 if (!pskb_may_pull(skb, sizeof(struct ipv6hdr))) in nft_bridge_ip6hdr_validate()
257 if (!pskb_may_pull(oldskb, len)) in nft_reject_br_send_v6_unreach()
/Linux-v4.19/net/openvswitch/
Dflow.c191 if (unlikely(!pskb_may_pull(skb, len))) in check_header()
198 return pskb_may_pull(skb, skb_network_offset(skb) + in arphdr_ok()
226 if (unlikely(!pskb_may_pull(skb, th_ofs + sizeof(struct tcphdr)))) in tcphdr_ok()
239 return pskb_may_pull(skb, skb_transport_offset(skb) + in udphdr_ok()
245 return pskb_may_pull(skb, skb_transport_offset(skb) + in sctphdr_ok()
251 return pskb_may_pull(skb, skb_transport_offset(skb) + in icmphdr_ok()
306 return pskb_may_pull(skb, skb_transport_offset(skb) + in icmp6hdr_ok()
327 if (unlikely(!pskb_may_pull(skb, sizeof(struct vlan_head) + in parse_vlan_tag()
403 if (unlikely(!pskb_may_pull(skb, sizeof(struct llc_snap_hdr)))) in parse_ethertype()
/Linux-v4.19/net/batman-adv/
Dgateway_client.c646 if (!pskb_may_pull(skb, *header_len + ETH_HLEN)) in batadv_gw_dhcp_recipient_get()
655 if (!pskb_may_pull(skb, *header_len + VLAN_HLEN)) in batadv_gw_dhcp_recipient_get()
666 if (!pskb_may_pull(skb, *header_len + sizeof(*iphdr))) in batadv_gw_dhcp_recipient_get()
678 if (!pskb_may_pull(skb, *header_len + sizeof(*ipv6hdr))) in batadv_gw_dhcp_recipient_get()
693 if (!pskb_may_pull(skb, *header_len + sizeof(*udphdr))) in batadv_gw_dhcp_recipient_get()
718 pskb_may_pull(skb, chaddr_offset + ETH_ALEN)) { in batadv_gw_dhcp_recipient_get()
Drouting.c199 if (unlikely(!pskb_may_pull(skb, header_len))) in batadv_check_management_packet()
281 if (!pskb_may_pull(skb, sizeof(struct batadv_icmp_tp_packet))) in batadv_recv_my_icmp_packet()
378 if (unlikely(!pskb_may_pull(skb, hdr_size))) in batadv_recv_icmp_packet()
476 if (unlikely(!pskb_may_pull(skb, hdr_size))) in batadv_check_unicast_packet()
830 if (!pskb_may_pull(skb, hdr_len + ETH_HLEN)) in batadv_check_unicast_ttvn()
1206 if (unlikely(!pskb_may_pull(skb, hdr_size))) in batadv_recv_bcast_packet()
/Linux-v4.19/net/lapb/
Dlapb_subr.c121 if (!pskb_may_pull(skb, 2)) in lapb_decode()
154 if (!pskb_may_pull(skb, 2)) in lapb_decode()
167 if (!pskb_may_pull(skb, 2)) in lapb_decode()
/Linux-v4.19/net/ife/
Dife.c72 if (!pskb_may_pull(skb, skb->dev->hard_header_len + IFE_METAHDRLEN)) in ife_decode()
82 if (unlikely(!pskb_may_pull(skb, total_pull))) in ife_decode()
/Linux-v4.19/net/ieee802154/
Dheader_ops.c246 if (!pskb_may_pull(skb, 3)) in ieee802154_hdr_pull()
252 if (rc < 0 || !pskb_may_pull(skb, rc)) in ieee802154_hdr_pull()
260 if (!pskb_may_pull(skb, want)) in ieee802154_hdr_pull()
/Linux-v4.19/drivers/net/ipvlan/
Dipvlan_core.c149 if (unlikely(!pskb_may_pull(skb, arp_hdr_len(port->dev)))) in ipvlan_get_L3_hdr()
161 if (unlikely(!pskb_may_pull(skb, sizeof(*ip4h)))) in ipvlan_get_L3_hdr()
179 if (unlikely(!pskb_may_pull(skb, sizeof(*ip6h)))) in ipvlan_get_L3_hdr()
193 if (unlikely(!pskb_may_pull(skb, sizeof(*ip6h) + sizeof(*icmph)))) in ipvlan_get_L3_hdr()
201 if (unlikely(!pskb_may_pull(skb, sizeof(*ip6h) + sizeof(*icmph) in ipvlan_get_L3_hdr()
643 if (unlikely(!pskb_may_pull(skb, sizeof(struct ethhdr)))) in ipvlan_queue_xmit()

123456