Lines Matching defs:router
305 * batadv_orig_router_get() - router to the originator depending on iface
306 * @orig_node: the orig node for the router
310 * Return: the neighbor which should be the router for this orig_node/iface.
319 struct batadv_neigh_node *router = NULL;
326 router = rcu_dereference(orig_ifinfo->router);
330 if (router && !kref_get_unless_zero(&router->refcount))
331 router = NULL;
334 return router;
340 * @orig_addr: the originator MAC address to search the best next hop router for
344 * Return: A neighbor node which is the best router towards the given originator
809 struct batadv_neigh_node *router;
817 router = rcu_dereference_protected(orig_ifinfo->router, true);
818 batadv_neigh_node_put(router);
1078 "router/ifinfo purge: originator %pM, iface: %s\n",