On Friday, January 25, 2013 18:12:41 Martin Hundebøll wrote:
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
v3:
- Fix header-diff in batadv_nc_code_packets()
v4:
- Add missing kernel doc entry for enum batadv_counters
main.h | 6 + network-coding.c | 403 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ packet.h | 33 +++++ soft-interface.c | 6 + types.h | 20 +++ 5 files changed, 468 insertions(+)
Applied in revision c3289f3.
Thanks, Marek