source: src/router/quagga/ospf6d/ospf6_top.h @ 10627

Last change on this file since 10627 was 10627, checked in by BrainSlayer, 5 years ago

quagga update

File size: 1.8 KB
Line 
1/*
2 * Copyright (C) 2003 Yasuhiro Ohara
3 *
4 * This file is part of GNU Zebra.
5 *
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.
10 *
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.
15 *
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. 
20 */
21
22#ifndef OSPF6_TOP_H
23#define OSPF6_TOP_H
24
25#include "routemap.h"
26
27/* OSPFv3 top level data structure */
28struct ospf6
29{
30  /* my router id */
31  u_int32_t router_id;
32
33  /* static router id */
34  u_int32_t router_id_static;
35
36  /* start time */
37  struct timeval starttime;
38
39  /* list of areas */
40  struct list *area_list;
41
42  /* AS scope link state database */
43  struct ospf6_lsdb *lsdb;
44  struct ospf6_lsdb *lsdb_self;
45
46  struct ospf6_route_table *route_table;
47  struct ospf6_route_table *brouter_table;
48
49  struct ospf6_route_table *external_table;
50  struct route_table *external_id_table;
51  u_int32_t external_id;
52
53  /* redistribute route-map */
54  struct
55  {
56    char *name;
57    struct route_map *map;
58  } rmap[ZEBRA_ROUTE_MAX];
59
60  u_char flag;
61
62  struct thread *maxage_remover;
63};
64
65#define OSPF6_DISABLED    0x01
66
67/* global pointer for OSPF top data structure */
68extern struct ospf6 *ospf6;
69
70/* prototypes */
71extern void ospf6_top_init (void);
72
73extern void ospf6_maxage_remove (struct ospf6 *o);
74
75#endif /* OSPF6_TOP_H */
76
77
Note: See TracBrowser for help on using the repository browser.