summaryrefslogtreecommitdiff
path: root/pimd/pim_pim.c
diff options
context:
space:
mode:
authorDonald Sharp <donaldsharp72@gmail.com>2021-12-02 04:05:03 -0500
committerGitHub <noreply@github.com>2021-12-02 04:05:03 -0500
commitd047ba78d257f0e182eea9f0d1b0b4d22a64ce18 (patch)
treec7306e7234d326f3b846de936f929dcc80616ebe /pimd/pim_pim.c
parent0da8c0876c2b456ca213c66e4bab3cc8c6ad9c50 (diff)
parent0d16f9d8243dccdddafb956a6c19ea9e5d656f8d (diff)
Merge pull request #9708 from mobash-rasool/new_b
pimd: hello sent stats counter change and new flag addition to decide hello send
Diffstat (limited to 'pimd/pim_pim.c')
-rw-r--r--pimd/pim_pim.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/pimd/pim_pim.c b/pimd/pim_pim.c
index 30dc6b3e92..351b906d24 100644
--- a/pimd/pim_pim.c
+++ b/pimd/pim_pim.c
@@ -454,6 +454,21 @@ void pim_ifstat_reset(struct interface *ifp)
pim_ifp->pim_ifstat_hello_sendfail = 0;
pim_ifp->pim_ifstat_hello_recv = 0;
pim_ifp->pim_ifstat_hello_recvfail = 0;
+ pim_ifp->pim_ifstat_bsm_rx = 0;
+ pim_ifp->pim_ifstat_bsm_tx = 0;
+ pim_ifp->pim_ifstat_join_recv = 0;
+ pim_ifp->pim_ifstat_join_send = 0;
+ pim_ifp->pim_ifstat_prune_recv = 0;
+ pim_ifp->pim_ifstat_prune_send = 0;
+ pim_ifp->pim_ifstat_reg_recv = 0;
+ pim_ifp->pim_ifstat_reg_send = 0;
+ pim_ifp->pim_ifstat_reg_stop_recv = 0;
+ pim_ifp->pim_ifstat_reg_stop_send = 0;
+ pim_ifp->pim_ifstat_assert_recv = 0;
+ pim_ifp->pim_ifstat_assert_send = 0;
+ pim_ifp->pim_ifstat_bsm_cfg_miss = 0;
+ pim_ifp->pim_ifstat_ucast_bsm_cfg_miss = 0;
+ pim_ifp->pim_ifstat_bsm_invalid_sz = 0;
}
void pim_sock_reset(struct interface *ifp)
@@ -706,6 +721,7 @@ int pim_hello_send(struct interface *ifp, uint16_t holdtime)
}
++pim_ifp->pim_ifstat_hello_sent;
+ PIM_IF_FLAG_SET_HELLO_SENT(pim_ifp->flags);
return 0;
}