]> 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)
commitf9ac6bbc23a8333a921abee45812fd1e604e1947
treec6118349ffdb8d12835f3aa0c8d9ca24a385c577
parent7ef91bf5eefb18eb6174a449222f64c510d9b8d4
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