Home
last modified time | relevance | path

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

123

/linux-3.4.99/net/llc/
Dllc_c_ac.c202 struct sk_buff *nskb = llc_alloc_frame(sk, llc->dev, LLC_PDU_TYPE_U, 0); in llc_conn_ac_send_disc_cmd_p_set_x() local
204 if (nskb) { in llc_conn_ac_send_disc_cmd_p_set_x()
207 llc_pdu_header_init(nskb, LLC_PDU_TYPE_U, sap->laddr.lsap, in llc_conn_ac_send_disc_cmd_p_set_x()
209 llc_pdu_init_as_disc_cmd(nskb, 1); in llc_conn_ac_send_disc_cmd_p_set_x()
210 rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, llc->daddr.mac); in llc_conn_ac_send_disc_cmd_p_set_x()
213 llc_conn_send_pdu(sk, nskb); in llc_conn_ac_send_disc_cmd_p_set_x()
219 kfree_skb(nskb); in llc_conn_ac_send_disc_cmd_p_set_x()
227 struct sk_buff *nskb = llc_alloc_frame(sk, llc->dev, LLC_PDU_TYPE_U, 0); in llc_conn_ac_send_dm_rsp_f_set_p() local
229 if (nskb) { in llc_conn_ac_send_dm_rsp_f_set_p()
234 llc_pdu_header_init(nskb, LLC_PDU_TYPE_U, sap->laddr.lsap, in llc_conn_ac_send_dm_rsp_f_set_p()
[all …]
Dllc_s_ac.c101 struct sk_buff *nskb; in llc_sap_action_send_xid_r() local
106 nskb = llc_alloc_frame(NULL, skb->dev, LLC_PDU_TYPE_U, in llc_sap_action_send_xid_r()
108 if (!nskb) in llc_sap_action_send_xid_r()
110 llc_pdu_header_init(nskb, LLC_PDU_TYPE_U, sap->laddr.lsap, dsap, in llc_sap_action_send_xid_r()
112 llc_pdu_init_as_xid_rsp(nskb, LLC_XID_NULL_CLASS_2, 0); in llc_sap_action_send_xid_r()
113 rc = llc_mac_hdr_init(nskb, mac_sa, mac_da); in llc_sap_action_send_xid_r()
115 rc = dev_queue_xmit(nskb); in llc_sap_action_send_xid_r()
146 struct sk_buff *nskb; in llc_sap_action_send_test_r() local
156 nskb = llc_alloc_frame(NULL, skb->dev, LLC_PDU_TYPE_U, data_size); in llc_sap_action_send_test_r()
157 if (!nskb) in llc_sap_action_send_test_r()
[all …]
Dllc_station.c257 struct sk_buff *nskb = llc_alloc_frame(NULL, skb->dev, LLC_PDU_TYPE_U, in llc_station_ac_send_null_dsap_xid_c() local
260 if (!nskb) in llc_station_ac_send_null_dsap_xid_c()
262 llc_pdu_header_init(nskb, LLC_PDU_TYPE_U, 0, 0, LLC_PDU_CMD); in llc_station_ac_send_null_dsap_xid_c()
263 llc_pdu_init_as_xid_cmd(nskb, LLC_XID_NULL_CLASS_2, 127); in llc_station_ac_send_null_dsap_xid_c()
264 rc = llc_mac_hdr_init(nskb, skb->dev->dev_addr, skb->dev->dev_addr); in llc_station_ac_send_null_dsap_xid_c()
267 llc_station_send_pdu(nskb); in llc_station_ac_send_null_dsap_xid_c()
279 struct sk_buff *nskb = llc_alloc_frame(NULL, skb->dev, LLC_PDU_TYPE_U, in llc_station_ac_send_xid_r() local
282 if (!nskb) in llc_station_ac_send_xid_r()
287 llc_pdu_header_init(nskb, LLC_PDU_TYPE_U, 0, dsap, LLC_PDU_RSP); in llc_station_ac_send_xid_r()
288 llc_pdu_init_as_xid_rsp(nskb, LLC_XID_NULL_CLASS_2, 127); in llc_station_ac_send_xid_r()
[all …]
/linux-3.4.99/net/ipv4/netfilter/
Dipt_REJECT.c38 struct sk_buff *nskb; in send_reset() local
65 nskb = alloc_skb(sizeof(struct iphdr) + sizeof(struct tcphdr) + in send_reset()
67 if (!nskb) in send_reset()
70 skb_reserve(nskb, LL_MAX_HEADER); in send_reset()
72 skb_reset_network_header(nskb); in send_reset()
73 niph = (struct iphdr *)skb_put(nskb, sizeof(struct iphdr)); in send_reset()
84 tcph = (struct tcphdr *)skb_put(nskb, sizeof(struct tcphdr)); in send_reset()
102 nskb->ip_summed = CHECKSUM_PARTIAL; in send_reset()
103 nskb->csum_start = (unsigned char *)tcph - nskb->head; in send_reset()
104 nskb->csum_offset = offsetof(struct tcphdr, check); in send_reset()
[all …]
Dip_queue.c231 struct sk_buff *nskb; in ipq_enqueue_packet() local
236 nskb = ipq_build_packet_message(entry, &status); in ipq_enqueue_packet()
237 if (nskb == NULL) in ipq_enqueue_packet()
256 status = netlink_unicast(ipqnl, nskb, peer_pid, MSG_DONTWAIT); in ipq_enqueue_packet()
268 kfree_skb(nskb); in ipq_enqueue_packet()
280 struct sk_buff *nskb; in ipq_mangle_ipv4() local
292 nskb = skb_copy_expand(e->skb, skb_headroom(e->skb), in ipq_mangle_ipv4()
294 if (!nskb) { in ipq_mangle_ipv4()
300 e->skb = nskb; in ipq_mangle_ipv4()
/linux-3.4.99/net/dsa/
Dtag_trailer.c20 struct sk_buff *nskb; in trailer_xmit() local
37 nskb = alloc_skb(NET_IP_ALIGN + skb->len + padlen + 4, GFP_ATOMIC); in trailer_xmit()
38 if (nskb == NULL) { in trailer_xmit()
42 skb_reserve(nskb, NET_IP_ALIGN); in trailer_xmit()
44 skb_reset_mac_header(nskb); in trailer_xmit()
45 skb_set_network_header(nskb, skb_network_header(skb) - skb->head); in trailer_xmit()
46 skb_set_transport_header(nskb, skb_transport_header(skb) - skb->head); in trailer_xmit()
47 skb_copy_and_csum_dev(skb, skb_put(nskb, skb->len)); in trailer_xmit()
51 u8 *pad = skb_put(nskb, padlen); in trailer_xmit()
55 trailer = skb_put(nskb, 4); in trailer_xmit()
[all …]
/linux-3.4.99/net/bluetooth/cmtp/
Dcore.c108 struct sk_buff *skb = session->reassembly[id], *nskb; in cmtp_add_msgpart() local
115 nskb = alloc_skb(size, GFP_ATOMIC); in cmtp_add_msgpart()
116 if (!nskb) { in cmtp_add_msgpart()
122 skb_copy_from_linear_data(skb, skb_put(nskb, skb->len), skb->len); in cmtp_add_msgpart()
124 memcpy(skb_put(nskb, count), buf, count); in cmtp_add_msgpart()
126 session->reassembly[id] = nskb; in cmtp_add_msgpart()
211 struct sk_buff *skb, *nskb; in cmtp_process_transmit() local
217 nskb = alloc_skb(session->mtu, GFP_ATOMIC); in cmtp_process_transmit()
218 if (!nskb) { in cmtp_process_transmit()
226 tail = session->mtu - nskb->len; in cmtp_process_transmit()
[all …]
/linux-3.4.99/net/ipv6/netfilter/
Dip6t_REJECT.c42 struct sk_buff *nskb; in send_reset() local
112 nskb = alloc_skb(hh_len + 15 + dst->header_len + sizeof(struct ipv6hdr) in send_reset()
116 if (!nskb) { in send_reset()
123 skb_dst_set(nskb, dst); in send_reset()
125 skb_reserve(nskb, hh_len + dst->header_len); in send_reset()
127 skb_put(nskb, sizeof(struct ipv6hdr)); in send_reset()
128 skb_reset_network_header(nskb); in send_reset()
129 ip6h = ipv6_hdr(nskb); in send_reset()
136 tcph = (struct tcphdr *)skb_put(nskb, sizeof(struct tcphdr)); in send_reset()
162 tcph->check = csum_ipv6_magic(&ipv6_hdr(nskb)->saddr, in send_reset()
[all …]
Dip6_queue.c231 struct sk_buff *nskb; in ipq_enqueue_packet() local
236 nskb = ipq_build_packet_message(entry, &status); in ipq_enqueue_packet()
237 if (nskb == NULL) in ipq_enqueue_packet()
256 status = netlink_unicast(ipqnl, nskb, peer_pid, MSG_DONTWAIT); in ipq_enqueue_packet()
268 kfree_skb(nskb); in ipq_enqueue_packet()
280 struct sk_buff *nskb; in ipq_mangle_ipv6() local
292 nskb = skb_copy_expand(e->skb, skb_headroom(e->skb), in ipq_mangle_ipv6()
294 if (!nskb) { in ipq_mangle_ipv6()
300 e->skb = nskb; in ipq_mangle_ipv6()
/linux-3.4.99/net/sctp/
Doutput.c366 struct sk_buff *nskb; in sctp_packet_transmit() local
387 nskb = alloc_skb(packet->size + LL_MAX_HEADER, GFP_ATOMIC); in sctp_packet_transmit()
388 if (!nskb) in sctp_packet_transmit()
392 skb_reserve(nskb, packet->overhead + LL_MAX_HEADER); in sctp_packet_transmit()
397 sctp_packet_set_owner_w(nskb, sk); in sctp_packet_transmit()
406 skb_dst_set(nskb, dst); in sctp_packet_transmit()
411 sh = (struct sctphdr *)skb_push(nskb, sizeof(struct sctphdr)); in sctp_packet_transmit()
412 skb_reset_transport_header(nskb); in sctp_packet_transmit()
473 auth = skb_tail_pointer(nskb); in sctp_packet_transmit()
476 memcpy(skb_put(nskb, chunk->skb->len), in sctp_packet_transmit()
[all …]
/linux-3.4.99/drivers/bluetooth/
Dhci_bcsp.c182 struct sk_buff *nskb; in bcsp_prepare_pkt() local
232 nskb = alloc_skb((len + 6) * 2 + 2, GFP_ATOMIC); in bcsp_prepare_pkt()
233 if (!nskb) in bcsp_prepare_pkt()
236 bt_cb(nskb)->pkt_type = pkt_type; in bcsp_prepare_pkt()
238 bcsp_slip_msgdelim(nskb); in bcsp_prepare_pkt()
259 bcsp_slip_one_byte(nskb, hdr[i]); in bcsp_prepare_pkt()
267 bcsp_slip_one_byte(nskb, data[i]); in bcsp_prepare_pkt()
276 bcsp_slip_one_byte(nskb, (u8) ((bcsp_txmsg_crc >> 8) & 0x00ff)); in bcsp_prepare_pkt()
277 bcsp_slip_one_byte(nskb, (u8) (bcsp_txmsg_crc & 0x00ff)); in bcsp_prepare_pkt()
280 bcsp_slip_msgdelim(nskb); in bcsp_prepare_pkt()
[all …]
Dbfusb.c472 struct sk_buff *nskb; in bfusb_send_frame() local
506 nskb = bt_skb_alloc(count + 32, GFP_ATOMIC); in bfusb_send_frame()
507 if (!nskb) { in bfusb_send_frame()
512 nskb->dev = (void *) data; in bfusb_send_frame()
521 memcpy(skb_put(nskb, 3), buf, 3); in bfusb_send_frame()
522 skb_copy_from_linear_data_offset(skb, sent, skb_put(nskb, size), size); in bfusb_send_frame()
529 if ((nskb->len % data->bulk_pkt_size) == 0) { in bfusb_send_frame()
532 memcpy(skb_put(nskb, 2), buf, 2); in bfusb_send_frame()
537 skb_queue_tail(&data->transmit_q, nskb); in bfusb_send_frame()
/linux-3.4.99/net/bluetooth/bnep/
Dcore.c312 struct sk_buff *nskb; in bnep_rx_frame() local
351 nskb = alloc_skb(2 + ETH_HLEN + skb->len, GFP_KERNEL); in bnep_rx_frame()
352 if (!nskb) { in bnep_rx_frame()
357 skb_reserve(nskb, 2); in bnep_rx_frame()
362 memcpy(__skb_put(nskb, ETH_HLEN), &s->eh, ETH_HLEN); in bnep_rx_frame()
366 memcpy(__skb_put(nskb, ETH_ALEN), s->eh.h_dest, ETH_ALEN); in bnep_rx_frame()
367 memcpy(__skb_put(nskb, ETH_ALEN), skb_mac_header(skb), ETH_ALEN); in bnep_rx_frame()
368 put_unaligned(s->eh.h_proto, (__be16 *) __skb_put(nskb, 2)); in bnep_rx_frame()
372 memcpy(__skb_put(nskb, ETH_ALEN), skb_mac_header(skb), in bnep_rx_frame()
374 memcpy(__skb_put(nskb, ETH_ALEN + 2), s->eh.h_source, in bnep_rx_frame()
[all …]
/linux-3.4.99/net/core/
Dskbuff.c2699 struct sk_buff *nskb; in skb_segment() local
2718 nskb = skb_clone(fskb, GFP_ATOMIC); in skb_segment()
2721 if (unlikely(!nskb)) in skb_segment()
2724 hsize = skb_end_offset(nskb); in skb_segment()
2725 if (skb_cow_head(nskb, doffset + headroom)) { in skb_segment()
2726 kfree_skb(nskb); in skb_segment()
2730 nskb->truesize += skb_end_offset(nskb) - hsize; in skb_segment()
2731 skb_release_head_state(nskb); in skb_segment()
2732 __skb_push(nskb, doffset); in skb_segment()
2734 nskb = alloc_skb(hsize + doffset + headroom, in skb_segment()
[all …]
/linux-3.4.99/drivers/net/wireless/ath/ath9k/
Dhif_usb.c301 struct sk_buff *nskb = NULL; in __hif_usb_tx() local
321 nskb = __skb_dequeue(&hif_dev->tx.tx_skb_queue); in __hif_usb_tx()
324 BUG_ON(!nskb); in __hif_usb_tx()
331 *hdr++ = cpu_to_le16(nskb->len); in __hif_usb_tx()
334 memcpy(buf, nskb->data, nskb->len); in __hif_usb_tx()
335 tx_buf->len = nskb->len + 4; in __hif_usb_tx()
343 __skb_queue_tail(&tx_buf->skb_queue, nskb); in __hif_usb_tx()
520 struct sk_buff *nskb, *skb_pool[MAX_PKT_NUM_IN_TRANSFER]; in ath9k_hif_usb_rx_stream() local
586 nskb = __dev_alloc_skb(pkt_len + 32, GFP_ATOMIC); in ath9k_hif_usb_rx_stream()
587 if (!nskb) { in ath9k_hif_usb_rx_stream()
[all …]
/linux-3.4.99/net/bluetooth/
Dhci_sock.c100 struct sk_buff *nskb; in hci_send_to_sock() local
145 nskb = skb_clone(skb_copy, GFP_ATOMIC); in hci_send_to_sock()
146 if (!nskb) in hci_send_to_sock()
149 if (sock_queue_rcv_skb(sk, nskb)) in hci_send_to_sock()
150 kfree_skb(nskb); in hci_send_to_sock()
169 struct sk_buff *nskb; in hci_send_to_control() local
181 nskb = skb_clone(skb, GFP_ATOMIC); in hci_send_to_control()
182 if (!nskb) in hci_send_to_control()
185 if (sock_queue_rcv_skb(sk, nskb)) in hci_send_to_control()
186 kfree_skb(nskb); in hci_send_to_control()
[all …]
/linux-3.4.99/drivers/isdn/mISDN/
Ddsp_core.c284 struct sk_buff *nskb; in dsp_control_req() local
588 nskb = _alloc_mISDN_skb(PH_CONTROL_IND, MISDN_ID_ANY, in dsp_control_req()
590 if (nskb) { in dsp_control_req()
592 if (dsp->up->send(dsp->up, nskb)) in dsp_control_req()
593 dev_kfree_skb(nskb); in dsp_control_req()
595 dev_kfree_skb(nskb); in dsp_control_req()
740 struct sk_buff *nskb; in dsp_function() local
746 nskb = _alloc_mISDN_skb(PH_CONTROL_IND, in dsp_function()
749 if (nskb) { in dsp_function()
752 dsp->up, nskb)) in dsp_function()
[all …]
Ddsp_cmx.c1310 struct sk_buff *nskb, *txskb; in dsp_cmx_send_member() local
1349 nskb = mI_alloc_skb(len + preload, GFP_ATOMIC); in dsp_cmx_send_member()
1350 if (!nskb) { in dsp_cmx_send_member()
1356 hh = mISDN_HEAD_P(nskb); in dsp_cmx_send_member()
1365 d = skb_put(nskb, preload + len); /* result */ in dsp_cmx_send_member()
1582 skb_queue_tail(&dsp->sendq, nskb); in dsp_cmx_send_member()
1596 memcpy(skb_put(txskb, len), nskb->data + preload, in dsp_cmx_send_member()
1607 dsp_change_volume(nskb, dsp->tx_volume); in dsp_cmx_send_member()
1610 dsp_pipeline_process_tx(&dsp->pipeline, nskb->data, in dsp_cmx_send_member()
1611 nskb->len); in dsp_cmx_send_member()
[all …]
Ddsp_tones.c440 struct sk_buff *nskb; in dsp_tone_hw_message() local
443 nskb = _alloc_mISDN_skb(PH_CONTROL_REQ, in dsp_tone_hw_message()
446 if (nskb) { in dsp_tone_hw_message()
448 if (dsp->ch.recv(dsp->ch.peer, nskb)) in dsp_tone_hw_message()
449 dev_kfree_skb(nskb); in dsp_tone_hw_message()
451 dev_kfree_skb(nskb); in dsp_tone_hw_message()
/linux-3.4.99/drivers/isdn/i4l/
Disdn_v110.c463 struct sk_buff *nskb; in isdn_v110_encode() local
483 if (!(nskb = dev_alloc_skb(size + v->skbres + sizeof(int)))) { in isdn_v110_encode()
487 skb_reserve(nskb, v->skbres + sizeof(int)); in isdn_v110_encode()
489 memcpy(skb_put(nskb, v->framelen), v->OnlineFrame, v->framelen); in isdn_v110_encode()
490 *((int *)skb_push(nskb, sizeof(int))) = 0; in isdn_v110_encode()
491 return nskb; in isdn_v110_encode()
495 rbuf = skb_put(nskb, size); in isdn_v110_encode()
512 skb_trim(nskb, olen); in isdn_v110_encode()
513 *((int *)skb_push(nskb, sizeof(int))) = rlen; in isdn_v110_encode()
514 return nskb; in isdn_v110_encode()
/linux-3.4.99/net/x25/
Dx25_dev.c100 struct sk_buff *nskb; in x25_lapb_receive_frame() local
106 nskb = skb_copy(skb, GFP_ATOMIC); in x25_lapb_receive_frame()
107 if (!nskb) in x25_lapb_receive_frame()
110 skb = nskb; in x25_lapb_receive_frame()
/linux-3.4.99/arch/ia64/hp/sim/
Dsimeth.c403 struct sk_buff *nskb; in make_new_skb() local
409 nskb = dev_alloc_skb(SIMETH_FRAME_SIZE + 2); in make_new_skb()
410 if ( nskb == NULL ) { in make_new_skb()
415 skb_reserve(nskb, 2); /* Align IP on 16 byte boundaries */ in make_new_skb()
417 skb_put(nskb,SIMETH_FRAME_SIZE); in make_new_skb()
419 return nskb; in make_new_skb()
/linux-3.4.99/net/xfrm/
Dxfrm_output.c156 struct sk_buff *nskb = segs->next; in xfrm_output_gso() local
163 while ((segs = nskb)) { in xfrm_output_gso()
164 nskb = segs->next; in xfrm_output_gso()
171 segs = nskb; in xfrm_output_gso()
/linux-3.4.99/net/ipv4/
Dtcp_output.c1619 struct sk_buff *skb, *nskb, *next; in tcp_mtu_probe() local
1664 if ((nskb = sk_stream_alloc_skb(sk, probe_size, GFP_ATOMIC)) == NULL) in tcp_mtu_probe()
1666 sk->sk_wmem_queued += nskb->truesize; in tcp_mtu_probe()
1667 sk_mem_charge(sk, nskb->truesize); in tcp_mtu_probe()
1671 TCP_SKB_CB(nskb)->seq = TCP_SKB_CB(skb)->seq; in tcp_mtu_probe()
1672 TCP_SKB_CB(nskb)->end_seq = TCP_SKB_CB(skb)->seq + probe_size; in tcp_mtu_probe()
1673 TCP_SKB_CB(nskb)->tcp_flags = TCPHDR_ACK; in tcp_mtu_probe()
1674 TCP_SKB_CB(nskb)->sacked = 0; in tcp_mtu_probe()
1675 nskb->csum = 0; in tcp_mtu_probe()
1676 nskb->ip_summed = skb->ip_summed; in tcp_mtu_probe()
[all …]
/linux-3.4.99/drivers/net/irda/
Dstir4200.c319 struct sk_buff *skb, *nskb; in fir_eof() local
341 nskb = dev_alloc_skb(len + 1); in fir_eof()
342 if (unlikely(!nskb)) { in fir_eof()
346 skb_reserve(nskb, 1); in fir_eof()
347 skb = nskb; in fir_eof()
348 skb_copy_to_linear_data(nskb, rx_buff->data, len); in fir_eof()
350 nskb = dev_alloc_skb(rx_buff->truesize); in fir_eof()
351 if (unlikely(!nskb)) { in fir_eof()
355 skb_reserve(nskb, 1); in fir_eof()
357 rx_buff->skb = nskb; in fir_eof()
[all …]

123