Lines Matching refs:router
516 struct batadv_neigh_node *router; in batadv_find_best_vis_server() local
530 router = batadv_orig_node_get_router(orig_node); in batadv_find_best_vis_server()
531 if (!router) in batadv_find_best_vis_server()
535 (router->tq_avg > best_tq)) { in batadv_find_best_vis_server()
536 best_tq = router->tq_avg; in batadv_find_best_vis_server()
540 batadv_neigh_node_free_ref(router); in batadv_find_best_vis_server()
570 struct batadv_neigh_node *router; in batadv_generate_vis_packet() local
602 router = batadv_orig_node_get_router(orig_node); in batadv_generate_vis_packet()
603 if (!router) in batadv_generate_vis_packet()
606 if (!batadv_compare_eth(router->addr, orig_node->orig)) in batadv_generate_vis_packet()
609 if (router->if_incoming->if_status != BATADV_IF_ACTIVE) in batadv_generate_vis_packet()
612 if (router->tq_avg < 1) in batadv_generate_vis_packet()
619 router->if_incoming->net_dev->dev_addr, in batadv_generate_vis_packet()
622 entry->quality = router->tq_avg; in batadv_generate_vis_packet()
626 batadv_neigh_node_free_ref(router); in batadv_generate_vis_packet()