summaryrefslogtreecommitdiffstats
path: root/vrrpd/vrrp_ndisc.c
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_ndisc.c
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_ndisc.c')
-rw-r--r--vrrpd/vrrp_ndisc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/vrrpd/vrrp_ndisc.c b/vrrpd/vrrp_ndisc.c
index 7b3fdde7c..6813506d1 100644
--- a/vrrpd/vrrp_ndisc.c
+++ b/vrrpd/vrrp_ndisc.c
@@ -187,6 +187,8 @@ int vrrp_ndisc_una_send(struct vrrp_router *r, struct ipaddr *ip)
"Error sending unsolicited Neighbor Advertisement on %s for %s",
r->vr->vrid, ifp->name, ipbuf);
ret = -1;
+ } else {
+ ++r->stats.una_tx_cnt;
}
return ret;