Lines Matching refs: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
79 curr_router = rcu_replace_pointer(orig_ifinfo->router, neigh_node,
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;
126 router = batadv_orig_router_get(orig_node, recv_if);
128 if (router != neigh_node)
132 if (router)
133 batadv_neigh_node_put(router);
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;
557 router = batadv_orig_router_get(orig_node, recv_if);
559 if (!router)
560 return router;
566 return router;
571 * router is found, use the first candidate found (the previously
574 * router - obviously there are no other candidates.
579 last_cand_router = rcu_dereference(last_candidate->router);
586 cand_router = rcu_dereference(cand->router);
599 cand->if_outgoing, router,
603 /* don't use the same router twice */
640 * 3) there is no candidate at all, return the default router
643 batadv_neigh_node_put(router);
646 router = next_candidate_router;
649 batadv_neigh_node_put(router);
652 router = first_candidate_router;
672 return router;