• Phoebe Buckheister's avatar
    6lowpan: fix fragmentation · d4b2816d
    Phoebe Buckheister authored
    Currently, 6lowpan creates one 802.15.4 MAC header for the original
    packet the device was given by upper layers and reuses this header for
    all fragments, if fragmentation is required. This also reuses frame
    sequence numbers, which must not happen. 6lowpan also has issues with
    fragmentation in the presence of security headers, since those may imply
    the presence of trailing fields that are not accounted for by the
    fragmentation code right now.
    
    Fix both of these issues by properly allocating fragment skbs with
    headromm and tailroom as specified by the underlying device, create one
    header for each skb instead of reusing the original header, let the
    underlying device do the rest.
    Signed-off-by: default avatarPhoebe Buckheister <phoebe.buckheister@itwm.fraunhofer.de>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    d4b2816d
6lowpan_rtnl.c 17.5 KB