]> git.proxmox.com Git - mirror_frr.git/blobdiff - bgpd/rfapi/vnc_debug.h
Merge pull request #12798 from donaldsharp/rib_match_multicast
[mirror_frr.git] / bgpd / rfapi / vnc_debug.h
index 9d4270651e8f0e849fb5f945a4b7cc7b7c8969af..c7751277c83b9eb9c82a67388372dd20df1dc862 100644 (file)
@@ -1,27 +1,13 @@
-/* 
+// SPDX-License-Identifier: GPL-2.0-or-later
+/*
  *
  * Copyright 2016, LabN Consulting, L.L.C.
- *
- * This program 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
- * of the License, or (at your option) any later version.
- *
- * This program 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 this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
- *
  */
 
 #ifndef _QUAGGA_BGP_VNC_DEBUG_H
 #define _QUAGGA_BGP_VNC_DEBUG_H
 
-#if ENABLE_BGP_VNC
+#ifdef ENABLE_BGP_VNC
 
 /*
  * debug state storage
@@ -38,11 +24,14 @@ extern unsigned long term_vnc_debug;
 #define VNC_DEBUG_EXPORT_BGP_GETCE     0x00000008
 #define VNC_DEBUG_EXPORT_BGP_DIRECT_ADD        0x00000010
 #define VNC_DEBUG_IMPORT_BGP_ADD_ROUTE 0x00000020
+#define VNC_DEBUG_VERBOSE              0x00000040
+#define VNC_DEBUG_ANY                   0xFFFFFFFF
 
-#define VNC_DEBUG(bit) (term_vnc_debug & (VNC_DEBUG_ ## bit))
+#define VNC_DEBUG(bit)          (term_vnc_debug & (VNC_DEBUG_ ## bit))
+#define vnc_zlog_debug_verbose  if (VNC_DEBUG(VERBOSE)) zlog_debug
+#define vnc_zlog_debug_any      if (VNC_DEBUG(ANY)) zlog_debug
 
-extern void
-vnc_debug_init (void);
+extern void vnc_debug_init(void);
 
 #endif /* ENABLE_BGP_VNC */