From: Donald Sharp Date: Thu, 22 Sep 2016 19:55:02 +0000 (-0400) Subject: pimd: When sending a register stop don't need a nbr X-Git-Tag: frr-3.0-branchpoint~64^2~10^2~205 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=88d6652ede40f7675faaa1efe7dccbbf27af5568;p=mirror%2Ffrr.git 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 --- 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)