]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: network coding - code and transmit packets if possible
authorMartin Hundebøll <martin@hundeboll.net>
Fri, 25 Jan 2013 10:12:41 +0000 (11:12 +0100)
committerAntonio Quartulli <ordex@autistici.org>
Wed, 13 Mar 2013 21:53:50 +0000 (22:53 +0100)
commit99048e3bb60259107d6afe798c81a354902cd86a
treef7b28653483b0115eb6416d9112febb63136ec01
parent5c078085f25677a0b4b300d41751fb976b2cebcb
batman-adv: network coding - code and transmit packets if possible

Before adding forward-skbs to the coding buffer, the buffer is searched
for a potential coding opportunity. If one is found, the two packets are
network coded and transmitted right away. If not, the forward-skb is
added to the buffer.

Network coded packets are transmitted with information about the two
receivers and the two coded packets. The first receiver is given by the
MAC header, while the second is given in the payload/bat-header. The
second receiver uses promiscuous mode to receive the packet and check
the second destination.

Signed-off-by: Martin Hundebøll <martin@hundeboll.net>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
net/batman-adv/main.h
net/batman-adv/network-coding.c
net/batman-adv/packet.h
net/batman-adv/soft-interface.c
net/batman-adv/types.h