On Thu, Aug 08, 2013 at 09:59:24AM +0200, Alexander Aring wrote:
> We can drop all things with that in this case:
> memcpy(d, skb->data..., 2);
> skb_pull(skb, 2);
> 
> to:
> err = lowpan_fetch_skb(skb, d, 2);
> ...
> 
> and for example:
> memcpy(d, skb->data[0], 2);
> memcpy(d2, skb->data[xy], 2); /* Need calculate here because we run no 
> skb_pull before */
> skb_pull(skb, 2);
> 
ehm I mean skb_pull(skb, 4); here, sry.

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Linux-zigbee-devel mailing list
Linux-zigbee-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-zigbee-devel

Reply via email to