]> git.proxmox.com Git - mirror_frr.git/blob - bgpd/rfapi/vnc_debug.h
*: reindent
[mirror_frr.git] / bgpd / rfapi / vnc_debug.h
1 /*
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 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 *
19 */
20
21 #ifndef _QUAGGA_BGP_VNC_DEBUG_H
22 #define _QUAGGA_BGP_VNC_DEBUG_H
23
24 #if ENABLE_BGP_VNC
25
26 /*
27 * debug state storage
28 */
29 extern unsigned long conf_vnc_debug;
30 extern unsigned long term_vnc_debug;
31
32 /*
33 * debug flag bits
34 */
35 #define VNC_DEBUG_RFAPI_QUERY 0x00000001
36 #define VNC_DEBUG_IMPORT_BI_ATTACH 0x00000002
37 #define VNC_DEBUG_IMPORT_DEL_REMOTE 0x00000004
38 #define VNC_DEBUG_EXPORT_BGP_GETCE 0x00000008
39 #define VNC_DEBUG_EXPORT_BGP_DIRECT_ADD 0x00000010
40 #define VNC_DEBUG_IMPORT_BGP_ADD_ROUTE 0x00000020
41 #define VNC_DEBUG_VERBOSE 0x00000040
42 #define VNC_DEBUG_ANY 0xFFFFFFFF
43
44 #define VNC_DEBUG(bit) (term_vnc_debug & (VNC_DEBUG_ ## bit))
45 #define vnc_zlog_debug_verbose if (VNC_DEBUG(VERBOSE)) zlog_debug
46 #define vnc_zlog_debug_any if (VNC_DEBUG(ANY)) zlog_debug
47
48 extern void vnc_debug_init(void);
49
50 #endif /* ENABLE_BGP_VNC */
51
52 #endif /* _QUAGGA_BGP_VNC_DEBUG_H */