usbmodeswitch: Updated to v.1.2.6 from shibby's branch.
[tomato.git] / release / src / router / zebra / ospf6d / ospf6_top.h
blobd831d94f80ed635ee420c9f18f943e428c144981
1 /*
2 * Copyright (C) 2003 Yasuhiro Ohara
4 * This file is part of GNU Zebra.
6 * GNU Zebra is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation; either version 2, or (at your option) any
9 * later version.
11 * GNU Zebra is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with GNU Zebra; see the file COPYING. If not, write to the
18 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 * Boston, MA 02111-1307, USA.
22 #ifndef OSPF6_TOP_H
23 #define OSPF6_TOP_H
25 #include "routemap.h"
27 /* OSPFv3 top level data structure */
28 struct ospf6
30 /* my router id */
31 u_int32_t router_id;
33 /* start time */
34 struct timeval starttime;
36 /* list of areas */
37 list area_list;
39 /* AS scope link state database */
40 struct ospf6_lsdb *lsdb;
41 struct ospf6_lsdb *lsdb_self;
43 struct ospf6_route_table *route_table;
44 struct ospf6_route_table *brouter_table;
46 struct ospf6_route_table *external_table;
47 struct route_table *external_id_table;
48 u_int32_t external_id;
50 /* redistribute route-map */
51 struct
53 char *name;
54 struct route_map *map;
55 } rmap[ZEBRA_ROUTE_MAX];
57 u_char flag;
59 struct thread *maxage_remover;
62 #define OSPF6_DISABLED 0x01
64 /* global pointer for OSPF top data structure */
65 extern struct ospf6 *ospf6;
67 /* prototypes */
68 void ospf6_top_init ();
70 void ospf6_maxage_remove (struct ospf6 *o);
72 #endif /* OSPF6_TOP_H */