]> git.puffer.fish Git - mirror/frr.git/commitdiff
pimd: Do not send join out loopback interfaces
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 24 Aug 2016 13:26:54 +0000 (09:26 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 22 Dec 2016 01:26:07 +0000 (20:26 -0500)
When we the join timer pops for a interface
don't send the join out a loopback interface.

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

index ffb026603eceeffffb11e58259ba5ea32b6ace03..5c142a167477203c5668aaa990bade4260382d4e 100644 (file)
@@ -209,7 +209,12 @@ static int on_join_timer(struct thread *t)
   if (up->fhr)
     return 0;
 
-  pim_upstream_send_join (up);
+  /*
+   * Don't send the join if the outgoing interface is a loopback
+   * But since this might change leave the join timer running
+   */
+  if (!if_is_loopback (up->rpf.source_nexthop.interface))
+    pim_upstream_send_join (up);
 
   join_timer_start(up);