From 88d6652ede40f7675faaa1efe7dccbbf27af5568 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Thu, 22 Sep 2016 15:55:02 -0400 Subject: [PATCH] pimd: When sending a register stop don't need a nbr When you send a register stop it is not necessary to have a neighbor out the choosen interface. Signed-off-by: Donald Sharp --- pimd/pim_mroute.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pimd/pim_mroute.c b/pimd/pim_mroute.c index 8ac1a708bb..bc351d8f7b 100644 --- a/pimd/pim_mroute.c +++ b/pimd/pim_mroute.c @@ -345,8 +345,8 @@ pim_mroute_msg_wrvifwhole (int fd, struct interface *ifp, const char *buf) pim_ifp = rpf->source_nexthop.interface->info; //No if channel, but upstream we are at the RP. - pim_nexthop_lookup (&source, up->upstream_register, 1); - pim_register_stop_send(source.interface, &sg, pim_ifp->primary_address, up->upstream_register); + if (pim_nexthop_lookup (&source, up->upstream_register, 0) == 0) + pim_register_stop_send(source.interface, &sg, pim_ifp->primary_address, up->upstream_register); if (!up->channel_oil) up->channel_oil = pim_channel_oil_add (&sg, pim_ifp->mroute_vif_index); if (!up->channel_oil->installed) -- 2.39.5