]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd057ee8fdc858ce4079ef23d11c88856be3e94e1
treec6118349ffdb8d12835f3aa0c8d9ca24a385c577
parentff566f80a6e70f3cd42cbe769955c1e0dec10e05
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