From 15fa39c51cc5c6dda4016cc51685539bfcbb5e3f Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Wed, 30 Aug 2017 07:35:36 -0400 Subject: [PATCH 1/3] pimd: Fix indentation issue that slipped in? Signed-off-by: Donald Sharp --- pimd/test_igmpv3_join.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pimd/test_igmpv3_join.c b/pimd/test_igmpv3_join.c index 3d104e7c7c..bf44f3c94a 100644 --- a/pimd/test_igmpv3_join.c +++ b/pimd/test_igmpv3_join.c @@ -139,7 +139,7 @@ int main(int argc, const char *argv[]) printf("%s: waiting...\n", prog_name); if (getchar() == EOF) - fprintf(stderr, "getchar failure\n"); + fprintf(stderr, "getchar failure\n"); close(fd); From 019eb073a2116b22952001fc3ae490ec78dc1cd7 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Wed, 30 Aug 2017 07:39:46 -0400 Subject: [PATCH 2/3] pimd: Add missed frame for vrf based interface pim is vrf aware and the interface based line for vrf's was not being started with a vrf_frame as the non interface based line was. Signed-off-by: Donald Sharp --- pimd/pim_vty.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pimd/pim_vty.c b/pimd/pim_vty.c index 6eb413a4eb..7607bdf13b 100644 --- a/pimd/pim_vty.c +++ b/pimd/pim_vty.c @@ -257,8 +257,8 @@ int pim_interface_config_write(struct vty *vty) if (vrf->vrf_id == VRF_DEFAULT) vty_frame(vty, "interface %s\n", ifp->name); else - vty_out(vty, "interface %s vrf %s\n", ifp->name, - vrf->name); + vty_frame(vty, "interface %s vrf %s\n", + ifp->name, vrf->name); ++writes; if (ifp->info) { From 2f5b00289db5dd61386874bd9386f7c50cd97e94 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Wed, 30 Aug 2017 07:49:51 -0400 Subject: [PATCH 3/3] pimd: Fix pim->keep_alive_time missed patch The commit '19b807c pimd: Allow the keepalive time to be per vrf.' is missing some data. Probably as a result of the indentation and I accidently dropped it. Signed-off-by: Donald Sharp --- pimd/pim_upstream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pimd/pim_upstream.c b/pimd/pim_upstream.c index 96b9568c61..0bf2ce5d56 100644 --- a/pimd/pim_upstream.c +++ b/pimd/pim_upstream.c @@ -1364,7 +1364,7 @@ static int pim_upstream_register_stop_timer(struct thread *t) pim_upstream_start_register_stop_timer(up, 1); if (((up->channel_oil->cc.lastused / 100) - > PIM_KEEPALIVE_PERIOD) + > pim->keep_alive_time) && (I_am_RP(pim_ifp->pim, up->sg.grp))) { if (PIM_DEBUG_TRACE) zlog_debug(