blob: 18a6e4660ed7f4bdaead0d7e25905b41be21ce7d [file] [log] [blame]
paul718e3742002-12-13 20:15:29 +00001/*
2 * Logging function
3 * Copyright (C) 1999-2002 Yasuhiro Ohara
4 *
5 * This file is part of GNU Zebra.
6 *
7 * GNU Zebra is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by the
9 * Free Software Foundation; either version 2, or (at your option) any
10 * later version.
11 *
12 * GNU Zebra is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with GNU Zebra; see the file COPYING. If not, write to the
19 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20 * Boston, MA 02111-1307, USA.
21 */
22
23#ifndef OSPF6_DUMP_H
24#define OSPF6_DUMP_H
25
26enum ospf6_dump_type
27{
28 OSPF6_DUMP_HELLO,
29 OSPF6_DUMP_DBDESC,
30 OSPF6_DUMP_LSREQ,
31 OSPF6_DUMP_LSUPDATE,
32 OSPF6_DUMP_LSACK,
33 OSPF6_DUMP_NEIGHBOR,
34 OSPF6_DUMP_INTERFACE,
35 OSPF6_DUMP_AREA,
36 OSPF6_DUMP_LSA,
37 OSPF6_DUMP_ZEBRA,
38 OSPF6_DUMP_CONFIG,
39 OSPF6_DUMP_DBEX,
40 OSPF6_DUMP_SPF,
41 OSPF6_DUMP_ROUTE,
42 OSPF6_DUMP_LSDB,
43 OSPF6_DUMP_REDISTRIBUTE,
44 OSPF6_DUMP_HOOK,
45 OSPF6_DUMP_ASBR,
46 OSPF6_DUMP_PREFIX,
47 OSPF6_DUMP_ABR,
48 OSPF6_DUMP_MAX
49};
50
51#define IS_OSPF6_DUMP_HELLO \
52 (ospf6_dump_is_on (dump_index[OSPF6_DUMP_HELLO]))
53#define IS_OSPF6_DUMP_DBDESC \
54 (ospf6_dump_is_on (dump_index[OSPF6_DUMP_DBDESC]))
55#define IS_OSPF6_DUMP_LSREQ \
56 (ospf6_dump_is_on (dump_index[OSPF6_DUMP_LSREQ]))
57#define IS_OSPF6_DUMP_LSUPDATE \
58 (ospf6_dump_is_on (dump_index[OSPF6_DUMP_LSUPDATE]))
59#define IS_OSPF6_DUMP_LSACK \
60 (ospf6_dump_is_on (dump_index[OSPF6_DUMP_LSACK]))
61#define IS_OSPF6_DUMP_NEIGHBOR \
62 (ospf6_dump_is_on (dump_index[OSPF6_DUMP_NEIGHBOR]))
63#define IS_OSPF6_DUMP_INTERFACE \
64 (ospf6_dump_is_on (dump_index[OSPF6_DUMP_INTERFACE]))
65#define IS_OSPF6_DUMP_LSA \
66 (ospf6_dump_is_on (dump_index[OSPF6_DUMP_LSA]))
67#define IS_OSPF6_DUMP_ZEBRA \
68 (ospf6_dump_is_on (dump_index[OSPF6_DUMP_ZEBRA]))
69#define IS_OSPF6_DUMP_CONFIG \
70 (ospf6_dump_is_on (dump_index[OSPF6_DUMP_CONFIG]))
71#define IS_OSPF6_DUMP_DBEX \
72 (ospf6_dump_is_on (dump_index[OSPF6_DUMP_DBEX]))
73#define IS_OSPF6_DUMP_SPF \
74 (ospf6_dump_is_on (dump_index[OSPF6_DUMP_SPF]))
75#define IS_OSPF6_DUMP_ROUTE \
76 (ospf6_dump_is_on (dump_index[OSPF6_DUMP_ROUTE]))
77#define IS_OSPF6_DUMP_LSDB \
78 (ospf6_dump_is_on (dump_index[OSPF6_DUMP_LSDB]))
79#define IS_OSPF6_DUMP_REDISTRIBUTE \
80 (ospf6_dump_is_on (dump_index[OSPF6_DUMP_REDISTRIBUTE]))
81#define IS_OSPF6_DUMP_HOOK \
82 (ospf6_dump_is_on (dump_index[OSPF6_DUMP_HOOK]))
83#define IS_OSPF6_DUMP_ASBR \
84 (ospf6_dump_is_on (dump_index[OSPF6_DUMP_ASBR]))
85#define IS_OSPF6_DUMP_PREFIX \
86 (ospf6_dump_is_on (dump_index[OSPF6_DUMP_PREFIX]))
87
88extern char dump_index[OSPF6_DUMP_MAX];
89
90void ospf6_dump_init ();
91int ospf6_dump_is_on (int index);
92int ospf6_dump_install (char *name, char *help);
93
94#endif /* OSPF6_DUMP_H */
95