Home
last modified time | relevance | path

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

1234567

/Linux-v5.15/net/nsh/
Dnsh.c53 if (!pskb_may_pull(skb, NSH_BASE_HDR_LEN)) in nsh_pop()
60 if (!pskb_may_pull(skb, length)) in nsh_pop()
89 if (unlikely(!pskb_may_pull(skb, NSH_BASE_HDR_LEN))) in nsh_gso_segment()
94 if (unlikely(!pskb_may_pull(skb, nsh_len))) in nsh_gso_segment()
/Linux-v5.15/include/linux/
Dvirtio_net.h72 if (!pskb_may_pull(skb, needed)) in virtio_net_hdr_to_skb()
79 if (!pskb_may_pull(skb, p_off)) in virtio_net_hdr_to_skb()
109 if (!pskb_may_pull(skb, p_off) || in virtio_net_hdr_to_skb()
116 if (!pskb_may_pull(skb, p_off)) in virtio_net_hdr_to_skb()
/Linux-v5.15/net/ipv4/
Dgre_demux.c69 if (unlikely(!pskb_may_pull(skb, nhs + sizeof(struct gre_base_hdr)))) in gre_parse_header()
79 if (!pskb_may_pull(skb, nhs + hdr_len)) in gre_parse_header()
135 if (!pskb_may_pull(skb, nhs + hdr_len + sizeof(*ershdr))) in gre_parse_header()
152 if (!pskb_may_pull(skb, 12)) in gre_rcv()
Dtunnel4.c99 if (!pskb_may_pull(skb, sizeof(struct iphdr))) in tunnel4_rcv()
145 if (!pskb_may_pull(skb, sizeof(struct ipv6hdr))) in tunnel64_rcv()
165 if (!pskb_may_pull(skb, sizeof(struct mpls_label))) in tunnelmpls4_rcv()
/Linux-v5.15/net/x25/
Dx25_in.c107 if (!pskb_may_pull(skb, X25_STD_MIN_LEN)) in x25_state1_machine()
150 if (!pskb_may_pull(skb, X25_STD_MIN_LEN + 2)) in x25_state1_machine()
180 if (!pskb_may_pull(skb, X25_STD_MIN_LEN + 2)) in x25_state2_machine()
230 if (!pskb_may_pull(skb, X25_STD_MIN_LEN + 2)) in x25_state3_machine()
365 if (!pskb_may_pull(skb, X25_STD_MIN_LEN + 2)) in x25_state4_machine()
396 if (!pskb_may_pull(skb, X25_STD_MIN_LEN + 2)) { in x25_state5_machine()
Dx25_dev.c32 if (!pskb_may_pull(skb, X25_STD_MIN_LEN)) in x25_receive_data()
118 if (!pskb_may_pull(skb, 1)) { in x25_lapb_receive_frame()
Dx25_subr.c266 if (!pskb_may_pull(skb, X25_STD_MIN_LEN)) in x25_decode()
293 if (!pskb_may_pull(skb, X25_EXT_MIN_LEN)) in x25_decode()
311 if (!pskb_may_pull(skb, X25_EXT_MIN_LEN)) in x25_decode()
/Linux-v5.15/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-v5.15/net/sched/
Dact_nat.c133 if (!pskb_may_pull(skb, sizeof(*iph) + noff)) in tcf_nat_act()
171 if (!pskb_may_pull(skb, ihl + sizeof(*tcph) + noff) || in tcf_nat_act()
184 if (!pskb_may_pull(skb, ihl + sizeof(*udph) + noff) || in tcf_nat_act()
201 if (!pskb_may_pull(skb, ihl + sizeof(*icmph) + noff)) in tcf_nat_act()
209 if (!pskb_may_pull(skb, ihl + sizeof(*icmph) + sizeof(*iph) + in tcf_nat_act()
Dact_csum.c140 if (!pskb_may_pull(skb, ipl + ntkoff) || (ipl < hl) || in tcf_csum_skb_nextlayer()
392 if (!pskb_may_pull(skb, sizeof(*iph) + ntkoff)) in tcf_csum_ipv4()
497 if (!pskb_may_pull(skb, hl + ntkoff)) in tcf_csum_ipv6()
512 if (!pskb_may_pull(skb, hl + sizeof(*ip6xh) + ntkoff)) in tcf_csum_ipv6()
516 if (!pskb_may_pull(skb, hl + ixhl + ntkoff)) in tcf_csum_ipv6()
557 } while (pskb_may_pull(skb, hl + 1 + ntkoff)); in tcf_csum_ipv6()
/Linux-v5.15/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-v5.15/net/batman-adv/
Dgateway_client.c575 if (!pskb_may_pull(skb, *header_len + ETH_HLEN)) in batadv_gw_dhcp_recipient_get()
584 if (!pskb_may_pull(skb, *header_len + VLAN_HLEN)) in batadv_gw_dhcp_recipient_get()
595 if (!pskb_may_pull(skb, *header_len + sizeof(*iphdr))) in batadv_gw_dhcp_recipient_get()
607 if (!pskb_may_pull(skb, *header_len + sizeof(*ipv6hdr))) in batadv_gw_dhcp_recipient_get()
622 if (!pskb_may_pull(skb, *header_len + sizeof(*udphdr))) in batadv_gw_dhcp_recipient_get()
647 if (!pskb_may_pull(skb, chaddr_offset + ETH_ALEN)) in batadv_gw_dhcp_recipient_get()
Drouting.c184 if (unlikely(!pskb_may_pull(skb, header_len))) in batadv_check_management_packet()
257 if (!pskb_may_pull(skb, sizeof(struct batadv_icmp_tp_packet))) in batadv_recv_my_icmp_packet()
350 if (unlikely(!pskb_may_pull(skb, hdr_size))) in batadv_recv_icmp_packet()
447 if (unlikely(!pskb_may_pull(skb, hdr_size))) in batadv_check_unicast_packet()
797 if (!pskb_may_pull(skb, hdr_len + ETH_HLEN)) in batadv_check_unicast_ttvn()
1178 if (unlikely(!pskb_may_pull(skb, hdr_size))) in batadv_recv_bcast_packet()
/Linux-v5.15/net/ipv6/
Dtunnel6.c126 if (!pskb_may_pull(skb, sizeof(struct ipv6hdr))) in tunnelmpls6_rcv()
144 if (!pskb_may_pull(skb, sizeof(struct ipv6hdr))) in tunnel6_rcv()
189 if (!pskb_may_pull(skb, sizeof(struct iphdr))) in tunnel46_rcv()
Dfou6.c98 if (!pskb_may_pull(skb, transport_offset + len)) in gue6_err()
133 if (!pskb_may_pull(skb, transport_offset + len + optlen)) in gue6_err()
/Linux-v5.15/net/openvswitch/
Dflow.c178 if (unlikely(!pskb_may_pull(skb, len))) in check_header()
185 return pskb_may_pull(skb, skb_network_offset(skb) + in arphdr_ok()
213 if (unlikely(!pskb_may_pull(skb, th_ofs + sizeof(struct tcphdr)))) in tcphdr_ok()
226 return pskb_may_pull(skb, skb_transport_offset(skb) + in udphdr_ok()
232 return pskb_may_pull(skb, skb_transport_offset(skb) + in sctphdr_ok()
238 return pskb_may_pull(skb, skb_transport_offset(skb) + in icmphdr_ok()
291 return pskb_may_pull(skb, skb_transport_offset(skb) + in icmp6hdr_ok()
316 if (unlikely(!pskb_may_pull(skb, sizeof(struct vlan_head) + in parse_vlan_tag()
392 if (unlikely(!pskb_may_pull(skb, sizeof(struct llc_snap_hdr)))) in parse_ethertype()
/Linux-v5.15/net/lapb/
Dlapb_subr.c116 if (!pskb_may_pull(skb, 2)) in lapb_decode()
149 if (!pskb_may_pull(skb, 2)) in lapb_decode()
162 if (!pskb_may_pull(skb, 2)) in lapb_decode()
/Linux-v5.15/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-v5.15/net/ieee802154/
Dheader_ops.c238 if (!pskb_may_pull(skb, 3)) in ieee802154_hdr_pull()
244 if (rc < 0 || !pskb_may_pull(skb, rc)) in ieee802154_hdr_pull()
252 if (!pskb_may_pull(skb, want)) in ieee802154_hdr_pull()
/Linux-v5.15/drivers/net/ipvlan/
Dipvlan_core.c144 if (unlikely(!pskb_may_pull(skb, arp_hdr_len(port->dev)))) in ipvlan_get_L3_hdr()
156 if (unlikely(!pskb_may_pull(skb, sizeof(*ip4h)))) in ipvlan_get_L3_hdr()
174 if (unlikely(!pskb_may_pull(skb, sizeof(*ip6h)))) in ipvlan_get_L3_hdr()
188 if (unlikely(!pskb_may_pull(skb, sizeof(*ip6h) + sizeof(*icmph)))) in ipvlan_get_L3_hdr()
196 if (unlikely(!pskb_may_pull(skb, sizeof(*ip6h) + sizeof(*icmph) in ipvlan_get_L3_hdr()
640 if (unlikely(!pskb_may_pull(skb, sizeof(struct ethhdr)))) in ipvlan_queue_xmit()
/Linux-v5.15/net/ipv4/netfilter/
Dnf_reject_ipv4.c20 if (!pskb_may_pull(skb, sizeof(struct iphdr))) in nf_reject_iphdr_validate()
33 if (!pskb_may_pull(skb, iph->ihl*4)) in nf_reject_iphdr_validate()
96 if (!pskb_may_pull(oldskb, len)) in nf_reject_skb_v4_unreach()
/Linux-v5.15/net/xfrm/
Dxfrm_input.c156 if (!pskb_may_pull(skb, sizeof(struct ip_comp_hdr))) in xfrm_parse_spi()
165 if (!pskb_may_pull(skb, hlen)) in xfrm_parse_spi()
184 if (!pskb_may_pull(skb, sizeof(*ph))) in xfrm4_remove_beet_encap()
196 if (!pskb_may_pull(skb, phlen)) in xfrm4_remove_beet_encap()
235 if (!pskb_may_pull(skb, sizeof(struct iphdr))) in xfrm4_remove_tunnel_encap()
272 if (!pskb_may_pull(skb, sizeof(struct ipv6hdr))) in xfrm6_remove_tunnel_encap()
/Linux-v5.15/net/dsa/
Dtag_brcm.c144 if (unlikely(!pskb_may_pull(skb, BRCM_TAG_LEN))) in brcm_tag_rcv_ll()
254 if (unlikely(!pskb_may_pull(skb, BRCM_LEG_PORT_ID))) in brcm_leg_tag_rcv()
Dtag_dsa.c323 if (unlikely(!pskb_may_pull(skb, DSA_HLEN))) in dsa_rcv()
363 if (unlikely(!pskb_may_pull(skb, EDSA_HLEN))) in edsa_rcv()
/Linux-v5.15/net/802/
Dgarp.c429 if (!pskb_may_pull(skb, sizeof(u8))) in garp_pdu_parse_end_mark()
446 if (!pskb_may_pull(skb, sizeof(*ga))) in garp_pdu_parse_attr()
452 if (!pskb_may_pull(skb, ga->len)) in garp_pdu_parse_attr()
495 if (!pskb_may_pull(skb, sizeof(*gm))) in garp_pdu_parse_msg()
526 if (!pskb_may_pull(skb, sizeof(*gp))) in garp_pdu_rcv()

1234567