]> git.proxmox.com Git - mirror_frr.git/blame - staticd/static_debug.h
Merge pull request #10658 from proelbtn/fix/srv6-l3vpn-transposition
[mirror_frr.git] / staticd / static_debug.h
CommitLineData
31ddf3b7
MS
1/*
2 * Staticd debug related functions
3 * Copyright (C) 2019 Volta Networks Inc.
4 * Mark Stapp
5 *
8678d638 6 * This file is part of FRRouting (FRR).
31ddf3b7
MS
7 *
8 * GNU Zebra is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU General Public License as published by the
10 * Free Software Foundation; either version 2, or (at your option) any
11 * later version.
12 *
13 * GNU Zebra is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License along
19 * with this program; see the file COPYING; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23#ifndef _STATIC_DEBUG_H
24#define _STATIC_DEBUG_H
25
31ddf3b7
MS
26#include <zebra.h>
27
28#include "lib/debug.h"
29
deca28a3
CH
30#ifdef __cplusplus
31extern "C" {
32#endif
33
31ddf3b7 34/* staticd debugging records */
f140bd50 35extern struct debug static_dbg_events;
b2f6ab67 36extern struct debug static_dbg_route;
31ddf3b7
MS
37
38/*
39 * Initialize staticd debugging.
40 *
41 * Installs VTY commands and registers callbacks.
42 */
43void static_debug_init(void);
44
45/*
46 * Print staticd debugging configuration.
47 *
48 * vty
49 * VTY to print debugging configuration to.
50 */
51int static_config_write_debug(struct vty *vty);
52
53/*
54 * Print staticd debugging configuration, human readable form.
55 *
56 * vty
57 * VTY to print debugging configuration to.
58 */
59int static_debug_status_write(struct vty *vty);
60
61/*
62 * Set debugging status.
63 *
64 * vtynode
65 * vty->node
66 *
67 * onoff
68 * Whether to turn the specified debugs on or off
69 *
70 * events
71 * Debug general internal events
72 *
73 */
b2f6ab67 74void static_debug_set(int vtynode, bool onoff, bool events, bool route);
31ddf3b7 75
deca28a3
CH
76#ifdef __cplusplus
77}
78#endif
31ddf3b7
MS
79
80#endif /* _STATIC_DEBUG_H */