]> git.puffer.fish Git - mirror/frr.git/commitdiff
pimd: Set spt bit when we receive first packet on RP
authorDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 11 Aug 2016 12:08:28 +0000 (08:08 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 22 Dec 2016 01:26:06 +0000 (20:26 -0500)
When on the RP, if we receive the first correctly routed
mroute from upstream, Set the SPT bit so that the
state machine will work properly.

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

index 9460219f13a5acfaec2c5f601a51dbf358593f39..8426a4add53c07de55c152237aa87bfa7b6fcfb8 100644 (file)
@@ -354,6 +354,7 @@ pim_mroute_msg_wrvifwhole (int fd, struct interface *ifp, const char *buf)
       pim_nexthop_lookup (&source, up->upstream_register, NULL);
       pim_register_stop_send(source.interface, &sg, up->upstream_register);
       //Send S bit down the join.
+      up->sptbit = PIM_UPSTREAM_SPTBIT_TRUE;
       return 0;
     }