2 * OSPFv3 Top Level Data Structure
3 * Copyright (C) 1999 Yasuhiro Ohara
5 * This file is part of GNU Zebra.
7 * GNU Zebra is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by the
9 * Free Software Foundation; either version 2, or (at your option) any
12 * GNU Zebra is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with GNU Zebra; see the file COPYING. If not, write to the
19 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20 * Boston, MA 02111-1307, USA.
28 /* ospfv3 top level data structure */
35 struct timeval starttime
;
37 /* ospf version must be 3 */
38 unsigned char version
;
46 /* AS scope link state database */
47 struct ospf6_lsdb
*lsdb
;
49 /* redistribute route-map */
53 struct route_map
*map
;
54 } rmap
[ZEBRA_ROUTE_MAX
];
56 struct thread
*t_route_calculation
;
57 u_int stat_route_calculation_execed
;
59 struct ospf6_route_table
*route_table
;
60 struct ospf6_route_table
*topology_table
;
61 struct ospf6_route_table
*external_table
;
63 void (*foreach_area
) (struct ospf6
*, void *arg
, int val
,
64 void (*func
) (void *, int, void *));
65 void (*foreach_if
) (struct ospf6
*, void *arg
, int val
,
66 void (*func
) (void *, int, void *));
67 void (*foreach_nei
) (struct ospf6
*, void *arg
, int val
,
68 void (*func
) (void *, int, void *));
70 struct thread
*maxage_remover
;
75 extern struct ospf6
*ospf6
;
79 ospf6_top_count_neighbor_in_state (u_char state
, struct ospf6
*o6
);
82 ospf6_top_schedule_maxage_remover (void *arg
, int val
, struct ospf6
*o6
);
84 void ospf6_show (struct vty
*);
85 void ospf6_statistics_show (struct vty
*vty
, struct ospf6
*o6
);
87 struct ospf6
*ospf6_start ();
90 void ospf6_delete (struct ospf6
*);
91 int ospf6_is_asbr (struct ospf6
*);
93 void ospf6_top_init ();
95 #endif /* OSPF6_TOP_H */