]>
git.proxmox.com Git - mirror_frr.git/blob - bgpd/rfapi/vnc_debug.h
3 * Copyright 2016, LabN Consulting, L.L.C.
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.
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.
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
20 #ifndef _QUAGGA_BGP_VNC_DEBUG_H
21 #define _QUAGGA_BGP_VNC_DEBUG_H
28 extern unsigned long conf_vnc_debug
;
29 extern unsigned long term_vnc_debug
;
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
40 #define VNC_DEBUG_VERBOSE 0x00000040
41 #define VNC_DEBUG_ANY 0xFFFFFFFF
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
47 extern void vnc_debug_init(void);
49 #endif /* ENABLE_BGP_VNC */
51 #endif /* _QUAGGA_BGP_VNC_DEBUG_H */