]>
Commit | Line | Data |
---|---|---|
acddc0ed | 1 | // SPDX-License-Identifier: GPL-2.0-or-later |
718e3744 | 2 | /* RIP debug routines |
3 | * Copyright (C) 1999 Kunihiro Ishiguro <kunihiro@zebra.org> | |
718e3744 | 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) | |
718e3744 | 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 | ||
d62a17ae | 34 | extern void rip_debug_init(void); |
718e3744 | 35 | |
36 | #endif /* _ZEBRA_RIP_DEBUG_H */ |