• Sven Eckelmann's avatar
    batman-adv: Create roughly equal sized fragments · 5c77d8bb
    Sven Eckelmann authored
    The routing algorithm must know how large two fragments are to be able to
    decide that it is safe to merge them or if it should resubmit without waiting
    for the second part. When these two fragments have a too different size, it is
    not possible to guess right in every situation.
    
    The user could easily configure the MTU of the attached cards so that one
    fragment is forwarded and the other one is added to the fragments table to wait
    for the missing part.
    
    For even sized packets, it is possible to split it so that the resulting
    packages are equal sized by ignoring the old non-fragment header at the
    beginning of the original packet.
    
    This still creates different sized fragments for uneven sized packets.
    Reported-by: default avatarRussell Senior <russell@personaltelco.net>
    Reported-by: default avatarMarek Lindner <lindner_marek@yahoo.de>
    Signed-off-by: default avatarSven Eckelmann <sven@narfation.org>
    5c77d8bb
unicast.c 8.78 KB