summaryrefslogtreecommitdiff
path: root/ospf6d/ospf6_dump.h
blob: 18a6e4660ed7f4bdaead0d7e25905b41be21ce7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
/*
 * Logging function
 * Copyright (C) 1999-2002 Yasuhiro Ohara
 *
 * This file is part of GNU Zebra.
 *
 * GNU Zebra is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License as published by the
 * Free Software Foundation; either version 2, or (at your option) any
 * later version.
 *
 * GNU Zebra is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with GNU Zebra; see the file COPYING.  If not, write to the 
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330, 
 * Boston, MA 02111-1307, USA.  
 */

#ifndef OSPF6_DUMP_H
#define OSPF6_DUMP_H

enum ospf6_dump_type
{
  OSPF6_DUMP_HELLO,
  OSPF6_DUMP_DBDESC,
  OSPF6_DUMP_LSREQ,
  OSPF6_DUMP_LSUPDATE,
  OSPF6_DUMP_LSACK,
  OSPF6_DUMP_NEIGHBOR,
  OSPF6_DUMP_INTERFACE,
  OSPF6_DUMP_AREA,
  OSPF6_DUMP_LSA,
  OSPF6_DUMP_ZEBRA,
  OSPF6_DUMP_CONFIG,
  OSPF6_DUMP_DBEX,
  OSPF6_DUMP_SPF,
  OSPF6_DUMP_ROUTE,
  OSPF6_DUMP_LSDB,
  OSPF6_DUMP_REDISTRIBUTE,
  OSPF6_DUMP_HOOK,
  OSPF6_DUMP_ASBR,
  OSPF6_DUMP_PREFIX,
  OSPF6_DUMP_ABR,
  OSPF6_DUMP_MAX
};

#define IS_OSPF6_DUMP_HELLO \
  (ospf6_dump_is_on (dump_index[OSPF6_DUMP_HELLO]))
#define IS_OSPF6_DUMP_DBDESC \
  (ospf6_dump_is_on (dump_index[OSPF6_DUMP_DBDESC]))
#define IS_OSPF6_DUMP_LSREQ \
  (ospf6_dump_is_on (dump_index[OSPF6_DUMP_LSREQ]))
#define IS_OSPF6_DUMP_LSUPDATE \
  (ospf6_dump_is_on (dump_index[OSPF6_DUMP_LSUPDATE]))
#define IS_OSPF6_DUMP_LSACK \
  (ospf6_dump_is_on (dump_index[OSPF6_DUMP_LSACK]))
#define IS_OSPF6_DUMP_NEIGHBOR \
  (ospf6_dump_is_on (dump_index[OSPF6_DUMP_NEIGHBOR]))
#define IS_OSPF6_DUMP_INTERFACE \
  (ospf6_dump_is_on (dump_index[OSPF6_DUMP_INTERFACE]))
#define IS_OSPF6_DUMP_LSA \
  (ospf6_dump_is_on (dump_index[OSPF6_DUMP_LSA]))
#define IS_OSPF6_DUMP_ZEBRA \
  (ospf6_dump_is_on (dump_index[OSPF6_DUMP_ZEBRA]))
#define IS_OSPF6_DUMP_CONFIG \
  (ospf6_dump_is_on (dump_index[OSPF6_DUMP_CONFIG]))
#define IS_OSPF6_DUMP_DBEX \
  (ospf6_dump_is_on (dump_index[OSPF6_DUMP_DBEX]))
#define IS_OSPF6_DUMP_SPF \
  (ospf6_dump_is_on (dump_index[OSPF6_DUMP_SPF]))
#define IS_OSPF6_DUMP_ROUTE \
  (ospf6_dump_is_on (dump_index[OSPF6_DUMP_ROUTE]))
#define IS_OSPF6_DUMP_LSDB \
  (ospf6_dump_is_on (dump_index[OSPF6_DUMP_LSDB]))
#define IS_OSPF6_DUMP_REDISTRIBUTE \
  (ospf6_dump_is_on (dump_index[OSPF6_DUMP_REDISTRIBUTE]))
#define IS_OSPF6_DUMP_HOOK \
  (ospf6_dump_is_on (dump_index[OSPF6_DUMP_HOOK]))
#define IS_OSPF6_DUMP_ASBR \
  (ospf6_dump_is_on (dump_index[OSPF6_DUMP_ASBR]))
#define IS_OSPF6_DUMP_PREFIX \
  (ospf6_dump_is_on (dump_index[OSPF6_DUMP_PREFIX]))

extern char dump_index[OSPF6_DUMP_MAX];

void ospf6_dump_init ();
int ospf6_dump_is_on (int index);
int ospf6_dump_install (char *name, char *help);

#endif /* OSPF6_DUMP_H */