Home
last modified time | relevance | path

Searched refs:skb (Results 1 – 25 of 2727) sorted by relevance

12345678910>>...110

/linux/include/linux/
A Dskbuff.h1560 for ((skb) = (first), (next_skb) = (skb) ? (skb)->next : NULL; (skb); \
2268 skb->tail = skb->data - skb->head; in skb_reset_tail_pointer()
2285 skb->tail = skb->data; in skb_reset_tail_pointer()
2554 skb->inner_mac_header = skb->data - skb->head; in skb_reset_inner_mac_header()
2575 skb->transport_header = skb->data - skb->head; in skb_reset_transport_header()
2592 skb->network_header = skb->data - skb->head; in skb_reset_network_header()
2628 skb->mac_header = skb->data - skb->head; in skb_reset_mac_header()
2822 skb->destructor(skb); in skb_orphan()
3577 skb = skb->next)
3586 skb = skb->next)
[all …]
/linux/net/xfrm/
A Dxfrm_output.c72 skb->mac_header = skb->network_header + in xfrm4_transport_output()
74 skb->transport_header = skb->network_header + ihl; in xfrm4_transport_output()
240 skb->mac_header = skb->network_header + in xfrm4_beet_encap_add()
284 skb->mac_header = skb->network_header + in xfrm4_tunnel_encap_add()
329 skb->mac_header = skb->network_header + in xfrm6_tunnel_encap_add()
368 skb->mac_header = skb->network_header + in xfrm6_beet_encap_add()
506 skb->mark = xfrm_smark_get(skb->mark, x); in xfrm_output_one()
689 memset(IPCB(skb), 0, sizeof(*IPCB(skb))); in xfrm_output()
759 if ((!skb_is_gso(skb) && skb->len > mtu) || in xfrm4_tunnel_check_size()
761 !skb_gso_validate_network_len(skb, ip_skb_dst_mtu(skb->sk, skb)))) { in xfrm4_tunnel_check_size()
[all …]
A Dxfrm_input.c250 eth_hdr(skb)->h_proto = skb->protocol; in xfrm4_remove_tunnel_encap()
288 eth_hdr(skb)->h_proto = skb->protocol; in xfrm6_remove_tunnel_encap()
302 err = skb_cow_head(skb, size + skb->mac_len); in xfrm6_remove_beet_encap()
402 int ihl = skb->data - skb_transport_header(skb); in xfrm4_transport_input()
404 if (skb->transport_header != skb->network_header) { in xfrm4_transport_input()
407 skb->network_header = skb->transport_header; in xfrm4_transport_input()
409 ip_hdr(skb)->tot_len = htons(skb->len + ihl); in xfrm4_transport_input()
417 int ihl = skb->data - skb_transport_header(skb); in xfrm6_transport_input()
419 if (skb->transport_header != skb->network_header) { in xfrm6_transport_input()
422 skb->network_header = skb->transport_header; in xfrm6_transport_input()
[all …]
/linux/net/ipv6/
A Dexthdrs.c128 if (skb_transport_offset(skb) + len > skb_headlen(skb)) in ip6_parse_tlv()
301 !pskb_may_pull(skb, (skb_transport_offset(skb) + in ipv6_destopt_rcv()
397 skb_postpull_rcsum(skb, skb_network_header(skb), in ipv6_srh_rcv()
404 skb_postpull_rcsum(skb, skb_transport_header(skb), in ipv6_srh_rcv()
412 __skb_tunnel_rx(skb, skb->dev, net); in ipv6_srh_rcv()
515 skb_postpull_rcsum(skb, skb_network_header(skb), in ipv6_rpl_srh_rcv()
529 __skb_tunnel_rx(skb, skb->dev, net); in ipv6_rpl_srh_rcv()
639 skb_postpush_rcsum(skb, ipv6_hdr(skb), in ipv6_rpl_srh_rcv()
838 skb_push(skb, skb->data - skb_network_header(skb)); in ipv6_rthdr_rcv()
855 skb_push(skb, skb->data - skb_network_header(skb)); in ipv6_rthdr_rcv()
[all …]
A Dip6_input.c71 skb = l3mdev_ip6_rcv(skb); in ip6_rcv_finish()
72 if (!skb) in ip6_rcv_finish()
102 return skb; in ip6_extract_route_hint()
120 skb = l3mdev_ip6_rcv(skb); in ip6_list_rcv_finish()
121 if (!skb) in ip6_list_rcv_finish()
182 IP6CB(skb)->iif = skb_valid_dst(skb) ? ip6_dst_idev(skb_dst(skb))->dev->ifindex : dev->ifindex; in ip6_rcv_core()
294 skb = ip6_rcv_core(skb, dev, net); in ipv6_rcv()
325 skb = ip6_rcv_core(skb, dev, net); in ipv6_list_rcv()
366 if (!pskb_pull(skb, skb_transport_offset(skb))) in ip6_protocol_deliver_rcu()
399 skb_postpull_rcsum(skb, skb_network_header(skb), in ip6_protocol_deliver_rcu()
[all …]
A Dip6_offload.c68 __skb_pull(skb, len); in ipv6_gso_pull_exthdrs()
90 nhoff = skb_network_header(skb) - skb_mac_header(skb); in ipv6_gso_segment()
99 ipv6h = ipv6_hdr(skb); in ipv6_gso_segment()
124 for (skb = segs; skb; skb = skb->next) { in ipv6_gso_segment()
133 skb->network_header = (u8 *)ipv6h - skb->head; in ipv6_gso_segment()
144 if (skb->next) in ipv6_gso_segment()
207 skb_set_transport_header(skb, skb_gro_offset(skb)); in ipv6_gro_receive()
215 __pskb_pull(skb, skb_gro_offset(skb)); in ipv6_gro_receive()
218 skb_gro_pull(skb, -skb_transport_offset(skb)); in ipv6_gro_receive()
220 __skb_push(skb, skb_gro_offset(skb)); in ipv6_gro_receive()
[all …]
A Dudp_offload.c31 if (skb->encapsulation && skb_shinfo(skb)->gso_type & in udp6_ufo_fragment()
55 uh = udp_hdr(skb); in udp6_ufo_fragment()
56 ipv6h = ipv6_hdr(skb); in udp6_ufo_fragment()
59 csum = skb_checksum(skb, 0, skb->len, 0); in udp6_ufo_fragment()
90 unfrag_len = (skb_network_header(skb) - skb_mac_header(skb)) + in udp6_ufo_fragment()
92 packet_start = (u8 *) skb->head + SKB_GSO_CB(skb)->mac_offset; in udp6_ufo_fragment()
102 fptr->identification = ipv6_proxy_select_ident(dev_net(skb->dev), skb); in udp6_ufo_fragment()
167 if (NAPI_GRO_CB(skb)->is_flist && !NAPI_GRO_CB(skb)->encap_mark) { in udp6_gro_complete()
171 skb_shinfo(skb)->gso_segs = NAPI_GRO_CB(skb)->count; in udp6_gro_complete()
175 skb->csum_level++; in udp6_gro_complete()
[all …]
/linux/net/bridge/
A Dbr_netfilter_hooks.c67 (!skb_vlan_tag_present(skb) && skb->protocol == htons(ETH_P_IP))
271 skb->dev = bridge_parent(skb->dev); in br_nf_pre_routing_finish_bridge()
402 net, sk, skb, skb->dev, in br_nf_pre_routing_finish()
457 skb->dev = brnf_get_logical_dev(skb, skb->dev, net); in setup_pre_routing()
494 if (IS_IPV6(skb) || is_vlan_ipv6(skb, state->net) || in br_nf_pre_routing()
511 if (!IS_IP(skb) && !is_vlan_ip(skb, state->net) && in br_nf_pre_routing()
529 skb->transport_header = skb->network_header + ip_hdr(skb)->ihl * 4; in br_nf_pre_routing()
545 if (!IS_ARP(skb) && !is_vlan_arp(skb, net)) { in br_nf_forward_finish()
600 if (IS_IP(skb) || is_vlan_ip(skb, state->net) || in br_nf_forward_ip()
834 if (IS_IP(skb) || is_vlan_ip(skb, state->net) || in br_nf_post_routing()
[all …]
A Dbr_forward.c36 if (!is_skb_forwardable(skb->dev, skb)) in br_dev_queue_push_xmit()
45 if (!__vlan_get_protocol(skb, skb->protocol, &depth)) in br_dev_queue_push_xmit()
67 net, sk, skb, NULL, skb->dev, in br_forward_finish()
87 skb = br_handle_vlan(to->br, to, vg, skb); in __br_forward()
88 if (!skb) in __br_forward()
104 if (!is_skb_forwardable(skb->dev, skb)) in __br_forward()
116 net, NULL, skb, indev, skb->dev, in __br_forward()
125 skb = skb_clone(skb, GFP_ATOMIC); in deliver_clone()
126 if (!skb) { in deliver_clone()
264 skb = skb_copy(skb, GFP_ATOMIC); in maybe_deliver_addr()
[all …]
A Dbr_input.c48 kfree_skb(skb); in br_pass_frame_up()
52 indev = skb->dev; in br_pass_frame_up()
53 skb->dev = brdev; in br_pass_frame_up()
54 skb = br_handle_vlan(br, NULL, vg, skb); in br_pass_frame_up()
55 if (!skb) in br_pass_frame_up()
58 br_multicast_count(br, NULL, skb, br_multicast_igmp_type(skb), in br_pass_frame_up()
254 br_handle_frame_finish(dev_net(skb->dev), NULL, skb); in nf_hook_bridge_pre()
290 skb = skb_share_check(skb, GFP_ATOMIC); in br_handle_frame()
291 if (!skb) in br_handle_frame()
324 *pskb = skb; in br_handle_frame()
[all …]
/linux/drivers/bluetooth/
A Dbtbcm.c129 if (skb->len != 6 || skb->data[0]) { in btbcm_read_pcm_int_params()
253 return skb; in btbcm_read_local_name()
262 return skb; in btbcm_read_local_name()
274 return skb; in btbcm_read_local_version()
283 return skb; in btbcm_read_local_version()
294 return skb; in btbcm_read_verbose_config()
303 return skb; in btbcm_read_verbose_config()
314 return skb; in btbcm_read_controller_features()
323 return skb; in btbcm_read_controller_features()
334 return skb; in btbcm_read_usb_product()
[all …]
/linux/net/core/
A Dskbuff.c110 msg, addr, skb->len, sz, skb->head, skb->data, in skb_panic()
204 skb->end = skb->tail + size; in __build_skb_around()
729 skb->destructor(skb); in skb_release_head_state()
829 skb->csum, skb->ip_summed, skb->csum_complete_sw, in skb_dump()
831 skb->hash, skb->sw_hash, skb->l4_hash, in skb_dump()
832 ntohs(skb->protocol), skb->pkt_type, skb->skb_iif); in skb_dump()
1065 n->hdr_len = skb->nohdr ? skb_headroom(skb) : skb->hdr_len; in __skb_clone()
1927 ntail = skb->data_len + pad - (skb->end - skb->tail); in __skb_pad()
2681 skb = skb->next; in __skb_send_sock()
6322 skb->data_len = skb->len; in pskb_carve_inside_nonlinear()
[all …]
/linux/net/ipv4/
A Dudp_offload.c51 skb_set_network_header(skb, skb_inner_network_offset(skb)); in __skb_udp_tunnel_segment()
53 skb->mac_len = skb_inner_network_offset(skb); in __skb_udp_tunnel_segment()
62 need_ipsec = skb_dst(skb) && dst_xfrm(skb_dst(skb)); in __skb_udp_tunnel_segment()
96 skb = segs; in __skb_udp_tunnel_segment()
143 skb->csum_start = skb_transport_header(skb) - skb->head; in __skb_udp_tunnel_segment()
146 } while ((skb = skb->next)); in __skb_udp_tunnel_segment()
254 skb = skb_segment_list(skb, features, skb_mac_header_len(skb)); in __udp_gso_segment_list()
405 csum = skb_checksum(skb, 0, skb->len, 0); in udp4_ufo_fragment()
480 if (!pskb_may_pull(skb, skb_gro_offset(skb))) { in udp_gro_receive_segment()
621 skb->csum_start = (unsigned char *)uh - skb->head; in udp_gro_complete_segment()
[all …]
A Dip_input.c228 __skb_pull(skb, skb_network_header_len(skb)); in ip_local_deliver_finish()
253 net, NULL, skb, skb->dev, NULL, in ip_local_deliver()
270 if (skb_cow(skb, skb_headroom(skb))) { in ip_rcv_options()
423 skb = l3mdev_ip_rcv(skb); in ip_rcv_finish()
424 if (!skb) in ip_rcv_finish()
449 skb = skb_share_check(skb, GFP_ATOMIC); in ip_rcv_core()
510 IPCB(skb)->iif = skb->skb_iif; in ip_rcv_core()
536 skb = ip_rcv_core(skb, net); in ip_rcv()
580 skb = l3mdev_ip_rcv(skb); in ip_list_rcv_finish()
581 if (!skb) in ip_list_rcv_finish()
[all …]
A Dgre_offload.c17 int tnl_hlen = skb_inner_mac_header(skb) - skb_transport_header(skb); in gre_gso_segment()
25 if (!skb->encapsulation) in gre_gso_segment()
35 skb->encapsulation = 0; in gre_gso_segment()
39 skb_set_network_header(skb, skb_inner_network_offset(skb)); in gre_gso_segment()
40 skb->mac_len = skb_inner_network_offset(skb); in gre_gso_segment()
41 skb->protocol = skb->inner_protocol; in gre_gso_segment()
50 need_ipsec = skb_dst(skb) && dst_xfrm(skb_dst(skb)); in gre_gso_segment()
67 skb = segs; in gre_gso_segment()
99 partial_adj = skb->len + skb_headroom(skb) - in gre_gso_segment()
112 skb->csum_start = skb_transport_header(skb) - skb->head; in gre_gso_segment()
[all …]
A Dtcp_offload.c17 while (skb) { in tcp_gso_tstamp()
24 skb = skb->next; in tcp_gso_tstamp()
69 th = tcp_hdr(skb); in tcp_gso_segment()
87 skb_shinfo(skb)->gso_segs = DIV_ROUND_UP(skb->len, mss); in tcp_gso_segment()
96 skb->ooo_okay = 0; in tcp_gso_segment()
114 skb = segs; in tcp_gso_segment()
115 th = tcp_hdr(skb); in tcp_gso_segment()
139 skb = skb->next; in tcp_gso_segment()
292 skb->csum_start = (unsigned char *)th - skb->head; in tcp_gro_complete()
296 skb_shinfo(skb)->gso_segs = NAPI_GRO_CB(skb)->count; in tcp_gro_complete()
[all …]
/linux/drivers/net/wireless/ath/ath10k/
A Dwmi-ops.h474 if (IS_ERR(skb)) in ath10k_wmi_mgmt_tx_send()
496 if (IS_ERR(skb)) in ath10k_wmi_mgmt_tx()
525 if (IS_ERR(skb)) in ath10k_wmi_pdev_set_regdomain()
541 if (IS_ERR(skb)) in ath10k_wmi_pdev_set_base_macaddr()
557 if (IS_ERR(skb)) in ath10k_wmi_pdev_suspend_target()
572 if (IS_ERR(skb)) in ath10k_wmi_pdev_resume_target()
587 if (IS_ERR(skb)) in ath10k_wmi_pdev_set_param()
602 if (IS_ERR(skb)) in ath10k_wmi_cmd_init()
618 if (IS_ERR(skb)) in ath10k_wmi_start_scan()
633 if (IS_ERR(skb)) in ath10k_wmi_stop_scan()
[all …]
/linux/include/net/
A Dllc_c_ev.h125 return (struct llc_conn_state_ev *)skb->cb; in llc_conn_ev()
142 struct sk_buff *skb);
145 struct sk_buff *skb);
147 struct sk_buff *skb);
154 struct sk_buff *skb);
156 struct sk_buff *skb);
166 struct sk_buff *skb);
168 struct sk_buff *skb);
172 struct sk_buff *skb);
174 struct sk_buff *skb);
[all …]
A Dllc_c_ac.h93 int llc_conn_ac_conn_ind(struct sock *sk, struct sk_buff *skb);
97 int llc_conn_ac_rst_ind(struct sock *sk, struct sk_buff *skb);
100 struct sk_buff *skb);
102 struct sk_buff *skb);
113 struct sk_buff *skb);
136 struct sk_buff *skb);
150 struct sk_buff *skb);
161 int llc_conn_ac_rst_vs(struct sock *sk, struct sk_buff *skb);
162 int llc_conn_ac_upd_vs(struct sock *sk, struct sk_buff *skb);
163 int llc_conn_disc(struct sock *sk, struct sk_buff *skb);
[all …]
/linux/net/bridge/netfilter/
A Dnf_conntrack_bridge.c46 iph = ip_hdr(skb); in nf_br_ip_fragment()
55 mtu = skb->dev->mtu; in nf_br_ip_fragment()
66 if (skb_cloned(skb)) in nf_br_ip_fragment()
120 consume_skb(skb); in nf_br_ip_fragment()
124 kfree_skb(skb); in nf_br_ip_fragment()
166 br_skb_cb_restore(skb, &cb, IPCB(skb)->frag_max_size); in nf_ct_br_defrag4()
196 br_skb_cb_restore(skb, &cb, IP6CB(skb)->frag_max_size); in nf_ct_br_defrag6()
209 iph = ip_hdr(skb); in nf_ct_br_ip_check()
233 if (skb->len < len) in nf_ct_br_ipv6_check()
341 kfree_skb(skb); in nf_ct_bridge_frag_restore()
[all …]
/linux/drivers/net/ethernet/qualcomm/rmnet/
A Drmnet_handlers.c46 rmnet_vnd_rx_fixup(skb, skb->dev); in rmnet_deliver_skb()
100 skb_trim(skb, len); in __rmnet_map_ingress_handler()
105 kfree_skb(skb); in __rmnet_map_ingress_handler()
116 kfree_skb(skb); in rmnet_map_ingress_handler()
127 consume_skb(skb); in rmnet_map_ingress_handler()
176 skb_push(skb, skb->mac_len); in rmnet_bridge_handler()
196 if (!skb) in rmnet_rx_handler()
200 kfree_skb(skb); in rmnet_rx_handler()
207 dev = skb->dev; in rmnet_rx_handler()
211 kfree_skb(skb); in rmnet_rx_handler()
[all …]
/linux/net/sched/
A Dsch_frag.c27 kfree_skb(skb); in sch_frag_xmit()
43 skb_postpush_rcsum(skb, skb->data, data->l2_len); in sch_frag_xmit()
46 return data->xmit(skb); in sch_frag_xmit()
69 skb_pull(skb, hlen); in sch_frag_prepare_frag()
106 ret = ip_do_fragment(net, skb->sk, skb, sch_frag_xmit); in sch_fragment()
122 ret = ipv6_stub->ipv6_fragment(net, skb->sk, skb, in sch_fragment()
135 kfree_skb(skb); in sch_fragment()
139 int sch_frag_xmit_hook(struct sk_buff *skb, int (*xmit)(struct sk_buff *skb)) in sch_frag_xmit_hook() argument
144 if (mru && skb->len > mru + skb->dev->hard_header_len) in sch_frag_xmit_hook()
145 err = sch_fragment(dev_net(skb->dev), skb, mru, xmit); in sch_frag_xmit_hook()
[all …]
/linux/net/ieee802154/6lowpan/
A Drx.c25 skb->dev->stats.rx_bytes += skb->len; in lowpan_give_skb_to_device()
27 return netif_rx(skb); in lowpan_give_skb_to_device()
40 kfree_skb(skb); in lowpan_rx_handlers_result()
72 ret = lowpan_frag_rcv(skb, *skb_network_header(skb) & in lowpan_rx_h_frag()
118 skb_pull(skb, 1); in lowpan_rx_h_ipv6()
286 skb = skb_share_check(skb, GFP_ATOMIC); in lowpan_rcv()
287 if (!skb) in lowpan_rcv()
289 skb->dev = ldev; in lowpan_rcv()
297 skb = skb_unshare(skb, GFP_ATOMIC); in lowpan_rcv()
298 if (!skb) in lowpan_rcv()
[all …]
/linux/drivers/net/wireguard/
A Dreceive.c60 skb_transport_header(skb) < skb->head || in prepare_skb_header()
273 offset = skb->data - skb_network_header(skb); in decrypt_packet()
282 if (skb_to_sgvec(skb, sg, 0, skb->len) <= 0) in decrypt_packet()
294 if (pskb_trim(skb, skb->len - noise_encrypted_len(0))) in decrypt_packet()
374 if (unlikely(skb_network_header(skb) < skb->head)) in wg_packet_consume_data_done()
382 skb->dev = dev; in wg_packet_consume_data_done()
391 skb->protocol = ip_tunnel_parse_protocol(skb); in wg_packet_consume_data_done()
396 INET_ECN_decapsulate(skb, PACKET_CB(skb)->ds, ip_hdr(skb)->tos); in wg_packet_consume_data_done()
400 INET_ECN_decapsulate(skb, PACKET_CB(skb)->ds, ipv6_get_dsfield(ipv6_hdr(skb))); in wg_packet_consume_data_done()
508 likely(decrypt_packet(skb, PACKET_CB(skb)->keypair)) ? in wg_packet_decrypt_worker()
[all …]
/linux/drivers/net/can/dev/
A Dskb.c51 kfree_skb(skb); in can_put_echo_skb()
56 skb = can_create_echo_skb(skb); in can_put_echo_skb()
57 if (!skb) in can_put_echo_skb()
62 skb->dev = dev; in can_put_echo_skb()
74 kfree_skb(skb); in can_put_echo_skb()
120 return skb; in __can_get_echo_skb()
139 if (!skb) in can_get_echo_skb()
142 skb_get(skb); in can_get_echo_skb()
206 return skb; in alloc_can_skb()
237 return skb; in alloc_canfd_skb()
[all …]

Completed in 130 milliseconds

12345678910>>...110