batman-adv: consider outgoing interface in OGM sending
authorSimon Wunderlich <simon@open-mesh.com>
Wed, 13 Nov 2013 18:14:49 +0000 (19:14 +0100)
committerAntonio Quartulli <antonio@meshcoding.com>
Sun, 12 Jan 2014 13:41:14 +0000 (14:41 +0100)
commitef0a937f7a1450d3a133ccd83c9c7d07587e7a00
treec6118349ffdb8d12835f3aa0c8d9ca24a385c577
parentc039876892e3247928ce5ad3d0ba46aee7d7099a
batman-adv: consider outgoing interface in OGM sending

The current OGM sending an aggregation functionality decides on
which interfaces a packet should be sent when it parses the forward
packet struct. However, with the network wide multi interface
optimization the outgoing interface is decided by the OGM processing
function.

This is reflected by moving the decision in the OGM processing function
and add the outgoing interface in the forwarding packet struct. This
practically implies that an OGM may be added multiple times (once per
outgoing interface), and this also affects aggregation which needs to
consider the outgoing interface as well.

Signed-off-by: Simon Wunderlich <simon@open-mesh.com>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Antonio Quartulli <antonio@meshcoding.com>
net/batman-adv/bat_iv_ogm.c
net/batman-adv/send.c
net/batman-adv/types.h