Home
last modified time | relevance | path

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

1234567

/linux-6.6.21/net/nsh/
Dnsh.c54 if (!pskb_may_pull(skb, NSH_BASE_HDR_LEN)) in nsh_pop()
61 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-6.6.21/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-6.6.21/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-6.6.21/drivers/net/wireless/intel/iwlwifi/mei/
Dnet.c89 if (!pskb_may_pull(skb, arp_hdr_len(skb->dev))) in iwl_mei_rx_filter_arp()
197 if (!pskb_may_pull(skb, skb_network_offset(skb) + sizeof(*iphdr)) || in iwl_mei_rx_filter_ipv4()
198 !pskb_may_pull(skb, skb_network_offset(skb) + ip_hdrlen(skb))) in iwl_mei_rx_filter_ipv4()
216 if (!pskb_may_pull(skb, skb_transport_offset(skb) + in iwl_mei_rx_filter_ipv4()
226 if (!pskb_may_pull(skb, skb_transport_offset(skb) + sizeof(*icmp))) in iwl_mei_rx_filter_ipv4()
/linux-6.6.21/include/linux/
Dvirtio_net.h101 if (!pskb_may_pull(skb, needed)) in virtio_net_hdr_to_skb()
109 if (!pskb_may_pull(skb, p_off)) in virtio_net_hdr_to_skb()
142 if (!pskb_may_pull(skb, p_off) || in virtio_net_hdr_to_skb()
149 if (!pskb_may_pull(skb, p_off)) in virtio_net_hdr_to_skb()
/linux-6.6.21/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-6.6.21/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()
140 !pskb_may_pull(skb, data_size)) in llc_fixup_skb()
/linux-6.6.21/net/sched/
Dact_nat.c145 if (!pskb_may_pull(skb, sizeof(*iph) + noff)) in tcf_nat_act()
183 if (!pskb_may_pull(skb, ihl + sizeof(*tcph) + noff) || in tcf_nat_act()
196 if (!pskb_may_pull(skb, ihl + sizeof(*udph) + noff) || in tcf_nat_act()
213 if (!pskb_may_pull(skb, ihl + sizeof(*icmph) + noff)) in tcf_nat_act()
221 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()
391 if (!pskb_may_pull(skb, sizeof(*iph) + ntkoff)) in tcf_csum_ipv4()
496 if (!pskb_may_pull(skb, hl + ntkoff)) in tcf_csum_ipv6()
511 if (!pskb_may_pull(skb, hl + sizeof(*ip6xh) + ntkoff)) in tcf_csum_ipv6()
515 if (!pskb_may_pull(skb, hl + ixhl + ntkoff)) in tcf_csum_ipv6()
556 } while (pskb_may_pull(skb, hl + 1 + ntkoff)); in tcf_csum_ipv6()
/linux-6.6.21/net/ieee802154/
Dheader_ops.c285 if (!pskb_may_pull(skb, 3)) in ieee802154_hdr_pull()
291 if (rc < 0 || !pskb_may_pull(skb, rc)) in ieee802154_hdr_pull()
299 if (!pskb_may_pull(skb, want)) in ieee802154_hdr_pull()
313 if (!pskb_may_pull(skb, sizeof(*mac_pl))) in ieee802154_mac_cmd_pl_pull()
/linux-6.6.21/net/batman-adv/
Dgateway_client.c576 if (!pskb_may_pull(skb, *header_len + ETH_HLEN)) in batadv_gw_dhcp_recipient_get()
585 if (!pskb_may_pull(skb, *header_len + VLAN_HLEN)) in batadv_gw_dhcp_recipient_get()
596 if (!pskb_may_pull(skb, *header_len + sizeof(*iphdr))) in batadv_gw_dhcp_recipient_get()
608 if (!pskb_may_pull(skb, *header_len + sizeof(*ipv6hdr))) in batadv_gw_dhcp_recipient_get()
623 if (!pskb_may_pull(skb, *header_len + sizeof(*udphdr))) in batadv_gw_dhcp_recipient_get()
648 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()
798 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-6.6.21/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-6.6.21/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-6.6.21/net/openvswitch/
Dflow.c183 if (unlikely(!pskb_may_pull(skb, len))) in check_header()
190 return pskb_may_pull(skb, skb_network_offset(skb) + in arphdr_ok()
218 if (unlikely(!pskb_may_pull(skb, th_ofs + sizeof(struct tcphdr)))) in tcphdr_ok()
231 return pskb_may_pull(skb, skb_transport_offset(skb) + in udphdr_ok()
237 return pskb_may_pull(skb, skb_transport_offset(skb) + in sctphdr_ok()
243 return pskb_may_pull(skb, skb_transport_offset(skb) + in icmphdr_ok()
436 return pskb_may_pull(skb, skb_transport_offset(skb) + in icmp6hdr_ok()
461 if (unlikely(!pskb_may_pull(skb, sizeof(struct vlan_head) + in parse_vlan_tag()
537 if (unlikely(!pskb_may_pull(skb, sizeof(struct llc_snap_hdr)))) in parse_ethertype()
/linux-6.6.21/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()
658 if (unlikely(!pskb_may_pull(skb, sizeof(struct ethhdr)))) in ipvlan_queue_xmit()
/linux-6.6.21/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-6.6.21/net/xfrm/
Dxfrm_input.c159 if (!pskb_may_pull(skb, sizeof(struct ip_comp_hdr))) in xfrm_parse_spi()
168 if (!pskb_may_pull(skb, hlen)) in xfrm_parse_spi()
189 if (!pskb_may_pull(skb, sizeof(*ph))) in xfrm4_remove_beet_encap()
201 if (!pskb_may_pull(skb, phlen)) in xfrm4_remove_beet_encap()
239 if (!pskb_may_pull(skb, sizeof(struct iphdr))) in xfrm4_remove_tunnel_encap()
276 if (!pskb_may_pull(skb, sizeof(struct ipv6hdr))) in xfrm6_remove_tunnel_encap()
/linux-6.6.21/net/dsa/
Dtag_brcm.c149 if (unlikely(!pskb_may_pull(skb, BRCM_TAG_LEN))) in brcm_tag_rcv_ll()
260 if (unlikely(!pskb_may_pull(skb, BRCM_LEG_PORT_ID))) in brcm_leg_tag_rcv()
/linux-6.6.21/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()
97 if (!pskb_may_pull(oldskb, len)) in nf_reject_skb_v4_unreach()
/linux-6.6.21/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