]> git.puffer.fish Git - mirror/frr.git/commitdiff
pimd: When sending a register stop don't need a nbr
authorDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 22 Sep 2016 19:55:02 +0000 (15:55 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 22 Dec 2016 01:26:10 +0000 (20:26 -0500)
When you send a register stop it is not necessary to
have a neighbor out the choosen interface.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
pimd/pim_mroute.c

index 8ac1a708bb67c9620d3758d9028424f6cb5c1d46..bc351d8f7b3fefb120a5ef8b0284f89a1986067a 100644 (file)
@@ -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)