]>
Commit | Line | Data |
---|---|---|
acddc0ed | 1 | // SPDX-License-Identifier: GPL-2.0-or-later |
718e3744 | 2 | /* |
3 | * RIPng debug output routines | |
4 | * Copyright (C) 1998, 1999 Kunihiro Ishiguro | |
718e3744 | 5 | */ |
6 | ||
7 | #ifndef _ZEBRA_RIPNG_DEBUG_H | |
8 | #define _ZEBRA_RIPNG_DEBUG_H | |
9 | ||
10 | /* Debug flags. */ | |
11 | #define RIPNG_DEBUG_EVENT 0x01 | |
12 | ||
13 | #define RIPNG_DEBUG_PACKET 0x01 | |
14 | #define RIPNG_DEBUG_SEND 0x20 | |
15 | #define RIPNG_DEBUG_RECV 0x40 | |
718e3744 | 16 | |
17 | #define RIPNG_DEBUG_ZEBRA 0x01 | |
18 | ||
19 | /* Debug related macro. */ | |
20 | #define IS_RIPNG_DEBUG_EVENT (ripng_debug_event & RIPNG_DEBUG_EVENT) | |
21 | ||
22 | #define IS_RIPNG_DEBUG_PACKET (ripng_debug_packet & RIPNG_DEBUG_PACKET) | |
23 | #define IS_RIPNG_DEBUG_SEND (ripng_debug_packet & RIPNG_DEBUG_SEND) | |
24 | #define IS_RIPNG_DEBUG_RECV (ripng_debug_packet & RIPNG_DEBUG_RECV) | |
718e3744 | 25 | |
26 | #define IS_RIPNG_DEBUG_ZEBRA (ripng_debug_zebra & RIPNG_DEBUG_ZEBRA) | |
27 | ||
28 | extern unsigned long ripng_debug_event; | |
29 | extern unsigned long ripng_debug_packet; | |
30 | extern unsigned long ripng_debug_zebra; | |
31 | ||
d62a17ae | 32 | extern void ripng_debug_init(void); |
718e3744 | 33 | |
34 | #endif /* _ZEBRA_RIPNG_DEBUG_H */ |