On Mon, 3 Mar 2014 15:10:27 +0100 Alexander Aring <alex.aring@xxxxxxxxx> 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. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html