Lines Matching full:router

929 	struct batadv_neigh_node *router = NULL;  in batadv_iv_ogm_orig_update()  local
1013 router = batadv_orig_router_get(orig_node, if_outgoing); in batadv_iv_ogm_orig_update()
1014 if (router == neigh_node) in batadv_iv_ogm_orig_update()
1017 if (router) { in batadv_iv_ogm_orig_update()
1018 router_ifinfo = batadv_neigh_ifinfo_get(router, if_outgoing); in batadv_iv_ogm_orig_update()
1034 sum_orig = batadv_iv_orig_ifinfo_sum(router->orig_node, in batadv_iv_ogm_orig_update()
1035 router->if_incoming); in batadv_iv_ogm_orig_update()
1050 if (router) in batadv_iv_ogm_orig_update()
1051 batadv_neigh_node_put(router); in batadv_iv_ogm_orig_update()
1321 struct batadv_neigh_node *router = NULL; in batadv_iv_ogm_process_per_outif() local
1372 router = batadv_orig_router_get(orig_node, if_outgoing); in batadv_iv_ogm_process_per_outif()
1373 if (router) { in batadv_iv_ogm_process_per_outif()
1374 router_router = batadv_orig_router_get(router->orig_node, in batadv_iv_ogm_process_per_outif()
1376 router_ifinfo = batadv_neigh_ifinfo_get(router, if_outgoing); in batadv_iv_ogm_process_per_outif()
1380 (batadv_compare_eth(router->addr, ethhdr->h_source))) in batadv_iv_ogm_process_per_outif()
1385 if (router && router_router && in batadv_iv_ogm_process_per_outif()
1386 (batadv_compare_eth(router->addr, prev_sender)) && in batadv_iv_ogm_process_per_outif()
1388 (batadv_compare_eth(router->addr, router_router->addr))) { in batadv_iv_ogm_process_per_outif()
1500 if (router) in batadv_iv_ogm_process_per_outif()
1501 batadv_neigh_node_put(router); in batadv_iv_ogm_process_per_outif()
2414 struct batadv_neigh_node *router; in batadv_iv_gw_get_best_gw_node() local
2426 router = batadv_orig_router_get(orig_node, BATADV_IF_DEFAULT); in batadv_iv_gw_get_best_gw_node()
2427 if (!router) in batadv_iv_gw_get_best_gw_node()
2430 router_ifinfo = batadv_neigh_ifinfo_get(router, in batadv_iv_gw_get_best_gw_node()
2482 batadv_neigh_node_put(router); in batadv_iv_gw_get_best_gw_node()
2561 /* fails if orig_node has no router */
2567 struct batadv_neigh_node *router; in batadv_iv_gw_write_buffer_text() local
2571 router = batadv_orig_router_get(gw_node->orig_node, BATADV_IF_DEFAULT); in batadv_iv_gw_write_buffer_text()
2572 if (!router) in batadv_iv_gw_write_buffer_text()
2575 router_ifinfo = batadv_neigh_ifinfo_get(router, BATADV_IF_DEFAULT); in batadv_iv_gw_write_buffer_text()
2584 router_ifinfo->bat_iv.tq_avg, router->addr, in batadv_iv_gw_write_buffer_text()
2585 router->if_incoming->net_dev->name, in batadv_iv_gw_write_buffer_text()
2597 if (router) in batadv_iv_gw_write_buffer_text()
2598 batadv_neigh_node_put(router); in batadv_iv_gw_write_buffer_text()
2613 /* fails if orig_node has no router */ in batadv_iv_gw_print()
2642 struct batadv_neigh_node *router; in batadv_iv_gw_dump_entry() local
2647 router = batadv_orig_router_get(gw_node->orig_node, BATADV_IF_DEFAULT); in batadv_iv_gw_dump_entry()
2648 if (!router) in batadv_iv_gw_dump_entry()
2651 router_ifinfo = batadv_neigh_ifinfo_get(router, BATADV_IF_DEFAULT); in batadv_iv_gw_dump_entry()
2679 router->addr) || in batadv_iv_gw_dump_entry()
2681 router->if_incoming->net_dev->name) || in batadv_iv_gw_dump_entry()
2698 if (router) in batadv_iv_gw_dump_entry()
2699 batadv_neigh_node_put(router); in batadv_iv_gw_dump_entry()