diff options
author | Donald Sharp <donaldsharp72@gmail.com> | 2021-12-02 10:05:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-02 10:05:03 +0100 |
commit | d047ba78d257f0e182eea9f0d1b0b4d22a64ce18 (patch) | |
tree | c7306e7234d326f3b846de936f929dcc80616ebe /pimd/pim_pim.c | |
parent | Merge pull request #9942 from mjstapp/fix_bgp_lu_rmap_in (diff) | |
parent | tests: Modify the script to verify the hello stats increment (diff) | |
download | frr-d047ba78d257f0e182eea9f0d1b0b4d22a64ce18.tar.xz frr-d047ba78d257f0e182eea9f0d1b0b4d22a64ce18.zip |
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.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/pimd/pim_pim.c b/pimd/pim_pim.c index 30dc6b3e9..351b906d2 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; } |