]> git.proxmox.com Git - mirror_frr.git/blame - vrrpd/vrrp_debug.h
lib: mgmtd: add server-side connection code to mgmt_msg
[mirror_frr.git] / vrrpd / vrrp_debug.h
CommitLineData
acddc0ed 1// SPDX-License-Identifier: GPL-2.0-or-later
78fb3dbe
QY
2/*
3 * VRRP debugging.
4 * Copyright (C) 2019 Cumulus Networks, Inc.
5 * Quentin Young
78fb3dbe
QY
6 */
7#ifndef __VRRP_DEBUG_H__
8#define __VRRP_DEBUG_H__
9
10#include <zebra.h>
11
12#include "lib/debug.h"
13
14/* VRRP debugging records */
744f2650
RK
15extern struct debug vrrp_dbg_arp;
16extern struct debug vrrp_dbg_auto;
17extern struct debug vrrp_dbg_ndisc;
18extern struct debug vrrp_dbg_pkt;
19extern struct debug vrrp_dbg_proto;
20extern struct debug vrrp_dbg_sock;
21extern struct debug vrrp_dbg_zebra;
78fb3dbe
QY
22
23/*
24 * Initialize VRRP debugging.
25 *
26 * Installs VTY commands and registers callbacks.
27 */
28void vrrp_debug_init(void);
29
30/*
31 * Print VRRP debugging configuration.
32 *
33 * vty
34 * VTY to print debugging configuration to.
35 */
f828842a 36int vrrp_config_write_debug(struct vty *vty);
78fb3dbe
QY
37
38/*
39 * Print VRRP debugging configuration, human readable form.
40 *
41 * vty
42 * VTY to print debugging configuration to.
43 */
44int vrrp_debug_status_write(struct vty *vty);
45
46/*
47 * Set debugging status.
48 *
49 * ifp
50 * Interface to set status on
51 *
52 * vrid
53 * VRID of instance to set status on
54 *
55 * vtynode
56 * vty->node
57 *
58 * onoff
59 * Whether to turn the specified debugs on or off
60 *
61 * proto
62 * Turn protocol debugging on or off
63 *
64 * autoconf
65 * Turn autoconfiguration debugging on or off
66 *
67 * pkt
68 * Turn packet debugging on or off
69 */
70void vrrp_debug_set(struct interface *ifp, uint8_t vrid, int vtynode,
71 bool onoff, bool proto, bool autoconf, bool pkt, bool sock,
72 bool ndisc, bool arp, bool zebra);
73
74#endif /* __VRRP_DEBUG_H__ */