]> git.puffer.fish Git - matthieu/frr.git/commitdiff
pimd: Fix RP handling of Register message
authorDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 18 Aug 2016 00:44:51 +0000 (20:44 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 22 Dec 2016 01:26:06 +0000 (20:26 -0500)
The RP needs to send the join when we want to send it

Also make sure the ka_timer is reset properly.

Ticket: CM-12473
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
pimd/pim_upstream.c

index da1a1c7666fa893da788f8220ec55184b1cae9e1..8d908b719e4c6a41bbe4d783f0ce943271f61a14 100644 (file)
@@ -191,8 +191,6 @@ pim_upstream_send_join (struct pim_upstream *up)
   if (up->fhr)
     return;
 
-  zassert(up->join_state == PIM_UPSTREAM_JOINED);
-  
   /* send Join(S,G) to the current upstream neighbor */
   pim_joinprune_send(up->rpf.source_nexthop.interface,
                     up->rpf.rpf_addr,
@@ -854,6 +852,7 @@ void
 pim_upstream_keep_alive_timer_start (struct pim_upstream *up,
                                     uint32_t time)
 {
+  THREAD_OFF (up->t_ka_timer);
   THREAD_TIMER_ON (master,
                   up->t_ka_timer,
                   pim_upstream_keep_alive_timer,