batman-adv: Receive fragmented packets and merge
authorMartin Hundebøll <martin@hundeboll.net>
Thu, 23 May 2013 14:53:02 +0000 (16:53 +0200)
committerAntonio Quartulli <antonio@meshcoding.com>
Sat, 12 Oct 2013 09:58:34 +0000 (11:58 +0200)
commit610bfc6bc99bc83680d190ebc69359a05fc7f605
tree355ae39e185e72ca129360037525fd5f7f5ff875
parentf097e25dbe9144447f46b6b61ca3da1a2ba432d4
batman-adv: Receive fragmented packets and merge

Fragments arriving at their destination are buffered for later merge.
Merged packets are passed to the main receive function as had they never
been fragmented.

Fragments are forwarded without merging if the MTU of the outgoing
interface is smaller than the size of the merged packet.

Signed-off-by: Martin Hundebøll <martin@hundeboll.net>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Signed-off-by: Antonio Quartulli <antonio@meshcoding.com>
net/batman-adv/Makefile
net/batman-adv/fragmentation.c [new file with mode: 0644]
net/batman-adv/fragmentation.h [new file with mode: 0644]
net/batman-adv/main.c
net/batman-adv/main.h
net/batman-adv/originator.c
net/batman-adv/packet.h
net/batman-adv/routing.c
net/batman-adv/routing.h
net/batman-adv/soft-interface.c
net/batman-adv/types.h