ospf6_area.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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 OSPF_AREA_H
  22. #define OSPF_AREA_H
  23. #include "ospf6_top.h"
  24. struct ospf6_area
  25. {
  26. /* Reference to Top data structure */
  27. struct ospf6 *ospf6;
  28. /* Area-ID */
  29. u_int32_t area_id;
  30. /* Area-ID string */
  31. char name[16];
  32. /* flag */
  33. u_char flag;
  34. /* OSPF Option */
  35. u_char options[3];
  36. /* OSPF interface list */
  37. list if_list;
  38. struct ospf6_lsdb *lsdb;
  39. struct ospf6_route_table *spf_table;
  40. struct ospf6_route_table *route_table;
  41. struct thread *thread_spf_calculation;
  42. struct thread *thread_route_calculation;
  43. struct thread *thread_router_lsa;
  44. struct thread *thread_intra_prefix_lsa;
  45. u_int32_t router_lsa_size_limit;
  46. };
  47. #define OSPF6_AREA_DISABLE 0x01
  48. #define OSPF6_AREA_STUB 0x02
  49. /* prototypes */
  50. int ospf6_area_cmp (void *va, void *vb);
  51. int ospf6_area_is_stub (struct ospf6_area *o6a);
  52. struct ospf6_area *ospf6_area_create (u_int32_t, struct ospf6 *);
  53. void ospf6_area_delete (struct ospf6_area *);
  54. struct ospf6_area *ospf6_area_lookup (u_int32_t, struct ospf6 *);
  55. void ospf6_area_enable (struct ospf6_area *);
  56. void ospf6_area_disable (struct ospf6_area *);
  57. void ospf6_area_show (struct vty *, struct ospf6_area *);
  58. void ospf6_area_init ();
  59. #endif /* OSPF_AREA_H */