]> git.proxmox.com Git - mirror_frr.git/blob - vrrpd/vrrp_debug.h
lib: mgmtd: add server-side connection code to mgmt_msg
[mirror_frr.git] / vrrpd / vrrp_debug.h
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3 * VRRP debugging.
4 * Copyright (C) 2019 Cumulus Networks, Inc.
5 * Quentin Young
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 */
15 extern struct debug vrrp_dbg_arp;
16 extern struct debug vrrp_dbg_auto;
17 extern struct debug vrrp_dbg_ndisc;
18 extern struct debug vrrp_dbg_pkt;
19 extern struct debug vrrp_dbg_proto;
20 extern struct debug vrrp_dbg_sock;
21 extern struct debug vrrp_dbg_zebra;
22
23 /*
24 * Initialize VRRP debugging.
25 *
26 * Installs VTY commands and registers callbacks.
27 */
28 void vrrp_debug_init(void);
29
30 /*
31 * Print VRRP debugging configuration.
32 *
33 * vty
34 * VTY to print debugging configuration to.
35 */
36 int vrrp_config_write_debug(struct vty *vty);
37
38 /*
39 * Print VRRP debugging configuration, human readable form.
40 *
41 * vty
42 * VTY to print debugging configuration to.
43 */
44 int 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 */
70 void 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__ */