/linux-6.3-rc2/net/ipv4/netfilter/ |
A D | nf_reject_ipv4.c | 45 struct sk_buff *nskb; in nf_reject_skb_v4_tcp_reset() local 58 if (!nskb) in nf_reject_skb_v4_tcp_reset() 70 return nskb; in nf_reject_skb_v4_tcp_reset() 113 if (!nskb) in nf_reject_skb_v4_unreach() 135 return nskb; in nf_reject_skb_v4_unreach() 218 nskb->csum_start = (unsigned char *)tcph - nskb->head; in nf_reject_ip_tcphdr_put() 261 if (!nskb) in nf_send_reset() 279 if (nskb->len > dst_mtu(skb_dst(nskb))) in nf_send_reset() 299 if (dev_hard_header(nskb, nskb->dev, ntohs(nskb->protocol), in nf_send_reset() 305 ip_local_out(net, nskb->sk, nskb); in nf_send_reset() [all …]
|
/linux-6.3-rc2/net/llc/ |
A D | llc_c_ac.c | 204 if (nskb) { in llc_conn_ac_send_disc_cmd_p_set_x() 229 if (nskb) { in llc_conn_ac_send_dm_rsp_f_set_p() 255 if (nskb) { in llc_conn_ac_send_dm_rsp_f_set_1() 288 if (nskb) { in llc_conn_ac_send_frmr_rsp_f_set_x() 314 if (nskb) { in llc_conn_ac_resend_frmr_rsp_f_set_0() 344 if (nskb) { in llc_conn_ac_resend_frmr_rsp_f_set_p() 436 if (nskb) { in llc_conn_ac_resend_i_xxx_x_set_0_or_send_rr() 471 if (nskb) { in llc_conn_ac_send_rej_cmd_p_set_1() 495 if (nskb) { in llc_conn_ac_send_rej_rsp_f_set_1() 519 if (nskb) { in llc_conn_ac_send_rej_xxx_x_set_0() [all …]
|
A D | llc_station.c | 55 if (!nskb) in llc_station_ac_send_xid_r() 60 llc_pdu_init_as_xid_rsp(nskb, LLC_XID_NULL_CLASS_2, 127); in llc_station_ac_send_xid_r() 61 rc = llc_mac_hdr_init(nskb, skb->dev->dev_addr, mac_da); in llc_station_ac_send_xid_r() 64 dev_queue_xmit(nskb); in llc_station_ac_send_xid_r() 68 kfree_skb(nskb); in llc_station_ac_send_xid_r() 77 struct sk_buff *nskb; in llc_station_ac_send_test_r() local 83 if (!nskb) in llc_station_ac_send_test_r() 88 llc_pdu_init_as_test_rsp(nskb, skb); in llc_station_ac_send_test_r() 89 rc = llc_mac_hdr_init(nskb, skb->dev->dev_addr, mac_da); in llc_station_ac_send_test_r() 92 dev_queue_xmit(nskb); in llc_station_ac_send_test_r() [all …]
|
A D | llc_s_ac.c | 105 struct sk_buff *nskb; in llc_sap_action_send_xid_r() local 110 nskb = llc_alloc_frame(NULL, skb->dev, LLC_PDU_TYPE_U, in llc_sap_action_send_xid_r() 112 if (!nskb) in llc_sap_action_send_xid_r() 116 llc_pdu_init_as_xid_rsp(nskb, LLC_XID_NULL_CLASS_2, 0); in llc_sap_action_send_xid_r() 117 rc = llc_mac_hdr_init(nskb, mac_sa, mac_da); in llc_sap_action_send_xid_r() 119 rc = dev_queue_xmit(nskb); in llc_sap_action_send_xid_r() 152 struct sk_buff *nskb; in llc_sap_action_send_test_r() local 163 if (!nskb) in llc_sap_action_send_test_r() 167 llc_pdu_init_as_test_rsp(nskb, skb); in llc_sap_action_send_test_r() 168 rc = llc_mac_hdr_init(nskb, mac_sa, mac_da); in llc_sap_action_send_test_r() [all …]
|
/linux-6.3-rc2/net/ipv6/netfilter/ |
A D | nf_reject_ipv6.c | 64 struct sk_buff *nskb; in nf_reject_skb_v6_tcp_reset() local 79 if (!nskb) in nf_reject_skb_v6_tcp_reset() 90 return nskb; in nf_reject_skb_v6_tcp_reset() 99 struct sk_buff *nskb; in nf_reject_skb_v6_unreach() local 120 if (!nskb) in nf_reject_skb_v6_unreach() 145 return nskb; in nf_reject_skb_v6_unreach() 208 ip6h = ipv6_hdr(nskb); in nf_reject_ip6hdr_put() 282 struct sk_buff *nskb; in nf_send_reset6() local 332 if (!nskb) { in nf_send_reset6() 364 if (dev_hard_header(nskb, nskb->dev, ntohs(nskb->protocol), in nf_send_reset6() [all …]
|
/linux-6.3-rc2/net/bridge/netfilter/ |
A D | nft_reject_bridge.c | 24 struct sk_buff *nskb) in nft_reject_br_push_etherhdr() argument 29 skb_reset_mac_header(nskb); in nft_reject_br_push_etherhdr() 33 skb_pull(nskb, ETH_HLEN); in nft_reject_br_push_etherhdr() 50 struct sk_buff *nskb; in nft_reject_br_send_v4_tcp_reset() local 53 if (!nskb) in nft_reject_br_send_v4_tcp_reset() 66 struct sk_buff *nskb; in nft_reject_br_send_v4_unreach() local 69 if (!nskb) in nft_reject_br_send_v4_unreach() 82 struct sk_buff *nskb; in nft_reject_br_send_v6_tcp_reset() local 85 if (!nskb) in nft_reject_br_send_v6_tcp_reset() 99 struct sk_buff *nskb; in nft_reject_br_send_v6_unreach() local [all …]
|
/linux-6.3-rc2/net/netfilter/ |
A D | nft_reject_netdev.c | 21 dev_hard_header(nskb, nskb->dev, ntohs(oldskb->protocol), in nft_reject_queue_xmit() 23 nskb->len); in nft_reject_queue_xmit() 24 dev_queue_xmit(nskb); in nft_reject_queue_xmit() 32 struct sk_buff *nskb; in nft_reject_netdev_send_v4_tcp_reset() local 35 if (!nskb) in nft_reject_netdev_send_v4_tcp_reset() 46 struct sk_buff *nskb; in nft_reject_netdev_send_v4_unreach() local 49 if (!nskb) in nft_reject_netdev_send_v4_unreach() 60 struct sk_buff *nskb; in nft_reject_netdev_send_v6_tcp_reset() local 63 if (!nskb) in nft_reject_netdev_send_v6_tcp_reset() 75 struct sk_buff *nskb; in nft_reject_netdev_send_v6_unreach() local [all …]
|
A D | nf_synproxy_core.c | 426 nskb->csum_start = (unsigned char *)nth - nskb->head; in synproxy_send_tcp() 439 ip_local_out(net, nskb->sk, nskb); in synproxy_send_tcp() 462 if (!nskb) in synproxy_send_client_synack() 505 if (!nskb) in synproxy_send_server_syn() 550 if (!nskb) in synproxy_send_server_ack() 588 if (!nskb) in synproxy_send_client_ack() 851 ip6_local_out(net, nskb->sk, nskb); in synproxy_send_tcp_ipv6() 875 if (!nskb) in synproxy_send_client_synack_ipv6() 919 if (!nskb) in synproxy_send_server_syn_ipv6() 964 if (!nskb) in synproxy_send_server_ack_ipv6() [all …]
|
/linux-6.3-rc2/net/tls/ |
A D | tls_device_fallback.c | 214 skb_put(nskb, skb->len); in complete_skb() 218 nskb->sk = sk; in complete_skb() 306 struct sk_buff *nskb, in fill_sg_out() argument 364 if (!nskb) in tls_enc_skb() 382 nskb->prev = nskb; in tls_enc_skb() 388 return nskb; in tls_enc_skb() 390 kfree_skb(nskb); in tls_enc_skb() 391 nskb = NULL; in tls_enc_skb() 427 nskb = skb_get(skb); in tls_sw_fallback() 438 if (nskb) in tls_sw_fallback() [all …]
|
/linux-6.3-rc2/net/bluetooth/cmtp/ |
A D | core.c | 117 if (!nskb) { in cmtp_add_msgpart() 211 struct sk_buff *skb, *nskb; in cmtp_process_transmit() local 218 if (!nskb) { in cmtp_process_transmit() 228 cmtp_send_frame(session, nskb->data, nskb->len); in cmtp_process_transmit() 229 skb_trim(nskb, 0); in cmtp_process_transmit() 244 hdr = skb_put(nskb, 2); in cmtp_process_transmit() 250 hdr = skb_put(nskb, 3); in cmtp_process_transmit() 266 cmtp_send_frame(session, nskb->data, nskb->len); in cmtp_process_transmit() 267 skb_trim(nskb, 0); in cmtp_process_transmit() 273 cmtp_send_frame(session, nskb->data, nskb->len); in cmtp_process_transmit() [all …]
|
/linux-6.3-rc2/drivers/bluetooth/ |
A D | hci_bcsp.c | 166 struct sk_buff *nskb; in bcsp_prepare_pkt() local 219 if (!nskb) in bcsp_prepare_pkt() 267 return nskb; in bcsp_prepare_pkt() 283 struct sk_buff *nskb; in bcsp_dequeue() local 287 if (nskb) { in bcsp_dequeue() 289 return nskb; in bcsp_dequeue() 306 struct sk_buff *nskb; in bcsp_dequeue() local 310 if (nskb) { in bcsp_dequeue() 314 return nskb; in bcsp_dequeue() 334 return nskb; in bcsp_dequeue() [all …]
|
A D | hci_h5.c | 128 struct sk_buff *nskb; in h5_link_control() local 131 if (!nskb) in h5_link_control() 684 struct sk_buff *nskb; in h5_prepare_pkt() local 700 if (!nskb) in h5_prepare_pkt() 705 h5_slip_delim(nskb); in h5_prepare_pkt() 732 h5_slip_delim(nskb); in h5_prepare_pkt() 734 return nskb; in h5_prepare_pkt() 760 if (nskb) { in h5_dequeue() 762 return nskb; in h5_dequeue() 778 if (nskb) { in h5_dequeue() [all …]
|
/linux-6.3-rc2/net/dsa/ |
A D | tag.c | 59 struct sk_buff *nskb = NULL; in dsa_switch_rcv() local 81 nskb = skb; in dsa_switch_rcv() 84 nskb = cpu_dp->rcv(skb, dev); in dsa_switch_rcv() 87 if (!nskb) { in dsa_switch_rcv() 92 skb = nskb; in dsa_switch_rcv() 109 nskb = dsa_untag_bridge_pvid(skb); in dsa_switch_rcv() 110 if (!nskb) { in dsa_switch_rcv() 114 skb = nskb; in dsa_switch_rcv()
|
A D | tag_brcm.c | 190 struct sk_buff *nskb; in brcm_tag_rcv() local 193 nskb = brcm_tag_rcv_ll(skb, dev, 2); in brcm_tag_rcv() 194 if (!nskb) in brcm_tag_rcv() 195 return nskb; in brcm_tag_rcv() 199 return nskb; in brcm_tag_rcv()
|
/linux-6.3-rc2/net/bluetooth/bnep/ |
A D | core.c | 301 struct sk_buff *nskb; in bnep_rx_frame() local 367 if (!nskb) { in bnep_rx_frame() 372 skb_reserve(nskb, 2); in bnep_rx_frame() 377 __skb_put_data(nskb, &s->eh, ETH_HLEN); in bnep_rx_frame() 381 __skb_put_data(nskb, s->eh.h_dest, ETH_ALEN); in bnep_rx_frame() 382 __skb_put_data(nskb, skb_mac_header(skb), ETH_ALEN); in bnep_rx_frame() 387 __skb_put_data(nskb, skb_mac_header(skb), ETH_ALEN); in bnep_rx_frame() 388 __skb_put_data(nskb, s->eh.h_source, ETH_ALEN + 2); in bnep_rx_frame() 401 nskb->ip_summed = CHECKSUM_NONE; in bnep_rx_frame() 402 nskb->protocol = eth_type_trans(nskb, dev); in bnep_rx_frame() [all …]
|
/linux-6.3-rc2/include/linux/can/ |
A D | skb.h | 91 struct sk_buff *nskb; in can_create_echo_skb() local 93 nskb = skb_clone(skb, GFP_ATOMIC); in can_create_echo_skb() 94 if (unlikely(!nskb)) { in can_create_echo_skb() 99 can_skb_set_owner(nskb, skb->sk); in can_create_echo_skb() 101 return nskb; in can_create_echo_skb()
|
/linux-6.3-rc2/net/vmw_vsock/ |
A D | af_vsock_tap.c | 64 struct sk_buff *nskb = skb_clone(skb, GFP_ATOMIC); in __vsock_deliver_tap_skb() local 66 if (nskb) { in __vsock_deliver_tap_skb() 69 nskb->dev = dev; in __vsock_deliver_tap_skb() 70 ret = dev_queue_xmit(nskb); in __vsock_deliver_tap_skb()
|
/linux-6.3-rc2/net/sched/ |
A D | sch_etf.c | 75 static bool is_packet_valid(struct Qdisc *sch, struct sk_buff *nskb) in is_packet_valid() argument 78 ktime_t txtime = nskb->tstamp; in is_packet_valid() 79 struct sock *sk = nskb->sk; in is_packet_valid() 162 static int etf_enqueue_timesortedlist(struct sk_buff *nskb, struct Qdisc *sch, in etf_enqueue_timesortedlist() argument 167 ktime_t txtime = nskb->tstamp; in etf_enqueue_timesortedlist() 170 if (!is_packet_valid(sch, nskb)) { in etf_enqueue_timesortedlist() 171 report_sock_error(nskb, EINVAL, in etf_enqueue_timesortedlist() 173 return qdisc_drop(nskb, sch, to_free); in etf_enqueue_timesortedlist() 188 rb_link_node(&nskb->rbnode, parent, p); in etf_enqueue_timesortedlist() 189 rb_insert_color_cached(&nskb->rbnode, &q->head, leftmost); in etf_enqueue_timesortedlist() [all …]
|
/linux-6.3-rc2/drivers/isdn/mISDN/ |
A D | dsp_core.c | 283 struct sk_buff *nskb; in dsp_control_req() local 591 if (nskb) { in dsp_control_req() 594 dev_kfree_skb(nskb); in dsp_control_req() 596 dev_kfree_skb(nskb); in dsp_control_req() 741 struct sk_buff *nskb; in dsp_function() local 750 if (nskb) { in dsp_function() 753 dsp->up, nskb)) in dsp_function() 756 dev_kfree_skb(nskb); in dsp_function() 787 struct sk_buff *nskb; in dsp_function() local 796 if (nskb) { in dsp_function() [all …]
|
/linux-6.3-rc2/net/can/ |
A D | isotp.c | 207 struct sk_buff *nskb; in isotp_send_fc() local 213 if (!nskb) in isotp_send_fc() 218 kfree_skb(nskb); in isotp_send_fc() 222 can_skb_reserve(nskb); in isotp_send_fc() 226 nskb->dev = dev; in isotp_send_fc() 438 struct sk_buff *nskb; in isotp_rcv_sf() local 456 if (!nskb) in isotp_rcv_sf() 462 nskb->dev = skb->dev; in isotp_rcv_sf() 534 struct sk_buff *nskb; in isotp_rcv_cf() local 595 if (!nskb) in isotp_rcv_cf() [all …]
|
/linux-6.3-rc2/net/core/ |
A D | skbuff.c | 2165 skb = nskb; in skb_expand_head() 4215 nskb = list_skb; in skb_segment_list() 4224 nskb = tmp; in skb_segment_list() 4241 tail = nskb; in skb_segment_list() 4245 skb_push(nskb, -skb_network_offset(nskb) + offset); in skb_segment_list() 4446 nskb->truesize += skb_end_offset(nskb) - hsize; in skb_segment() 4469 segs = nskb; in skb_segment() 4470 tail = nskb; in skb_segment() 4474 skb_headers_offset_update(nskb, skb_headroom(nskb) - headroom); in skb_segment() 4571 nskb->len += nskb->data_len; in skb_segment() [all …]
|
/linux-6.3-rc2/net/x25/ |
A D | x25_dev.c | 97 struct sk_buff *nskb; in x25_lapb_receive_frame() local 103 nskb = skb_copy(skb, GFP_ATOMIC); in x25_lapb_receive_frame() 104 if (!nskb) in x25_lapb_receive_frame() 107 skb = nskb; in x25_lapb_receive_frame()
|
/linux-6.3-rc2/drivers/net/ipvlan/ |
A D | ipvlan_core.c | 230 struct sk_buff *skb, *nskb; in ipvlan_process_multicast() local 267 nskb = skb_clone(skb, GFP_ATOMIC); in ipvlan_process_multicast() 269 if (nskb) { in ipvlan_process_multicast() 271 nskb->pkt_type = pkt_type; in ipvlan_process_multicast() 272 nskb->dev = ipvlan->dev; in ipvlan_process_multicast() 274 ret = dev_forward_skb(ipvlan->dev, nskb); in ipvlan_process_multicast() 276 ret = netif_rx(nskb); in ipvlan_process_multicast() 711 struct sk_buff *nskb = skb_clone(skb, GFP_ATOMIC); in ipvlan_handle_mode_l2() local 719 if (nskb) { in ipvlan_handle_mode_l2() 720 ipvlan_skb_crossing_ns(nskb, NULL); in ipvlan_handle_mode_l2() [all …]
|
/linux-6.3-rc2/drivers/net/wireless/ath/ath9k/ |
A D | hif_usb.c | 313 struct sk_buff *nskb = NULL; in __hif_usb_tx() local 336 BUG_ON(!nskb); in __hif_usb_tx() 343 *hdr++ = cpu_to_le16(nskb->len); in __hif_usb_tx() 346 memcpy(buf, nskb->data, nskb->len); in __hif_usb_tx() 347 tx_buf->len = nskb->len + 4; in __hif_usb_tx() 614 if (!nskb) { in ath9k_hif_usb_rx_stream() 626 skb_reserve(nskb, 32); in ath9k_hif_usb_rx_stream() 633 hif_dev->remain_skb = nskb; in ath9k_hif_usb_rx_stream() 642 if (!nskb) { in ath9k_hif_usb_rx_stream() 647 skb_reserve(nskb, 32); in ath9k_hif_usb_rx_stream() [all …]
|
/linux-6.3-rc2/net/mac802154/ |
A D | tx.c | 60 struct sk_buff *nskb; in ieee802154_tx() local 64 nskb = skb_copy_expand(skb, 0, IEEE802154_FCS_LEN, in ieee802154_tx() 66 if (likely(nskb)) { in ieee802154_tx() 68 skb = nskb; in ieee802154_tx()
|