summaryrefslogtreecommitdiff
path: root/pimd/pimd.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-12-21 08:50:34 -0500
committerDonald Sharp <sharpd@cumulusnetworks.com>2019-01-04 12:23:39 -0500
commitda03883e1edcd191091482008bffa85f0941c2bf (patch)
tree429c7643db0f94c48e4c5d27d55c8002ef8386a5 /pimd/pimd.c
parentd17612dd6ac42042859b991b8f23f0c99705d8f5 (diff)
pimd: Convert rpf_cache_refresh_delay_msec into pim_router struct
Move the rpf_cache_refresh_delay_msec into the pim_router since it should own the data. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pimd.c')
-rw-r--r--pimd/pimd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pimd/pimd.c b/pimd/pimd.c
index 2a37477fb9..81f5888cb2 100644
--- a/pimd/pimd.c
+++ b/pimd/pimd.c
@@ -51,7 +51,6 @@ DEFINE_MTYPE_STATIC(PIMD, ROUTER, "PIM Router information");
struct pim_router *router = NULL;
-long qpim_rpf_cache_refresh_delay_msec = 50;
int qpim_packet_process = PIM_DEFAULT_PACKET_PROCESS;
struct pim_instance *pimg = NULL;
@@ -103,6 +102,7 @@ void pim_router_init(void)
router->infinite_assert_metric.route_metric =
PIM_ASSERT_ROUTE_METRIC_MAX;
router->infinite_assert_metric.ip_address.s_addr = INADDR_ANY;
+ router->rpf_cache_refresh_delay_msec = 50;
}
void pim_router_terminate(void)