Lines Matching refs:router

927 	struct batadv_neigh_node *router = NULL;  in batadv_iv_ogm_orig_update()  local
1011 router = batadv_orig_router_get(orig_node, if_outgoing); in batadv_iv_ogm_orig_update()
1012 if (router == neigh_node) in batadv_iv_ogm_orig_update()
1015 if (router) { in batadv_iv_ogm_orig_update()
1016 router_ifinfo = batadv_neigh_ifinfo_get(router, if_outgoing); in batadv_iv_ogm_orig_update()
1032 sum_orig = batadv_iv_orig_ifinfo_sum(router->orig_node, in batadv_iv_ogm_orig_update()
1033 router->if_incoming); in batadv_iv_ogm_orig_update()
1047 batadv_neigh_node_put(router); in batadv_iv_ogm_orig_update()
1314 struct batadv_neigh_node *router = NULL; in batadv_iv_ogm_process_per_outif() local
1365 router = batadv_orig_router_get(orig_node, if_outgoing); in batadv_iv_ogm_process_per_outif()
1366 if (router) { in batadv_iv_ogm_process_per_outif()
1367 router_router = batadv_orig_router_get(router->orig_node, in batadv_iv_ogm_process_per_outif()
1369 router_ifinfo = batadv_neigh_ifinfo_get(router, if_outgoing); in batadv_iv_ogm_process_per_outif()
1373 (batadv_compare_eth(router->addr, ethhdr->h_source))) in batadv_iv_ogm_process_per_outif()
1378 if (router && router_router && in batadv_iv_ogm_process_per_outif()
1379 (batadv_compare_eth(router->addr, prev_sender)) && in batadv_iv_ogm_process_per_outif()
1381 (batadv_compare_eth(router->addr, router_router->addr))) { in batadv_iv_ogm_process_per_outif()
1492 batadv_neigh_node_put(router); in batadv_iv_ogm_process_per_outif()
2250 struct batadv_neigh_node *router; in batadv_iv_gw_get_best_gw_node() local
2262 router = batadv_orig_router_get(orig_node, BATADV_IF_DEFAULT); in batadv_iv_gw_get_best_gw_node()
2263 if (!router) in batadv_iv_gw_get_best_gw_node()
2266 router_ifinfo = batadv_neigh_ifinfo_get(router, in batadv_iv_gw_get_best_gw_node()
2316 batadv_neigh_node_put(router); in batadv_iv_gw_get_best_gw_node()
2405 struct batadv_neigh_node *router; in batadv_iv_gw_dump_entry() local
2410 router = batadv_orig_router_get(gw_node->orig_node, BATADV_IF_DEFAULT); in batadv_iv_gw_dump_entry()
2411 if (!router) in batadv_iv_gw_dump_entry()
2414 router_ifinfo = batadv_neigh_ifinfo_get(router, BATADV_IF_DEFAULT); in batadv_iv_gw_dump_entry()
2442 router->addr) || in batadv_iv_gw_dump_entry()
2444 router->if_incoming->net_dev->name) || in batadv_iv_gw_dump_entry()
2446 router->if_incoming->net_dev->ifindex) || in batadv_iv_gw_dump_entry()
2461 batadv_neigh_node_put(router); in batadv_iv_gw_dump_entry()