Lines Matching defs:router
44 * _batadv_update_route() - set the router for this originator
48 * @neigh_node: neighbor which should be the next router
65 /* curr_router used earlier may not be the current orig_ifinfo->router
77 curr_router = rcu_replace_pointer(orig_ifinfo->router, neigh_node,
107 * batadv_update_route() - set the router for this originator
111 * @neigh_node: neighbor which should be the next router
118 struct batadv_neigh_node *router = NULL;
123 router = batadv_orig_router_get(orig_node, recv_if);
125 if (router != neigh_node)
129 batadv_neigh_node_put(router);
470 * Return: last bonding candidate of router or NULL if not found
512 * batadv_find_router() - find a suitable router for this originator
517 * Return: the router which should be used for this orig_node on
528 struct batadv_neigh_node *router, *cand_router = NULL;
538 router = batadv_orig_router_get(orig_node, recv_if);
540 if (!router)
541 return router;
547 return router;
552 * router is found, use the first candidate found (the previously
555 * router - obviously there are no other candidates.
560 last_cand_router = rcu_dereference(last_candidate->router);
567 cand_router = rcu_dereference(cand->router);
580 cand->if_outgoing, router,
584 /* don't use the same router twice */
621 * 3) there is no candidate at all, return the default router
624 batadv_neigh_node_put(router);
627 router = next_candidate_router;
630 batadv_neigh_node_put(router);
633 router = first_candidate_router;
652 return router;