]>
git.proxmox.com Git - mirror_frr.git/blob - vrrpd/vrrp_debug.h
3 * Copyright (C) 2019 Cumulus Networks, Inc.
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the Free
8 * Software Foundation; either version 2 of the License, or (at your option)
11 * This program is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
16 * You should have received a copy of the GNU General Public License along
17 * with this program; see the file COPYING; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20 #ifndef __VRRP_DEBUG_H__
21 #define __VRRP_DEBUG_H__
25 #include "lib/debug.h"
27 /* VRRP debugging records */
28 extern struct debug vrrp_dbg_arp
;
29 extern struct debug vrrp_dbg_auto
;
30 extern struct debug vrrp_dbg_ndisc
;
31 extern struct debug vrrp_dbg_pkt
;
32 extern struct debug vrrp_dbg_proto
;
33 extern struct debug vrrp_dbg_sock
;
34 extern struct debug vrrp_dbg_zebra
;
37 * Initialize VRRP debugging.
39 * Installs VTY commands and registers callbacks.
41 void vrrp_debug_init(void);
44 * Print VRRP debugging configuration.
47 * VTY to print debugging configuration to.
49 int vrrp_config_write_debug(struct vty
*vty
);
52 * Print VRRP debugging configuration, human readable form.
55 * VTY to print debugging configuration to.
57 int vrrp_debug_status_write(struct vty
*vty
);
60 * Set debugging status.
63 * Interface to set status on
66 * VRID of instance to set status on
72 * Whether to turn the specified debugs on or off
75 * Turn protocol debugging on or off
78 * Turn autoconfiguration debugging on or off
81 * Turn packet debugging on or off
83 void vrrp_debug_set(struct interface
*ifp
, uint8_t vrid
, int vtynode
,
84 bool onoff
, bool proto
, bool autoconf
, bool pkt
, bool sock
,
85 bool ndisc
, bool arp
, bool zebra
);
87 #endif /* __VRRP_DEBUG_H__ */