ospf6_top.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. #ifndef OSPF6_TOP_H
  22. #define OSPF6_TOP_H
  23. #include "routemap.h"
  24. /* OSPFv3 top level data structure */
  25. struct ospf6
  26. {
  27. /* my router id */
  28. u_int32_t router_id;
  29. /* static router id */
  30. u_int32_t router_id_static;
  31. /* start time */
  32. struct timeval starttime;
  33. /* list of areas */
  34. struct list *area_list;
  35. /* AS scope link state database */
  36. struct ospf6_lsdb *lsdb;
  37. struct ospf6_lsdb *lsdb_self;
  38. struct ospf6_route_table *route_table;
  39. struct ospf6_route_table *brouter_table;
  40. struct ospf6_route_table *external_table;
  41. struct route_table *external_id_table;
  42. u_int32_t external_id;
  43. /* redistribute route-map */
  44. struct
  45. {
  46. char *name;
  47. struct route_map *map;
  48. } rmap[ZEBRA_ROUTE_MAX];
  49. u_char flag;
  50. struct thread *maxage_remover;
  51. };
  52. #define OSPF6_DISABLED 0x01
  53. /* global pointer for OSPF top data structure */
  54. extern struct ospf6 *ospf6;
  55. /* prototypes */
  56. extern void ospf6_top_init (void);
  57. extern void ospf6_maxage_remove (struct ospf6 *o);
  58. #endif /* OSPF6_TOP_H */