• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/zebra/ospf6d/

Lines Matching refs:o6a

229 ospf6_spf_lsd_num (struct ospf6_vertex *V, struct ospf6_area *o6a)
242 lsa = ospf6_lsdb_lookup_lsdb (type, id, adv_router, o6a->lsdb);
416 struct ospf6_area *o6a)
472 if (adv_router == o6a->ospf6->router_id &&
479 lsa = ospf6_lsdb_lookup_lsdb (type, id, adv_router, o6a->lsdb);
568 if (ospf6_spf_nexthop_calculation (W, ifindex, V, o6a->spf_tree) < 0)
612 ospf6_spf_initialize (list candidate_list, struct ospf6_area *o6a)
626 ospf6_route_remove_all (o6a->table_topology);
629 for (node = listhead (o6a->spf_tree->list); node; nextnode (node))
634 list_delete_all_node (o6a->spf_tree->list);
646 lsa = ospf6_lsdb_lookup_lsdb (type, id, adv_router, o6a->lsdb);
699 o6a->spf_tree->root = v;
755 ospf6_spf_install (struct ospf6_vertex *vertex, struct ospf6_area *o6a)
774 listnode_add (o6a->spf_tree->list, vertex);
784 if (vertex == o6a->spf_tree->root)
797 request.path.area_id = o6a->area_id;
824 ospf6_route_add (&request, o6a->table_topology);
829 ospf6_spf_lookup (struct ospf6_vertex *w, struct ospf6_area *o6a)
834 for (node = listhead (o6a->spf_tree->list); node; nextnode (node))
857 ospf6_spf_calculation (struct ospf6_area *o6a)
863 if (! o6a || ! o6a->spf_tree)
875 zlog_info ("SPF: Calculation for area %s", o6a->str);
877 ospf6_route_table_freeze (o6a->table_topology);
878 ospf6_route_remove_all (o6a->table_topology);
882 ospf6_spf_initialize (candidate_list, o6a);
914 ospf6_spf_install (V, o6a);
917 ldnum = ospf6_spf_lsd_num (V, o6a);
921 W = ospf6_spf_vertex_create (i, V, o6a);
928 if (ospf6_spf_lookup (W, o6a))
981 o6a->spf_tree->t_spf_calculation = (struct thread *) NULL;
985 zlog_info ("SPF: Calculation for area %s done", o6a->str);
992 ospf6_route_table_thaw (o6a->table_topology);
999 struct ospf6_area *o6a;
1002 o6a = (struct ospf6_area *) THREAD_ARG (t);
1003 if (! o6a)
1009 if (! o6a->spf_tree)
1011 zlog_err ("SPF: Can't find SPF Tree for area: %s", o6a->str);
1017 ospf6_spf_calculation (o6a);
1021 o6a->spf_tree->timerun ++;
1023 ospf6_timeval_add_equal (&runtime, &o6a->spf_tree->runtime_total);
1025 if (o6a->spf_tree->timerun == 1)
1027 o6a->spf_tree->runtime_min.tv_sec = runtime.tv_sec;
1028 o6a->spf_tree->runtime_min.tv_usec = runtime.tv_usec;
1029 o6a->spf_tree->runtime_max.tv_sec = runtime.tv_sec;
1030 o6a->spf_tree->runtime_max.tv_usec = runtime.tv_usec;
1032 if (ospf6_timeval_cmp (o6a->spf_tree->runtime_min, runtime) > 0)
1034 o6a->spf_tree->runtime_min.tv_sec = runtime.tv_sec;
1035 o6a->spf_tree->runtime_min.tv_usec = runtime.tv_usec;
1037 if (ospf6_timeval_cmp (runtime, o6a->spf_tree->runtime_max) > 0)
1039 o6a->spf_tree->runtime_max.tv_sec = runtime.tv_sec;
1040 o6a->spf_tree->runtime_max.tv_usec = runtime.tv_usec;
1043 if (o6a->spf_tree->timerun == 1)
1046 ospf6_timeval_add_equal (&interval, &o6a->spf_tree->interval_total);
1047 o6a->spf_tree->interval_min.tv_sec = interval.tv_sec;
1048 o6a->spf_tree->interval_min.tv_usec = interval.tv_usec;
1049 o6a->spf_tree->interval_max.tv_sec = interval.tv_sec;
1050 o6a->spf_tree->interval_max.tv_usec = interval.tv_usec;
1054 ospf6_timeval_sub (&start, &o6a->spf_tree->updated_time, &interval);
1055 ospf6_timeval_add_equal (&interval, &o6a->spf_tree->interval_total);
1056 if (ospf6_timeval_cmp (o6a->spf_tree->interval_min, interval) > 0)
1058 o6a->spf_tree->interval_min.tv_sec = interval.tv_sec;
1059 o6a->spf_tree->interval_min.tv_usec = interval.tv_usec;
1061 if (ospf6_timeval_cmp (interval, o6a->spf_tree->interval_max) > 0)
1063 o6a->spf_tree->interval_max.tv_sec = interval.tv_sec;
1064 o6a->spf_tree->interval_max.tv_usec = interval.tv_usec;
1067 o6a->spf_tree->updated_time.tv_sec = end.tv_sec;
1068 o6a->spf_tree->updated_time.tv_usec = end.tv_usec;
1071 o6a->spf_tree->t_spf_calculation = (struct thread *) NULL;
1079 struct ospf6_area *o6a = NULL;
1084 o6a = new->scope;
1088 o6a = o6i->area;
1091 if (o6a)
1092 ospf6_spf_calculation_schedule (o6a->area_id);
1098 struct ospf6_area *o6a;
1101 o6a = ospf6_area_lookup (area_id, ospf6);
1102 if (! o6a)
1109 if (! o6a->spf_tree)
1111 zlog_err ("SPF: Can't find SPF Tree for area: %s", o6a->str);
1115 if (o6a->spf_tree->t_spf_calculation)
1118 o6a->spf_tree->t_spf_calculation =
1119 thread_add_event (master, ospf6_spf_calculation_thread, o6a, 0);
1292 struct ospf6_area *o6a;
1298 o6a = ospf6_area_lookup (area_id, ospf6);
1299 if (! o6a)
1302 for (i = listhead (o6a->spf_tree->list); i; nextnode (i))
1357 struct ospf6_area *o6a;
1362 o6a = ospf6_area_lookup (area_id, ospf6);
1363 if (! o6a)
1367 VTY_NEWLINE, o6a->str, VTY_NEWLINE, VTY_NEWLINE);
1369 if (! o6a->spf_tree->root)
1372 ospf6_spftree_show (vty, "", 0, o6a->spf_tree->root);
1387 struct ospf6_area *o6a;
1393 o6a = ospf6_area_lookup (area_id, ospf6);
1395 if (! o6a)
1401 return ospf6_route_table_show (vty, argc, argv, o6a->table_topology);