On Mon, 3 Mar 2014 15:10:27 +0100 Alexander Aring <alex.ar...@gmail.com> wrote:
> Or maybe we can move the dev_hard_header call in lowpan_fragment_xmit > and lowpan_xmit if this is possible. But then we doesn't know the mac > header length in lowpan_skb_fragmentation. Strange... You could have lowpan_fragment_xmit create an entirely new skb, call dev_hard_header, determine how many bytes you can pack into that skb and then do that. If you can transmit that fragment, return the number of bytes transmitted, if you can't, return -ENOBUFS or whatever seems more appropriate. Ideally, also ask mac802154 (somehow, not sure how) about how many bytes you can fit into the fragment instead of using a fixed maximum fragment size. ------------------------------------------------------------------------------ Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce. With Perforce, you get hassle-free workflows. Merge that actually works. Faster operations. Version large binaries. Built-in WAN optimization and the freedom to use Git, Perforce or both. Make the move to Perforce. http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk _______________________________________________ Linux-zigbee-devel mailing list Linux-zigbee-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-zigbee-devel