Lines Matching refs:routes
83 if (nr_node->routes[y].quality > nr_node->routes[x].quality) { in re_sort_routes()
89 swap(nr_node->routes[x], nr_node->routes[y]); in re_sort_routes()
128 if (nr_nodet->routes[i].neighbour == nr_neigh) in nr_add_node()
199 nr_node->routes[0].quality = quality; in nr_add_node()
200 nr_node->routes[0].obs_count = obs_count; in nr_add_node()
201 nr_node->routes[0].neighbour = nr_neigh; in nr_add_node()
220 if (nr_node->routes[i].neighbour == nr_neigh) { in nr_add_node()
221 nr_node->routes[i].quality = quality; in nr_add_node()
222 nr_node->routes[i].obs_count = obs_count; in nr_add_node()
231 nr_node->routes[2] = nr_node->routes[1]; in nr_add_node()
232 nr_node->routes[1] = nr_node->routes[0]; in nr_add_node()
234 nr_node->routes[0].quality = quality; in nr_add_node()
235 nr_node->routes[0].obs_count = obs_count; in nr_add_node()
236 nr_node->routes[0].neighbour = nr_neigh; in nr_add_node()
244 if (quality > nr_node->routes[2].quality) { in nr_add_node()
245 nr_node->routes[2].neighbour->count--; in nr_add_node()
246 nr_neigh_put(nr_node->routes[2].neighbour); in nr_add_node()
248 if (nr_node->routes[2].neighbour->count == 0 && !nr_node->routes[2].neighbour->locked) in nr_add_node()
249 nr_remove_neigh(nr_node->routes[2].neighbour); in nr_add_node()
251 nr_node->routes[2].quality = quality; in nr_add_node()
252 nr_node->routes[2].obs_count = obs_count; in nr_add_node()
253 nr_node->routes[2].neighbour = nr_neigh; in nr_add_node()
275 if (nr_node->routes[i].neighbour == nr_neigh) { in nr_add_node()
344 if (nr_node->routes[i].neighbour == nr_neigh) { in nr_del_node()
359 nr_node->routes[0] = nr_node->routes[1]; in nr_del_node()
362 nr_node->routes[1] = nr_node->routes[2]; in nr_del_node()
466 switch (s->routes[i].obs_count) { in nr_dec_obs()
471 nr_neigh = s->routes[i].neighbour; in nr_dec_obs()
483 s->routes[0] = s->routes[1]; in nr_dec_obs()
486 s->routes[1] = s->routes[2]; in nr_dec_obs()
494 s->routes[i].obs_count--; in nr_dec_obs()
526 if (t->routes[i].neighbour == s) { in nr_rt_device_down()
531 t->routes[0] = t->routes[1]; in nr_rt_device_down()
534 t->routes[1] = t->routes[2]; in nr_rt_device_down()
739 nr_node->routes[nr_node->which].neighbour == nr_neigh) in nr_link_failed()
802 nr_neigh = nr_node->routes[nr_node->which].neighbour; in nr_route_frame()
883 nr_node->routes[i].quality, in nr_node_show()
884 nr_node->routes[i].obs_count, in nr_node_show()
885 nr_node->routes[i].neighbour->number); in nr_node_show()