2023-02-08 13:17:09 +01:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2020-01-08 20:13:42 +01:00
|
|
|
/*
|
|
|
|
* Staticd debug related functions
|
|
|
|
* Copyright (C) 2019 Volta Networks Inc.
|
|
|
|
* Mark Stapp
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _STATIC_DEBUG_H
|
|
|
|
#define _STATIC_DEBUG_H
|
|
|
|
|
|
|
|
#include <zebra.h>
|
|
|
|
|
|
|
|
#include "lib/debug.h"
|
|
|
|
|
2021-05-21 01:22:14 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2020-01-08 20:13:42 +01:00
|
|
|
/* staticd debugging records */
|
2020-03-07 23:30:44 +01:00
|
|
|
extern struct debug static_dbg_events;
|
2020-08-10 09:00:09 +02:00
|
|
|
extern struct debug static_dbg_route;
|
2021-09-28 14:53:23 +02:00
|
|
|
extern struct debug static_dbg_bfd;
|
2025-01-15 18:43:37 +01:00
|
|
|
extern struct debug static_dbg_srv6;
|
2020-01-08 20:13:42 +01:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Initialize staticd debugging.
|
|
|
|
*
|
|
|
|
* Installs VTY commands and registers callbacks.
|
|
|
|
*/
|
|
|
|
void static_debug_init(void);
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Set debugging status.
|
|
|
|
*
|
|
|
|
* vtynode
|
|
|
|
* vty->node
|
|
|
|
*
|
|
|
|
* onoff
|
|
|
|
* Whether to turn the specified debugs on or off
|
|
|
|
*
|
|
|
|
* events
|
|
|
|
* Debug general internal events
|
|
|
|
*
|
|
|
|
*/
|
2025-01-15 18:43:37 +01:00
|
|
|
void static_debug_set(int vtynode, bool onoff, bool events, bool route, bool bfd, bool srv6);
|
2020-01-08 20:13:42 +01:00
|
|
|
|
2021-05-21 01:22:14 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
2020-01-08 20:13:42 +01:00
|
|
|
|
|
|
|
#endif /* _STATIC_DEBUG_H */
|