]> git.proxmox.com Git - mirror_frr.git/blob - ripd/rip_debug.h
Merge pull request #13020 from SaiGomathiN/2462808-3
[mirror_frr.git] / ripd / rip_debug.h
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /* RIP debug routines
3 * Copyright (C) 1999 Kunihiro Ishiguro <kunihiro@zebra.org>
4 */
5
6 #ifndef _ZEBRA_RIP_DEBUG_H
7 #define _ZEBRA_RIP_DEBUG_H
8
9 /* RIP debug event flags. */
10 #define RIP_DEBUG_EVENT 0x01
11
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
17
18 /* RIP debug zebra flags. */
19 #define RIP_DEBUG_ZEBRA 0x01
20
21 /* Debug related macro. */
22 #define IS_RIP_DEBUG_EVENT (rip_debug_event & RIP_DEBUG_EVENT)
23
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)
27
28 #define IS_RIP_DEBUG_ZEBRA (rip_debug_zebra & RIP_DEBUG_ZEBRA)
29
30 extern unsigned long rip_debug_event;
31 extern unsigned long rip_debug_packet;
32 extern unsigned long rip_debug_zebra;
33
34 extern void rip_debug_init(void);
35
36 #endif /* _ZEBRA_RIP_DEBUG_H */