]>
git.proxmox.com Git - mirror_frr.git/blob - vrrpd/vrrp_debug.h
1 // SPDX-License-Identifier: GPL-2.0-or-later
4 * Copyright (C) 2019 Cumulus Networks, Inc.
7 #ifndef __VRRP_DEBUG_H__
8 #define __VRRP_DEBUG_H__
12 #include "lib/debug.h"
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
;
24 * Initialize VRRP debugging.
26 * Installs VTY commands and registers callbacks.
28 void vrrp_debug_init(void);
31 * Print VRRP debugging configuration.
34 * VTY to print debugging configuration to.
36 int vrrp_config_write_debug(struct vty
*vty
);
39 * Print VRRP debugging configuration, human readable form.
42 * VTY to print debugging configuration to.
44 int vrrp_debug_status_write(struct vty
*vty
);
47 * Set debugging status.
50 * Interface to set status on
53 * VRID of instance to set status on
59 * Whether to turn the specified debugs on or off
62 * Turn protocol debugging on or off
65 * Turn autoconfiguration debugging on or off
68 * Turn packet debugging on or off
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
);
74 #endif /* __VRRP_DEBUG_H__ */