Lines Matching full:router
46 * _batadv_update_route() - set the router for this originator
50 * @neigh_node: neighbor which should be the next router
67 /* curr_router used earlier may not be the current orig_ifinfo->router in _batadv_update_route()
79 curr_router = rcu_replace_pointer(orig_ifinfo->router, neigh_node, in _batadv_update_route()
110 * batadv_update_route() - set the router for this originator
114 * @neigh_node: neighbor which should be the next router
121 struct batadv_neigh_node *router = NULL; in batadv_update_route() local
126 router = batadv_orig_router_get(orig_node, recv_if); in batadv_update_route()
128 if (router != neigh_node) in batadv_update_route()
132 if (router) in batadv_update_route()
133 batadv_neigh_node_put(router); in batadv_update_route()
488 * Return: last bonding candidate of router or NULL if not found
531 * batadv_find_router() - find a suitable router for this originator
536 * Return: the router which should be used for this orig_node on
547 struct batadv_neigh_node *router, *cand_router = NULL; in batadv_find_router() local
557 router = batadv_orig_router_get(orig_node, recv_if); in batadv_find_router()
559 if (!router) in batadv_find_router()
560 return router; in batadv_find_router()
566 return router; in batadv_find_router()
571 * router is found, use the first candidate found (the previously in batadv_find_router()
574 * router - obviously there are no other candidates. in batadv_find_router()
579 last_cand_router = rcu_dereference(last_candidate->router); in batadv_find_router()
586 cand_router = rcu_dereference(cand->router); in batadv_find_router()
599 cand->if_outgoing, router, in batadv_find_router()
603 /* don't use the same router twice */ in batadv_find_router()
640 * 3) there is no candidate at all, return the default router in batadv_find_router()
643 batadv_neigh_node_put(router); in batadv_find_router()
646 router = next_candidate_router; in batadv_find_router()
649 batadv_neigh_node_put(router); in batadv_find_router()
652 router = first_candidate_router; in batadv_find_router()
672 return router; in batadv_find_router()