From e7cd85bda76820933a10d59d0376985fa4b10fd9 Mon Sep 17 00:00:00 2001 From: Sarita Patra Date: Sun, 31 Mar 2019 23:38:28 -0700 Subject: 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 --- pimd/pim_mroute.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pimd/pim_mroute.c') 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; } -- cgit v1.2.3