batman-adv: move and restructure batadv_v_ogm_forward
authorSimon Wunderlich <simon@open-mesh.com>
Mon, 1 Feb 2016 14:21:37 +0000 (15:21 +0100)
committerAntonio Quartulli <a@unstable.cc>
Tue, 3 May 2016 18:22:03 +0000 (02:22 +0800)
commitefcc9d3069c982786f380bca8480a1aa2fd2721d
tree542fc03de38d56185a77bd749b8b4952ab4c6235
parent121bdca0d476c1018fa4b3c06ac008b7979acbd3
batman-adv: move and restructure batadv_v_ogm_forward

To match our code better to the protocol description of B.A.T.M.A.N. V,
move batadv_v_ogm_forward() out into batadv_v_ogm_process_per_outif()
and move all checks directly deciding whether the OGM should be
forwarded into batadv_v_ogm_forward().

Signed-off-by: Simon Wunderlich <simon@open-mesh.com>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Antonio Quartulli <a@unstable.cc>
net/batman-adv/bat_v_ogm.c