summaryrefslogtreecommitdiffstats
path: root/pimd/pim_mroute.c
diff options
context:
space:
mode:
authorSarita Patra <saritap@vmware.com>2019-04-01 08:38:28 +0200
committerSarita Patra <saritap@vmware.com>2019-04-01 08:38:28 +0200
commite7cd85bda76820933a10d59d0376985fa4b10fd9 (patch)
treed059bbd9dcf17b9dce66dd698e1129714d7c2e62 /pimd/pim_mroute.c
parentMerge pull request #3932 from nitinsoniism/bgp_gshut_clear_soft_in_out (diff)
downloadfrr-e7cd85bda76820933a10d59d0376985fa4b10fd9.tar.xz
frr-e7cd85bda76820933a10d59d0376985fa4b10fd9.zip
pimd: Introduce mroute_creation in channel oil data structure
Issue: (*,G) mroute uptime is not updated in mroute table, after deleting and adding the RP Root cause: When RP gets deleted or becomes not reachable, then we un-install the entry from the kernel, but still maintains the entry in the stack. When RP gets re-configured or becomes reachable, "show ip mroute" shows the uptime, when the channel_oil gets created. Fix: Introduce a new time mroute_creation in the channel_oil, gets updated when mroute gets installed in the kernel. Signed-off-by: Sarita Patra <saritap@vmware.com>
Diffstat (limited to 'pimd/pim_mroute.c')
-rw-r--r--pimd/pim_mroute.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pimd/pim_mroute.c b/pimd/pim_mroute.c
index 67b1a95f7..b5e773fb5 100644
--- a/pimd/pim_mroute.c
+++ b/pimd/pim_mroute.c
@@ -964,6 +964,8 @@ int pim_mroute_add(struct channel_oil *c_oil, const char *name)
}
c_oil->installed = 1;
+ c_oil->mroute_creation = pim_time_monotonic_sec();
+
return 0;
}