diff options
author | sarita patra <saritap@vmware.com> | 2022-04-04 13:10:33 +0200 |
---|---|---|
committer | sarita patra <saritap@vmware.com> | 2022-05-13 08:51:21 +0200 |
commit | ac5c9346b783301e930df47aa8c9933b92316911 (patch) | |
tree | 50656ad875878ffd3ebaf2c9ae301e810b876093 /pimd/pim_bsm.c | |
parent | pimd: Handling assert send statistics for passive interface (diff) | |
download | frr-ac5c9346b783301e930df47aa8c9933b92316911.tar.xz frr-ac5c9346b783301e930df47aa8c9933b92316911.zip |
pimd: Handling BSM send statistics for passive interface
Increment pim_ifstat_bsm_tx only when interface is
passive disabled.
Signed-off-by: sarita patra <saritap@vmware.com>
Diffstat (limited to 'pimd/pim_bsm.c')
-rw-r--r-- | pimd/pim_bsm.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pimd/pim_bsm.c b/pimd/pim_bsm.c index 003ce4743..058a923d0 100644 --- a/pimd/pim_bsm.c +++ b/pimd/pim_bsm.c @@ -704,13 +704,15 @@ static bool pim_bsm_send_intf(uint8_t *buf, int len, struct interface *ifp, } if (pim_msg_send(pim_ifp->pim_sock_fd, pim_ifp->primary_address, - dst_addr, buf, len, ifp->name)) { + dst_addr, buf, len, ifp)) { zlog_warn("%s: Could not send BSM message on interface: %s", __func__, ifp->name); return false; } - pim_ifp->pim_ifstat_bsm_tx++; + if (!pim_ifp->pim_passive_enable) + pim_ifp->pim_ifstat_bsm_tx++; + pim_ifp->pim->bsm_sent++; return true; } |