summaryrefslogtreecommitdiffstats
path: root/vrrpd/vrrp.h
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2019-02-22 19:51:38 +0100
committerQuentin Young <qlyoung@cumulusnetworks.com>2019-05-17 02:27:08 +0200
commit6332c77f98481d94c9243cbe6ffb57d131cf9d6a (patch)
tree770cf57eabbf0b347a20e92d20e67198a1771db3 /vrrpd/vrrp.h
parentvrrpd: follow frrouting json conventions (diff)
downloadfrr-6332c77f98481d94c9243cbe6ffb57d131cf9d6a.tar.xz
frr-6332c77f98481d94c9243cbe6ffb57d131cf9d6a.zip
vrrpd: add statistics collection
Collect and display the following: - Advertisement Tx/Rx - GARP Tx/Rx - NDISC Tx/Rx - # transitions Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'vrrpd/vrrp.h')
-rw-r--r--vrrpd/vrrp.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/vrrpd/vrrp.h b/vrrpd/vrrp.h
index 45f4e4ecb..94cd1ca3f 100644
--- a/vrrpd/vrrp.h
+++ b/vrrpd/vrrp.h
@@ -141,6 +141,18 @@ struct vrrp_router {
int state;
} fsm;
+ struct {
+ /* Total number of advertisements sent and received */
+ uint32_t adver_tx_cnt;
+ uint32_t adver_rx_cnt;
+ /* Total number of gratuitous ARPs sent */
+ uint32_t garp_tx_cnt;
+ /* Total number of unsolicited Neighbor Advertisements sent */
+ uint32_t una_tx_cnt;
+ /* Total number of state transitions */
+ uint32_t trans_cnt;
+ } stats;
+
struct thread *t_master_down_timer;
struct thread *t_adver_timer;
struct thread *t_read;