]>
git.proxmox.com Git - mirror_frr.git/blob - ripd/rip_debug.h
1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright (C) 1999 Kunihiro Ishiguro <kunihiro@zebra.org>
6 #ifndef _ZEBRA_RIP_DEBUG_H
7 #define _ZEBRA_RIP_DEBUG_H
9 /* RIP debug event flags. */
10 #define RIP_DEBUG_EVENT 0x01
12 /* RIP debug packet flags. */
13 #define RIP_DEBUG_PACKET 0x01
14 #define RIP_DEBUG_SEND 0x20
15 #define RIP_DEBUG_RECV 0x40
16 #define RIP_DEBUG_DETAIL 0x80
18 /* RIP debug zebra flags. */
19 #define RIP_DEBUG_ZEBRA 0x01
21 /* Debug related macro. */
22 #define IS_RIP_DEBUG_EVENT (rip_debug_event & RIP_DEBUG_EVENT)
24 #define IS_RIP_DEBUG_PACKET (rip_debug_packet & RIP_DEBUG_PACKET)
25 #define IS_RIP_DEBUG_SEND (rip_debug_packet & RIP_DEBUG_SEND)
26 #define IS_RIP_DEBUG_RECV (rip_debug_packet & RIP_DEBUG_RECV)
28 #define IS_RIP_DEBUG_ZEBRA (rip_debug_zebra & RIP_DEBUG_ZEBRA)
30 extern unsigned long rip_debug_event
;
31 extern unsigned long rip_debug_packet
;
32 extern unsigned long rip_debug_zebra
;
34 extern void rip_debug_init(void);
36 #endif /* _ZEBRA_RIP_DEBUG_H */