]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit38f76c08bf5b52cb1be3606459e857235138a012
tree355ae39e185e72ca129360037525fd5f7f5ff875
parent956da804e9b8d4ec2021d243c0fff878ffc18501
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