batman-adv: Move bonding / iface alternating router search to own functions
authorLinus Lüssing <linus.luessing@web.de>
Mon, 14 Mar 2011 22:43:27 +0000 (22:43 +0000)
committerSven Eckelmann <sven@narfation.org>
Sun, 17 Apr 2011 19:11:00 +0000 (21:11 +0200)
commit551586292b39da6e4fbfbb5b96b57b68decfdab9
tree7d9260d487a9c29fb3c50e0174986d1399aab1be
parent0ce790e7d736cedc563e1fb4e998babf5a4dbc3d
batman-adv: Move bonding / iface alternating router search to own functions

This decreases the size of find_router() by outsourcing the router
search for the bonding and interface alternating modes to their own sub
functions. This shall make it easier to keep track of the correct
refcounting later.

Signed-off-by: Linus Lüssing <linus.luessing@web.de>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
net/batman-adv/routing.c