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)
commit3c12de9a5c756b23fe7c9ab332474ece1568914c
treef7b28653483b0115eb6416d9112febb63136ec01
parent953324776d6d23eb81f5b825870027b9c069db29
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