]>
Commit | Line | Data |
---|---|---|
d62a17ae | 1 | /* |
65efcfce LB |
2 | * |
3 | * Copyright 2016, LabN Consulting, L.L.C. | |
4 | * | |
5 | * This program is free software; you can redistribute it and/or | |
6 | * modify it under the terms of the GNU General Public License | |
7 | * as published by the Free Software Foundation; either version 2 | |
8 | * of the License, or (at your option) any later version. | |
9 | * | |
10 | * This program is distributed in the hope that it will be useful, | |
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
13 | * GNU General Public License for more details. | |
14 | * | |
896014f4 DL |
15 | * You should have received a copy of the GNU General Public License along |
16 | * with this program; see the file COPYING; if not, write to the Free Software | |
17 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | |
65efcfce LB |
18 | */ |
19 | ||
20 | #ifndef _QUAGGA_BGP_VNC_DEBUG_H | |
21 | #define _QUAGGA_BGP_VNC_DEBUG_H | |
22 | ||
23 | #if ENABLE_BGP_VNC | |
24 | ||
25 | /* | |
26 | * debug state storage | |
27 | */ | |
28 | extern unsigned long conf_vnc_debug; | |
29 | extern unsigned long term_vnc_debug; | |
30 | ||
31 | /* | |
32 | * debug flag bits | |
33 | */ | |
34 | #define VNC_DEBUG_RFAPI_QUERY 0x00000001 | |
35 | #define VNC_DEBUG_IMPORT_BI_ATTACH 0x00000002 | |
36 | #define VNC_DEBUG_IMPORT_DEL_REMOTE 0x00000004 | |
37 | #define VNC_DEBUG_EXPORT_BGP_GETCE 0x00000008 | |
38 | #define VNC_DEBUG_EXPORT_BGP_DIRECT_ADD 0x00000010 | |
39 | #define VNC_DEBUG_IMPORT_BGP_ADD_ROUTE 0x00000020 | |
a3b55c25 LB |
40 | #define VNC_DEBUG_VERBOSE 0x00000040 |
41 | #define VNC_DEBUG_ANY 0xFFFFFFFF | |
65efcfce | 42 | |
a3b55c25 LB |
43 | #define VNC_DEBUG(bit) (term_vnc_debug & (VNC_DEBUG_ ## bit)) |
44 | #define vnc_zlog_debug_verbose if (VNC_DEBUG(VERBOSE)) zlog_debug | |
45 | #define vnc_zlog_debug_any if (VNC_DEBUG(ANY)) zlog_debug | |
65efcfce | 46 | |
d62a17ae | 47 | extern void vnc_debug_init(void); |
65efcfce LB |
48 | |
49 | #endif /* ENABLE_BGP_VNC */ | |
50 | ||
51 | #endif /* _QUAGGA_BGP_VNC_DEBUG_H */ |