Home
last modified time | relevance | path

Searched refs:skb2 (Results 1 – 25 of 43) sorted by relevance

12

/linux-2.4.37.9/net/ipv4/
Dip_output.c304 struct sk_buff *skb2; in ip_queue_xmit2() local
306 skb2 = skb_realloc_headroom(skb, (dev->hard_header_len + 15) & ~15); in ip_queue_xmit2()
308 if (skb2 == NULL) in ip_queue_xmit2()
311 skb_set_owner_w(skb2, sk); in ip_queue_xmit2()
312 skb = skb2; in ip_queue_xmit2()
766 struct sk_buff *skb2; in ip_fragment() local
815 if ((skb2 = alloc_skb(len+hlen+dev->hard_header_len+15,GFP_ATOMIC)) == NULL) { in ip_fragment()
825 skb2->pkt_type = skb->pkt_type; in ip_fragment()
826 skb2->priority = skb->priority; in ip_fragment()
827 skb_reserve(skb2, (dev->hard_header_len+15)&~15); in ip_fragment()
[all …]
Dipip.c357 struct sk_buff *skb2; in ipip_err()
411 skb2 = skb_clone(skb, GFP_ATOMIC); in ipip_err()
412 if (skb2 == NULL) in ipip_err()
414 dst_release(skb2->dst); in ipip_err()
415 skb2->dst = NULL; in ipip_err()
416 skb_pull(skb2, skb->data - (u8*)eiph); in ipip_err()
417 skb2->nh.raw = skb2->data; in ipip_err()
421 kfree_skb(skb2); in ipip_err()
424 skb2->dev = rt->u.dst.dev; in ipip_err()
433 kfree_skb(skb2); in ipip_err()
[all …]
Dip_input.c180 struct sk_buff *skb2 = skb_clone(skb, GFP_ATOMIC); in ip_call_ra_chain() local
181 if (skb2) in ip_call_ra_chain()
182 raw_rcv(last, skb2); in ip_call_ra_chain()
205 struct sk_buff *skb2 = skb; in ip_run_ipprot() local
207 skb2 = skb_clone(skb, GFP_ATOMIC); in ip_run_ipprot()
208 if(skb2 != NULL) { in ip_run_ipprot()
210 ipprot->handler(skb2); in ip_run_ipprot()
Dip_gre.c412 struct sk_buff *skb2; in ipgre_err()
480 skb2 = skb_clone(skb, GFP_ATOMIC); in ipgre_err()
481 if (skb2 == NULL) in ipgre_err()
483 dst_release(skb2->dst); in ipgre_err()
484 skb2->dst = NULL; in ipgre_err()
485 skb_pull(skb2, skb->data - (u8*)eiph); in ipgre_err()
486 skb2->nh.raw = skb2->data; in ipgre_err()
490 kfree_skb(skb2); in ipgre_err()
493 skb2->dev = rt->u.dst.dev; in ipgre_err()
502 kfree_skb(skb2); in ipgre_err()
[all …]
Dipmr.c1135 struct sk_buff *skb2; in ipmr_queue_xmit() local
1176 skb2 = skb_realloc_headroom(skb, (encap + 15)&~15); in ipmr_queue_xmit()
1178 skb2 = skb_clone(skb, GFP_ATOMIC); in ipmr_queue_xmit()
1181 skb2 = skb; in ipmr_queue_xmit()
1184 if (skb2 == NULL) { in ipmr_queue_xmit()
1192 dst_release(skb2->dst); in ipmr_queue_xmit()
1193 skb2->dst = &rt->u.dst; in ipmr_queue_xmit()
1194 iph = skb2->nh.iph; in ipmr_queue_xmit()
1200 ip_encap(skb2, vif->local, vif->remote); in ipmr_queue_xmit()
1203 ((struct ip_tunnel *)vif->dev->priv)->stat.tx_bytes+=skb2->len; in ipmr_queue_xmit()
[all …]
/linux-2.4.37.9/net/bridge/
Dbr_forward.c98 struct sk_buff *skb2; in br_flood() local
100 if ((skb2 = skb_clone(skb, GFP_ATOMIC)) == NULL) { in br_flood()
105 skb = skb2; in br_flood()
114 struct sk_buff *skb2; in br_flood() local
116 if ((skb2 = skb_clone(skb, GFP_ATOMIC)) == NULL) { in br_flood()
122 __packet_hook(prev, skb2); in br_flood()
Dbr_input.c70 struct sk_buff *skb2; in br_handle_frame_finish() local
72 skb2 = skb_clone(skb, GFP_ATOMIC); in br_handle_frame_finish()
73 if (skb2 != NULL) { in br_handle_frame_finish()
75 br_pass_frame_up(br, skb2); in br_handle_frame_finish()
/linux-2.4.37.9/drivers/net/
Dethertap.c177 struct sk_buff *skb2; in ethertap_start_xmit() local
184 skb2 = skb_realloc_headroom(skb, 2); in ethertap_start_xmit()
186 if (skb2 == NULL) in ethertap_start_xmit()
188 skb = skb2; in ethertap_start_xmit()
194 struct sk_buff *skb2 = skb; in ethertap_start_xmit() local
197 dev_kfree_skb(skb2); in ethertap_start_xmit()
200 dev_kfree_skb(skb2); in ethertap_start_xmit()
265 struct sk_buff *skb2 = skb; in ethertap_rx_skb() local
268 kfree_skb(skb2); in ethertap_rx_skb()
271 kfree_skb(skb2); in ethertap_rx_skb()
Dloopback.c72 struct sk_buff *skb2=skb; in loopback_xmit() local
75 kfree_skb(skb2); in loopback_xmit()
78 kfree_skb(skb2); in loopback_xmit()
Dpppoe.c880 struct sk_buff *skb2; in __pppoe_xmit() local
896 skb2 = dev_alloc_skb(32+skb->len + in __pppoe_xmit()
900 if (skb2 == NULL) in __pppoe_xmit()
903 skb_reserve(skb2, dev->hard_header_len + sizeof(struct pppoe_hdr)); in __pppoe_xmit()
904 memcpy(skb_put(skb2, skb->len), skb->data, skb->len); in __pppoe_xmit()
909 skb2 = skb_clone(skb, GFP_ATOMIC); in __pppoe_xmit()
911 if (skb2 == NULL) in __pppoe_xmit()
915 ph = (struct pppoe_hdr *) skb_push(skb2, sizeof(struct pppoe_hdr)); in __pppoe_xmit()
917 skb2->protocol = __constant_htons(ETH_P_PPP_SES); in __pppoe_xmit()
919 skb2->nh.raw = skb2->data; in __pppoe_xmit()
[all …]
/linux-2.4.37.9/drivers/isdn/eicon/
Deicon_idi.c224 struct sk_buff *skb2; in idi_do_req() local
229 skb2 = alloc_skb(sizeof(eicon_chan_ptr), GFP_ATOMIC); in idi_do_req()
231 if ((!skb) || (!skb2)) { in idi_do_req()
235 if (skb2) in idi_do_req()
236 dev_kfree_skb(skb2); in idi_do_req()
240 chan2 = (eicon_chan_ptr *)skb_put(skb2, sizeof(eicon_chan_ptr)); in idi_do_req()
294 dev_kfree_skb(skb2); in idi_do_req()
299 skb_queue_tail(&card->sndq, skb2); in idi_do_req()
443 struct sk_buff *skb2; in idi_connect_req() local
451 skb2 = alloc_skb(sizeof(eicon_chan_ptr), GFP_ATOMIC); in idi_connect_req()
[all …]
Deicon_io.c24 struct sk_buff *skb, *skb2, *skb_new; in eicon_io_rcv_dispatch() local
69 if (!(skb2 = skb_dequeue(&chan->e.R))) { in eicon_io_rcv_dispatch()
75 ind2 = (eicon_IND *)skb2->data; in eicon_io_rcv_dispatch()
81 dev_kfree_skb(skb2); in eicon_io_rcv_dispatch()
95 dev_kfree_skb(skb2); in eicon_io_rcv_dispatch()
237 struct sk_buff *skb2; in eicon_io_transmit() local
291 if (!(skb2 = skb_dequeue(&ccard->sndq))) in eicon_io_transmit()
304 skb_queue_head(&ccard->sndq, skb2); in eicon_io_transmit()
312 skb_queue_head(&ccard->sndq, skb2); in eicon_io_transmit()
320 chan2 = (eicon_chan_ptr *)skb2->data; in eicon_io_transmit()
[all …]
/linux-2.4.37.9/net/decnet/
Ddn_nsp_out.c239 struct sk_buff *skb2; in dn_nsp_clone_and_send() local
242 if ((skb2 = skb_clone(skb, gfp)) != NULL) { in dn_nsp_clone_and_send()
246 skb2->sk = skb->sk; in dn_nsp_clone_and_send()
247 dn_nsp_send(skb2); in dn_nsp_clone_and_send()
392 struct sk_buff *skb2, *list, *ack = NULL; in dn_nsp_check_xmit_queue() local
400 skb2 = q->next; in dn_nsp_check_xmit_queue()
402 while(list != skb2) { in dn_nsp_check_xmit_queue()
403 struct dn_skb_cb *cb2 = DN_SKB_CB(skb2); in dn_nsp_check_xmit_queue()
406 ack = skb2; in dn_nsp_check_xmit_queue()
410 skb2 = skb2->next; in dn_nsp_check_xmit_queue()
Ddn_neigh.c207 struct sk_buff *skb2 = skb_realloc_headroom(skb, headroom); in dn_long_output() local
208 if (skb2 == NULL) { in dn_long_output()
215 skb = skb2; in dn_long_output()
253 struct sk_buff *skb2 = skb_realloc_headroom(skb, headroom); in dn_short_output() local
254 if (skb2 == NULL) { in dn_short_output()
261 skb = skb2; in dn_short_output()
295 struct sk_buff *skb2 = skb_realloc_headroom(skb, headroom); in dn_phase3_output() local
296 if (skb2 == NULL) { in dn_phase3_output()
303 skb = skb2; in dn_phase3_output()
/linux-2.4.37.9/net/ipv6/
Dip6_input.c237 struct sk_buff *skb2; in ip6_mc_input()
243 skb2 = skb_clone(skb, GFP_ATOMIC); in ip6_mc_input()
246 skb2 = skb; in ip6_mc_input()
249 dst->output(skb2); in ip6_mc_input()
Dsit.c298 struct sk_buff *skb2; in ipip6_err()
347 skb2 = skb_clone(skb, GFP_ATOMIC); in ipip6_err()
348 if (skb2 == NULL) in ipip6_err()
350 dst_release(skb2->dst); in ipip6_err()
351 skb2->dst = NULL; in ipip6_err()
352 skb_pull(skb2, skb->data - (u8*)iph6); in ipip6_err()
353 skb2->nh.raw = skb2->data; in ipip6_err()
358 skb2->dev = rt6i->rt6i_dev; in ipip6_err()
368 icmpv6_send(skb2, rel_type, rel_code, rel_info, skb2->dev); in ipip6_err()
371 kfree_skb(skb2); in ipip6_err()
Dexthdrs.c264 struct sk_buff *skb2 = skb_copy(skb, GFP_ATOMIC); in ipv6_routing_header() local
266 if (skb2 == NULL) in ipv6_routing_header()
268 *skb_ptr = skb = skb2; in ipv6_routing_header()
269 opt = (struct inet6_skb_parm *)skb2->cb; in ipv6_routing_header()
270 hdr = (struct ipv6_rt_hdr *) skb2->h.raw; in ipv6_routing_header()
/linux-2.4.37.9/net/atm/
Dlec.c125 struct sk_buff *skb2; in lec_handle_bridge() local
128 skb2 = alloc_skb(sizeof(struct atmlec_msg), GFP_ATOMIC); in lec_handle_bridge()
129 if (skb2 == NULL) return; in lec_handle_bridge()
130 skb2->len = sizeof(struct atmlec_msg); in lec_handle_bridge()
131 mesg = (struct atmlec_msg *)skb2->data; in lec_handle_bridge()
137 atm_force_charge(priv->lecd, skb2->truesize); in lec_handle_bridge()
138 skb_queue_tail(&priv->lecd->sk->receive_queue, skb2); in lec_handle_bridge()
230 struct sk_buff *skb2; in lec_send_packet() local
266 skb2 = skb_realloc_headroom(skb, LEC_HEADER_LEN); in lec_send_packet()
268 if (skb2 == NULL) return 0; in lec_send_packet()
[all …]
/linux-2.4.37.9/net/802/
Dcl2llc.c184 struct sk_buff *skb2; in llc_interpret_pseudo_code() local
208 skb2 = llc_pull_from_atq(lp); in llc_interpret_pseudo_code()
209 if (skb2 != NULL) in llc_interpret_pseudo_code()
211 while (skb2 != NULL) in llc_interpret_pseudo_code()
213 llc_sendipdu( lp, I_CMD, 0, skb2); in llc_interpret_pseudo_code()
214 skb2 = llc_pull_from_atq(lp); in llc_interpret_pseudo_code()
Dcl2llc.pre184 struct sk_buff *skb2;
208 skb2 = llc_pull_from_atq(lp);
209 if (skb2 != NULL)
211 while (skb2 != NULL)
213 llc_sendipdu( lp, I_CMD, 0, skb2);
214 skb2 = llc_pull_from_atq(lp);
/linux-2.4.37.9/net/core/
Ddev.c949 struct sk_buff *skb2; in dev_queue_xmit_nit() local
950 if ((skb2 = skb_clone(skb, GFP_ATOMIC)) == NULL) in dev_queue_xmit_nit()
957 skb2->mac.raw = skb2->data; in dev_queue_xmit_nit()
959 if (skb2->nh.raw < skb2->data || skb2->nh.raw > skb2->tail) { in dev_queue_xmit_nit()
961 printk(KERN_CRIT "protocol %04x is buggy, dev %s\n", skb2->protocol, dev->name); in dev_queue_xmit_nit()
962 skb2->nh.raw = skb2->data; in dev_queue_xmit_nit()
965 skb2->h.raw = skb2->nh.raw; in dev_queue_xmit_nit()
966 skb2->pkt_type = PACKET_OUTGOING; in dev_queue_xmit_nit()
967 ptype->func(skb2, skb->dev, ptype); in dev_queue_xmit_nit()
/linux-2.4.37.9/net/netlink/
Daf_netlink.c667 struct sk_buff *skb, *skb2; member
688 if (p->skb2 == NULL) { in do_one_broadcast()
690 p->skb2 = skb_clone(p->skb, p->allocation); in do_one_broadcast()
692 p->skb2 = p->skb; in do_one_broadcast()
696 if (p->skb2 == NULL) { in do_one_broadcast()
700 } else if ((val = netlink_broadcast_deliver(sk, p->skb2)) < 0) { in do_one_broadcast()
703 p->skb2 = NULL; in do_one_broadcast()
722 info.skb2 = NULL; in netlink_broadcast()
733 if (info.skb2) in netlink_broadcast()
734 kfree_skb(info.skb2); in netlink_broadcast()
/linux-2.4.37.9/net/ipx/
Daf_ipx.c567 struct sk_buff *skb1 = NULL, *skb2 = NULL; in ipxitf_demux_socket() local
624 skb2 = skb_clone(skb1, GFP_ATOMIC); in ipxitf_demux_socket()
626 skb2 = skb1; in ipxitf_demux_socket()
632 if (!skb2) in ipxitf_demux_socket()
636 ipxitf_def_skb_handler(sock2, skb2); in ipxitf_demux_socket()
650 struct sk_buff *skb2; in ipxitf_adjust_skbuff() local
661 skb2 = alloc_skb(len, GFP_ATOMIC); in ipxitf_adjust_skbuff()
662 if (skb2) { in ipxitf_adjust_skbuff()
663 skb_reserve(skb2, out_offset); in ipxitf_adjust_skbuff()
664 skb2->nh.raw = skb2->h.raw = skb_put(skb2, skb->len); in ipxitf_adjust_skbuff()
[all …]
/linux-2.4.37.9/net/sched/
Dsch_netem.c189 struct sk_buff *skb2 = skb_clone(skb, GFP_ATOMIC); in netem_enqueue() local
191 pr_debug("netem_enqueue: dup %p\n", skb2); in netem_enqueue()
192 if (skb2) in netem_enqueue()
193 delay_skb(sch, skb2); in netem_enqueue()
/linux-2.4.37.9/drivers/isdn/pcbit/
Ddrv.c512 struct sk_buff *skb2; in pcbit_l3_receive() local
531 if (capi_tdata_resp(chan, &skb2) > 0) in pcbit_l3_receive()
533 skb2, skb2->len); in pcbit_l3_receive()
577 if ((len = capi_disc_req(*(ushort*)(skb->data), &skb2, CAUSE_NOCHAN)) > 0) in pcbit_l3_receive()
578 pcbit_l2_write(dev, MSG_DISC_REQ, refnum, skb2, len); in pcbit_l3_receive()

12