Home
last modified time | relevance | path

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

12

/linux-2.4.37.9/net/ipv4/netfilter/
Dipt_REJECT.c69 struct sk_buff *nskb; in send_reset() local
106 nskb = skb_copy_expand(oldskb, hh_len, skb_tailroom(oldskb), in send_reset()
108 if (!nskb) { in send_reset()
113 dst_release(nskb->dst); in send_reset()
114 nskb->dst = &rt->u.dst; in send_reset()
117 nf_reset(nskb); in send_reset()
118 nskb->nfcache = 0; in send_reset()
119 nskb->nfmark = 0; in send_reset()
121 tcph = (struct tcphdr *)((u_int32_t*)nskb->nh.iph + nskb->nh.iph->ihl); in send_reset()
124 tmp_addr = nskb->nh.iph->saddr; in send_reset()
[all …]
Dipt_MIRROR.c127 struct sk_buff *nskb; in ipt_mirror_target() local
153 nskb = skb_copy_expand(*pskb, hh_len, skb_tailroom(*pskb), GFP_ATOMIC); in ipt_mirror_target()
154 if (nskb == NULL) { in ipt_mirror_target()
159 dst_release(nskb->dst); in ipt_mirror_target()
160 nskb->dst = &rt->u.dst; in ipt_mirror_target()
162 ip_rewrite(nskb); in ipt_mirror_target()
166 ip_direct_send(nskb); in ipt_mirror_target()
Darpt_mangle.c16 struct sk_buff *nskb; in target() local
18 nskb = skb_copy(*pskb, GFP_ATOMIC); in target()
19 if (!nskb) in target()
22 skb_set_owner_w(nskb, (*pskb)->sk); in target()
24 *pskb = nskb; in target()
Dipt_ECN.c35 struct sk_buff *nskb = skb_copy(*pskb, GFP_ATOMIC); in set_ect_ip() local
36 if (!nskb) in set_ect_ip()
39 *pskb = nskb; in set_ect_ip()
69 struct sk_buff *nskb = skb_copy(*pskb, GFP_ATOMIC); in set_ect_tcp() local
70 if (!nskb) in set_ect_tcp()
73 *pskb = nskb; in set_ect_tcp()
Dipt_TOS.c27 struct sk_buff *nskb = skb_copy(*pskb, GFP_ATOMIC); in target() local
28 if (!nskb) in target()
31 *pskb = nskb; in target()
Dipt_DSCP.c43 struct sk_buff *nskb = skb_copy(*pskb, GFP_ATOMIC); in target() local
44 if (!nskb) in target()
47 *pskb = nskb; in target()
Dip_nat_helper.c159 struct sk_buff *nskb = skb_copy(*skb, GFP_ATOMIC); in ip_nat_mangle_tcp_packet() local
160 if (!nskb) { in ip_nat_mangle_tcp_packet()
168 skb_set_owner_w(nskb, (*skb)->sk); in ip_nat_mangle_tcp_packet()
170 *skb = nskb; in ip_nat_mangle_tcp_packet()
260 struct sk_buff *nskb = skb_copy(*skb, GFP_ATOMIC); in ip_nat_mangle_udp_packet() local
261 if (!nskb) { in ip_nat_mangle_udp_packet()
269 skb_set_owner_w(nskb, (*skb)->sk); in ip_nat_mangle_udp_packet()
271 *skb = nskb; in ip_nat_mangle_udp_packet()
Dip_fw_compat.c96 struct sk_buff *nskb = skb_copy(*pskb, GFP_ATOMIC); in fw_in() local
97 if (!nskb) in fw_in()
100 *pskb = nskb; in fw_in()
Dipt_TCPMSS.c55 struct sk_buff *nskb = skb_copy(*pskb, GFP_ATOMIC); in ipt_tcpmss_target() local
56 if (!nskb) in ipt_tcpmss_target()
59 *pskb = nskb; in ipt_tcpmss_target()
Dip_queue.c275 struct sk_buff *nskb; in ipq_enqueue_packet() local
298 nskb = ipq_build_packet_message(entry, &status); in ipq_enqueue_packet()
299 if (nskb == NULL) in ipq_enqueue_packet()
308 status = netlink_unicast(ipqnl, nskb, peer_pid, MSG_DONTWAIT); in ipq_enqueue_packet()
320 kfree_skb(nskb); in ipq_enqueue_packet()
/linux-2.4.37.9/drivers/bluetooth/
Dhci_bcsp.c174 struct sk_buff *nskb; in bcsp_prepare_pkt() local
213 nskb = alloc_skb((len + 6) * 2 + 2, GFP_ATOMIC); in bcsp_prepare_pkt()
214 if (!nskb) in bcsp_prepare_pkt()
217 nskb->pkt_type = pkt_type; in bcsp_prepare_pkt()
219 bcsp_slip_msgdelim(nskb); in bcsp_prepare_pkt()
241 bcsp_slip_one_byte(nskb, hdr[i]); in bcsp_prepare_pkt()
249 bcsp_slip_one_byte(nskb, data[i]); in bcsp_prepare_pkt()
258 bcsp_slip_one_byte(nskb, (u8) ((bcsp_txmsg_crc >> 8) & 0x00ff)); in bcsp_prepare_pkt()
259 bcsp_slip_one_byte(nskb, (u8) (bcsp_txmsg_crc & 0x00ff)); in bcsp_prepare_pkt()
262 bcsp_slip_msgdelim(nskb); in bcsp_prepare_pkt()
[all …]
Dbfusb.c487 struct sk_buff *nskb; in bfusb_send_frame() local
521 if (!(nskb = bluez_skb_alloc(count + 32, GFP_ATOMIC))) { in bfusb_send_frame()
526 nskb->dev = (void *) bfusb; in bfusb_send_frame()
535 memcpy(skb_put(nskb, 3), buf, 3); in bfusb_send_frame()
536 memcpy(skb_put(nskb, size), skb->data + sent, size); in bfusb_send_frame()
543 if ((nskb->len % bfusb->bulk_pkt_size) == 0) { in bfusb_send_frame()
546 memcpy(skb_put(nskb, 2), buf, 2); in bfusb_send_frame()
551 skb_queue_tail(&bfusb->transmit_q, nskb); in bfusb_send_frame()
/linux-2.4.37.9/net/bluetooth/cmtp/
Dcore.c114 struct sk_buff *skb = session->reassembly[id], *nskb; in cmtp_add_msgpart() local
121 if (!(nskb = alloc_skb(size, GFP_ATOMIC))) { in cmtp_add_msgpart()
127 memcpy(skb_put(nskb, skb->len), skb->data, skb->len); in cmtp_add_msgpart()
129 memcpy(skb_put(nskb, count), buf, count); in cmtp_add_msgpart()
131 session->reassembly[id] = nskb; in cmtp_add_msgpart()
221 struct sk_buff *skb, *nskb; in cmtp_process_transmit() local
227 if (!(nskb = alloc_skb(session->mtu, GFP_ATOMIC))) { in cmtp_process_transmit()
235 if ((tail = (session->mtu - nskb->len)) < 5) { in cmtp_process_transmit()
236 cmtp_send_frame(session, nskb->data, nskb->len); in cmtp_process_transmit()
237 skb_trim(nskb, 0); in cmtp_process_transmit()
[all …]
/linux-2.4.37.9/net/sctp/
Doutput.c297 struct sk_buff *nskb; in sctp_packet_transmit() local
316 nskb = dev_alloc_skb(packet->size); in sctp_packet_transmit()
317 if (!nskb) in sctp_packet_transmit()
321 skb_reserve(nskb, packet->overhead); in sctp_packet_transmit()
326 skb_set_owner_w(nskb, sk); in sctp_packet_transmit()
329 sh = (struct sctphdr *)skb_push(nskb, sizeof(struct sctphdr)); in sctp_packet_transmit()
402 crc32 = sctp_update_copy_cksum(skb_put(nskb, chunk->skb->len), in sctp_packet_transmit()
446 INET_ECN_xmit(nskb->sk); in sctp_packet_transmit()
485 nskb->dst = dst_clone(tp->dst); in sctp_packet_transmit()
486 if (!nskb->dst) in sctp_packet_transmit()
[all …]
/linux-2.4.37.9/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.raw, ETH_ALEN); in bnep_rx_frame()
368 put_unaligned(s->eh.h_proto, (u16 *) __skb_put(nskb, 2)); in bnep_rx_frame()
372 memcpy(__skb_put(nskb, ETH_ALEN), skb->mac.raw, ETH_ALEN); in bnep_rx_frame()
373 memcpy(__skb_put(nskb, ETH_ALEN + 2), s->eh.h_source, ETH_ALEN + 2); in bnep_rx_frame()
[all …]
/linux-2.4.37.9/drivers/isdn/
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-2.4.37.9/arch/ia64/drivers/
Dsimeth.c417 struct sk_buff *nskb; in make_new_skb() local
423 nskb = dev_alloc_skb(SIMETH_FRAME_SIZE + 2); in make_new_skb()
424 if ( nskb == NULL ) { in make_new_skb()
428 nskb->dev = dev; in make_new_skb()
430 skb_reserve(nskb, 2); /* Align IP on 16 byte boundaries */ in make_new_skb()
432 skb_put(nskb,SIMETH_FRAME_SIZE); in make_new_skb()
434 return nskb; in make_new_skb()
/linux-2.4.37.9/net/bluetooth/
Dhci_sock.c100 struct sk_buff *nskb; in hci_send_to_sock() local
128 if (!(nskb = skb_clone(skb, GFP_ATOMIC))) in hci_send_to_sock()
132 memcpy(skb_push(nskb, 1), &nskb->pkt_type, 1); in hci_send_to_sock()
134 if (sock_queue_rcv_skb(sk, nskb)) in hci_send_to_sock()
135 kfree_skb(nskb); in hci_send_to_sock()
/linux-2.4.37.9/include/linux/
Dskbuff.h344 struct sk_buff *nskb; in skb_share_check() local
345 nskb = skb_clone(skb, pri); in skb_share_check()
347 return nskb; in skb_share_check()
376 struct sk_buff *nskb; in skb_unshare() local
379 nskb=skb_copy(skb, pri); in skb_unshare()
381 return nskb; in skb_unshare()
/linux-2.4.37.9/net/core/
Dnetfilter.c610 struct sk_buff *nskb; in ip_route_me_harder() local
612 nskb = skb_realloc_headroom(*pskb, hh_len); in ip_route_me_harder()
613 if (!nskb) in ip_route_me_harder()
616 skb_set_owner_w(nskb, (*pskb)->sk); in ip_route_me_harder()
618 *pskb = nskb; in ip_route_me_harder()
Dskbuff.c751 struct sk_buff *nskb; in skb_pad() local
760 nskb = skb_copy_expand(skb, skb_headroom(skb), skb_tailroom(skb) + pad, GFP_ATOMIC); in skb_pad()
762 if(nskb) in skb_pad()
763 memset(nskb->data+nskb->len, 0, pad); in skb_pad()
764 return nskb; in skb_pad()
/linux-2.4.37.9/net/ipv6/netfilter/
Dip6_queue.c281 struct sk_buff *nskb; in ipq_enqueue_packet() local
303 nskb = ipq_build_packet_message(entry, &status); in ipq_enqueue_packet()
304 if (nskb == NULL) in ipq_enqueue_packet()
313 status = netlink_unicast(ipqnl, nskb, peer_pid, MSG_DONTWAIT); in ipq_enqueue_packet()
325 kfree_skb(nskb); in ipq_enqueue_packet()
/linux-2.4.37.9/drivers/isdn/avmb1/
Dcapi.c445 struct sk_buff *nskb; in gen_data_b3_resp_for() local
446 nskb = alloc_skb(CAPI_DATA_B3_RESP_LEN, GFP_ATOMIC); in gen_data_b3_resp_for()
447 if (nskb) { in gen_data_b3_resp_for()
449 unsigned char *s = skb_put(nskb, CAPI_DATA_B3_RESP_LEN); in gen_data_b3_resp_for()
458 return nskb; in gen_data_b3_resp_for()
463 struct sk_buff *nskb; in handle_recv_skb() local
486 if ((nskb = gen_data_b3_resp_for(mp, skb)) == 0) { in handle_recv_skb()
491 errcode = (*capifuncs->capi_put_message)(mp->applid, nskb); in handle_recv_skb()
495 kfree_skb(nskb); in handle_recv_skb()
514 if ((nskb = gen_data_b3_resp_for(mp, skb)) == 0) { in handle_recv_skb()
[all …]
/linux-2.4.37.9/drivers/s390/net/
Dnetiucv.c1125 struct sk_buff *nskb = skb; in netiucv_transmit_skb() local
1134 nskb = alloc_skb(skb->len + NETIUCV_HDRLEN + in netiucv_transmit_skb()
1136 if (!nskb) { in netiucv_transmit_skb()
1143 skb_reserve(nskb, NETIUCV_HDRLEN); in netiucv_transmit_skb()
1144 memcpy(skb_put(nskb, skb->len), in netiucv_transmit_skb()
1152 header.next = nskb->len + NETIUCV_HDRLEN; in netiucv_transmit_skb()
1153 memcpy(skb_push(nskb, NETIUCV_HDRLEN), &header, NETIUCV_HDRLEN); in netiucv_transmit_skb()
1155 memcpy(skb_put(nskb, NETIUCV_HDRLEN), &header, NETIUCV_HDRLEN); in netiucv_transmit_skb()
1161 0, nskb->data, nskb->len); in netiucv_transmit_skb()
1175 dev_kfree_skb(nskb); in netiucv_transmit_skb()
[all …]
/linux-2.4.37.9/net/sched/
Dsch_csz.c671 struct sk_buff *nskb = skb_peek(&this->q); in csz_dequeue() local
672 this->start += L2R(this,nskb->len); in csz_dequeue()
685 struct sk_buff *nskb; in csz_dequeue() local
694 nskb = skb_peek_best(q); in csz_dequeue()
695 peeked = L2R(this,nskb->len); in csz_dequeue()

12