]> git.proxmox.com Git - mirror_frr.git/commitdiff
pimd: Update pim register stop statistics
authorSarita Patra <saritap@vmware.com>
Tue, 3 Mar 2020 09:46:36 +0000 (01:46 -0800)
committerSarita Patra <saritap@vmware.com>
Tue, 3 Mar 2020 09:46:36 +0000 (01:46 -0800)
Issue: REGISTER-STOP Rx is always displaying 0.

Root-cause: pim_ifstat_reg_stop_recv is not getting
incremented when register stop message is received.

Fix: Increment pim_ifstat_reg_stop_recv on receiving
of pim register stop packet.

Signed-off-by: Sarita Patra <saritap@vmware.com>
pimd/pim_register.c

index aa9faf6923af2fd6716f7c68aed08e67b5487c8e..27b3b1d9d649e0967007740baaaf07c10d20efdc 100644 (file)
@@ -122,6 +122,8 @@ int pim_register_stop_recv(struct interface *ifp, uint8_t *buf, int buf_size)
        struct prefix_sg sg;
        int l;
 
+       ++pim_ifp->pim_ifstat_reg_stop_recv;
+
        memset(&sg, 0, sizeof(struct prefix_sg));
        l = pim_parse_addr_group(&sg, buf, buf_size);
        buf += l;