Home
last modified time | relevance | path

Searched refs:nskb (Results 1 – 25 of 96) sorted by relevance

1234

/linux/net/ipv4/netfilter/
A Dnf_reject_ipv4.c45 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()
111 if (!nskb) in nf_reject_skb_v4_unreach()
133 return nskb; in nf_reject_skb_v4_unreach()
216 nskb->csum_start = (unsigned char *)tcph - nskb->head; in nf_reject_ip_tcphdr_put()
259 if (!nskb) in nf_send_reset()
277 if (nskb->len > dst_mtu(skb_dst(nskb))) in nf_send_reset()
296 if (dev_hard_header(nskb, nskb->dev, ntohs(nskb->protocol), in nf_send_reset()
302 ip_local_out(net, nskb->sk, nskb); in nf_send_reset()
[all …]
/linux/net/llc/
A Dllc_c_ac.c204 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 Dllc_station.c55 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 Dllc_s_ac.c105 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/net/ipv6/netfilter/
A Dnf_reject_ipv6.c64 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()
363 if (dev_hard_header(nskb, nskb->dev, ntohs(nskb->protocol), in nf_send_reset6()
[all …]
/linux/net/bridge/netfilter/
A Dnft_reject_bridge.c24 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/net/netfilter/
A Dnft_reject_netdev.c20 dev_hard_header(nskb, nskb->dev, ntohs(oldskb->protocol), in nft_reject_queue_xmit()
22 nskb->len); in nft_reject_queue_xmit()
23 dev_queue_xmit(nskb); in nft_reject_queue_xmit()
31 struct sk_buff *nskb; in nft_reject_netdev_send_v4_tcp_reset() local
34 if (!nskb) in nft_reject_netdev_send_v4_tcp_reset()
45 struct sk_buff *nskb; in nft_reject_netdev_send_v4_unreach() local
48 if (!nskb) in nft_reject_netdev_send_v4_unreach()
59 struct sk_buff *nskb; in nft_reject_netdev_send_v6_tcp_reset() local
62 if (!nskb) in nft_reject_netdev_send_v6_tcp_reset()
74 struct sk_buff *nskb; in nft_reject_netdev_send_v6_unreach() local
[all …]
A Dnf_synproxy_core.c449 nskb->csum_start = (unsigned char *)nth - nskb->head; in synproxy_send_tcp()
462 ip_local_out(net, nskb->sk, nskb); in synproxy_send_tcp()
485 if (!nskb) in synproxy_send_client_synack()
528 if (!nskb) in synproxy_send_server_syn()
573 if (!nskb) in synproxy_send_server_ack()
611 if (!nskb) in synproxy_send_client_ack()
874 ip6_local_out(net, nskb->sk, nskb); in synproxy_send_tcp_ipv6()
898 if (!nskb) in synproxy_send_client_synack_ipv6()
942 if (!nskb) in synproxy_send_server_syn_ipv6()
987 if (!nskb) in synproxy_send_server_ack_ipv6()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
A Dtls_rxtx.c153 nskb->dev = skb->dev; in mlx5e_tls_complete_sync_skb()
154 skb_reset_mac_header(nskb); in mlx5e_tls_complete_sync_skb()
160 iph = ip_hdr(nskb); in mlx5e_tls_complete_sync_skb()
161 iph->tot_len = htons(nskb->len - skb_network_offset(nskb)); in mlx5e_tls_complete_sync_skb()
162 th = tcp_hdr(nskb); in mlx5e_tls_complete_sync_skb()
163 data_len = nskb->len - headln; in mlx5e_tls_complete_sync_skb()
167 mss = nskb->dev->mtu - (headln - skb_network_offset(nskb)); in mlx5e_tls_complete_sync_skb()
193 struct sk_buff *nskb; in mlx5e_tls_handle_ooo() local
231 if (unlikely(!nskb)) { in mlx5e_tls_handle_ooo()
237 skb_put(nskb, linear_len); in mlx5e_tls_handle_ooo()
[all …]
/linux/net/tls/
A Dtls_device_fallback.c202 skb_put(nskb, skb->len); in complete_skb()
206 nskb->sk = sk; in complete_skb()
294 struct sk_buff *nskb, in fill_sg_out() argument
342 if (!nskb) in tls_enc_skb()
360 nskb->prev = nskb; in tls_enc_skb()
366 return nskb; in tls_enc_skb()
368 kfree_skb(nskb); in tls_enc_skb()
369 nskb = NULL; in tls_enc_skb()
405 nskb = skb_get(skb); in tls_sw_fallback()
416 if (nskb) in tls_sw_fallback()
[all …]
/linux/net/bluetooth/cmtp/
A Dcore.c117 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/drivers/bluetooth/
A Dhci_bcsp.c166 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 Dhci_h5.c128 struct sk_buff *nskb; in h5_link_control() local
131 if (!nskb) in h5_link_control()
682 struct sk_buff *nskb; in h5_prepare_pkt() local
698 if (!nskb) in h5_prepare_pkt()
703 h5_slip_delim(nskb); in h5_prepare_pkt()
730 h5_slip_delim(nskb); in h5_prepare_pkt()
732 return nskb; in h5_prepare_pkt()
758 if (nskb) { in h5_dequeue()
760 return nskb; in h5_dequeue()
776 if (nskb) { in h5_dequeue()
[all …]
/linux/net/bluetooth/bnep/
A Dcore.c301 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/drivers/net/wireless/ath/ath9k/
A Dhif_usb.c313 struct sk_buff *nskb = NULL; in __hif_usb_tx() local
336 BUG_ON(!nskb); in __hif_usb_tx()
346 memcpy(buf, nskb->data, nskb->len); in __hif_usb_tx()
608 if (!nskb) { in ath9k_hif_usb_rx_stream()
614 skb_reserve(nskb, 32); in ath9k_hif_usb_rx_stream()
630 if (!nskb) { in ath9k_hif_usb_rx_stream()
635 skb_reserve(nskb, 32); in ath9k_hif_usb_rx_stream()
639 skb_put(nskb, pkt_len); in ath9k_hif_usb_rx_stream()
705 struct sk_buff *nskb; in ath9k_hif_usb_reg_in_cb() local
738 if (!nskb) { in ath9k_hif_usb_reg_in_cb()
[all …]
/linux/include/linux/can/
A Dskb.h85 struct sk_buff *nskb; in can_create_echo_skb() local
87 nskb = skb_clone(skb, GFP_ATOMIC); in can_create_echo_skb()
88 if (unlikely(!nskb)) { in can_create_echo_skb()
93 can_skb_set_owner(nskb, skb->sk); in can_create_echo_skb()
95 return nskb; in can_create_echo_skb()
/linux/net/sched/
A Dsch_etf.c75 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/net/can/
A Disotp.c183 struct sk_buff *nskb; in isotp_send_fc() local
189 if (!nskb) in isotp_send_fc()
194 kfree_skb(nskb); in isotp_send_fc()
198 can_skb_reserve(nskb); in isotp_send_fc()
202 nskb->dev = dev; in isotp_send_fc()
410 struct sk_buff *nskb; in isotp_rcv_sf() local
428 if (!nskb) in isotp_rcv_sf()
434 nskb->dev = skb->dev; in isotp_rcv_sf()
506 struct sk_buff *nskb; in isotp_rcv_cf() local
567 if (!nskb) in isotp_rcv_cf()
[all …]
/linux/net/vmw_vsock/
A Daf_vsock_tap.c64 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/drivers/isdn/mISDN/
A Ddsp_core.c283 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/net/core/
A Dskbuff.c1826 skb = nskb; in skb_expand_head()
3853 nskb = list_skb; in skb_segment_list()
3861 nskb = tmp; in skb_segment_list()
3878 tail = nskb; in skb_segment_list()
3883 skb_push(nskb, -skb_network_offset(nskb) + offset); in skb_segment_list()
4107 nskb->truesize += skb_end_offset(nskb) - hsize; in skb_segment()
4130 segs = nskb; in skb_segment()
4131 tail = nskb; in skb_segment()
4135 skb_headers_offset_update(nskb, skb_headroom(nskb) - headroom); in skb_segment()
4233 nskb->len += nskb->data_len; in skb_segment()
[all …]
/linux/net/mac802154/
A Dtx.c58 struct sk_buff *nskb; in ieee802154_tx() local
62 nskb = skb_copy_expand(skb, 0, IEEE802154_FCS_LEN, in ieee802154_tx()
64 if (likely(nskb)) { in ieee802154_tx()
66 skb = nskb; in ieee802154_tx()
/linux/net/dsa/
A Dtag_brcm.c186 struct sk_buff *nskb; in brcm_tag_rcv() local
189 nskb = brcm_tag_rcv_ll(skb, dev, 2); in brcm_tag_rcv()
190 if (!nskb) in brcm_tag_rcv()
191 return nskb; in brcm_tag_rcv()
195 return nskb; in brcm_tag_rcv()
A Ddsa.c229 struct sk_buff *nskb = NULL; in dsa_switch_rcv() local
241 nskb = cpu_dp->rcv(skb, dev); in dsa_switch_rcv()
242 if (!nskb) { in dsa_switch_rcv()
247 skb = nskb; in dsa_switch_rcv()
264 nskb = dsa_untag_bridge_pvid(skb); in dsa_switch_rcv()
265 if (!nskb) { in dsa_switch_rcv()
269 skb = nskb; in dsa_switch_rcv()
/linux/net/x25/
A Dx25_dev.c97 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()

Completed in 65 milliseconds

1234