linux/net/batman-adv
Sven Eckelmann ae361ce19f batman-adv: Calculate correct size for merged packets
The routing algorithm must be able to decide if a fragment can be merged with
the missing part and still be passed to a forwarding interface. The fragments
can only differ by one byte in case that the original payload had an uneven
length. In that situation the sender has to inform all possible receivers that
the tail is one byte longer using the flag UNI_FRAG_LARGETAIL.

The combination of UNI_FRAG_LARGETAIL and UNI_FRAG_HEAD flag makes it possible
to calculate the correct length for even and uneven sized payloads.

The original formula missed to add the unicast header at all and forgot to
remove the fragment header of the second fragment. This made the results highly
unreliable and only useful for machines with large differences between the
configured MTUs.

Reported-by: Russell Senior <russell@personaltelco.net>
Reported-by: Marek Lindner <lindner_marek@yahoo.de>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
2011-01-31 14:57:08 +01:00
..
aggregation.c
aggregation.h
bat_debugfs.c
bat_debugfs.h
bat_sysfs.c
bat_sysfs.h
bitarray.c
bitarray.h
gateway_client.c
gateway_client.h
gateway_common.c
gateway_common.h
hard-interface.c
hard-interface.h
hash.c
hash.h
icmp_socket.c
icmp_socket.h
Kconfig
main.c
main.h batman-adv: Use "__attribute__" shortcut macros 2011-01-16 03:25:19 +01:00
Makefile
originator.c
originator.h
packet.h batman-adv: Calculate correct size for merged packets 2011-01-31 14:57:08 +01:00
ring_buffer.c
ring_buffer.h
routing.c batman-adv: Calculate correct size for merged packets 2011-01-31 14:57:08 +01:00
routing.h
send.c
send.h
soft-interface.c
soft-interface.h
translation-table.c
translation-table.h
types.h batman-adv: Use "__attribute__" shortcut macros 2011-01-16 03:25:19 +01:00
unicast.c batman-adv: Calculate correct size for merged packets 2011-01-31 14:57:08 +01:00
unicast.h batman-adv: Calculate correct size for merged packets 2011-01-31 14:57:08 +01:00
vis.c
vis.h