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

Lines Matching refs:o6a

29 ospf6_area_foreach_interface (struct ospf6_area *o6a, void *arg, int val,
35 for (node = listhead (o6a->if_list); node; nextnode (node))
43 ospf6_area_foreach_neighbor (struct ospf6_area *o6a, void *arg, int val,
49 for (node = listhead (o6a->if_list); node; nextnode (node))
60 struct ospf6_area *o6a = (struct ospf6_area *) THREAD_ARG (t);
62 o6a->maxage_remover = (struct thread *) NULL;
65 o6a->foreach_nei (o6a, &count, NBS_EXCHANGE, ospf6_count_state);
66 o6a->foreach_nei (o6a, &count, NBS_LOADING, ospf6_count_state);
70 ospf6_lsdb_remove_maxage (o6a->lsdb);
77 struct ospf6_area *o6a = (struct ospf6_area *) obj;
79 if (o6a->maxage_remover != NULL)
82 o6a->maxage_remover =
83 thread_add_event (master, ospf6_area_maxage_remover, o6a, 0);
87 ospf6_area_is_stub (struct ospf6_area *o6a)
89 if (OSPF6_OPT_ISSET (o6a->options, OSPF6_OPT_E))
95 ospf6_area_is_transit (struct ospf6_area *o6a)
163 struct ospf6_area *o6a;
167 o6a = XCALLOC (MTYPE_OSPF6_AREA, sizeof (struct ospf6_area));
170 inet_ntop (AF_INET, &area_id, o6a->str, sizeof (o6a->str));
171 o6a->area_id = area_id;
172 o6a->if_list = list_new ();
174 o6a->lsdb = ospf6_lsdb_create ();
175 o6a->spf_tree = ospf6_spftree_create ();
177 snprintf (namebuf, sizeof (namebuf), "Area %s's route table", o6a->str);
178 o6a->route_table = ospf6_route_table_create (namebuf);
179 o6a->route_table->hook_add = ospf6_area_route_add;
180 o6a->route_table->hook_change = ospf6_area_route_add;
181 o6a->route_table->hook_remove = ospf6_area_route_remove;
183 snprintf (namebuf, sizeof (namebuf), "Area %s's topology table", o6a->str);
184 o6a->table_topology = ospf6_route_table_create (namebuf);
185 o6a->table_topology->hook_add = ospf6_intra_topology_add;
186 o6a->table_topology->hook_change = ospf6_intra_topology_add;
187 o6a->table_topology->hook_remove = ospf6_intra_topology_remove;
190 OSPF6_OPT_SET (o6a->options, OSPF6_OPT_V6);
191 OSPF6_OPT_SET (o6a->options, OSPF6_OPT_E);
192 OSPF6_OPT_SET (o6a->options, OSPF6_OPT_R);
194 o6a->foreach_if = ospf6_area_foreach_interface;
195 o6a->foreach_nei = ospf6_area_foreach_neighbor;
197 return o6a;
201 ospf6_area_bind_top (struct ospf6_area *o6a, struct ospf6 *o6)
203 o6a->ospf6 = o6;
204 CALL_CHANGE_HOOK (&area_hook, o6a);
209 ospf6_area_delete (struct ospf6_area *o6a)
214 CALL_REMOVE_HOOK (&area_hook, o6a);
217 for (n = listhead (o6a->if_list); n; nextnode (n))
222 list_delete (o6a->if_list);
225 ospf6_lsdb_remove_all (o6a->lsdb);
231 if (o6a->spf_calc)
232 thread_cancel (o6a->spf_calc);
233 o6a->spf_calc = (struct thread *) NULL;
234 if (o6a->route_calc)
235 thread_cancel (o6a->route_calc);
236 o6a->route_calc = (struct thread *) NULL;
239 ospf6_route_table_delete (o6a->route_table);
241 ospf6_spftree_delete (o6a->spf_tree);
242 ospf6_route_table_delete (o6a->table_topology);
245 XFREE (MTYPE_OSPF6_AREA, o6a);
251 struct ospf6_area *o6a;
256 o6a = (struct ospf6_area *) getdata (n);
257 if (o6a->area_id == area_id)
258 return o6a;
265 ospf6_area_show (struct vty *vty, struct ospf6_area *o6a)
270 vty_out (vty, " Area %s%s", o6a->str, VTY_NEWLINE);
272 o6a->lsdb->count, VTY_NEWLINE);
274 ospf6_spf_statistics_show (vty, o6a->spf_tree);
277 for (i = listhead (o6a->if_list); i; nextnode (i))
284 for (i = listhead (o6a->if_list); i; nextnode (i))
293 ospf6_area_statistics_show (struct vty *vty, struct ospf6_area *o6a)
299 vty_out (vty, " Statistics of Area %s%s", o6a->str, VTY_NEWLINE);
314 struct ospf6_area *o6a;
320 o6a = ospf6_area_lookup (area_id, ospf6);
322 if (! o6a)
328 return ospf6_route_table_show (vty, argc, argv, o6a->route_table);