From eb345962ceeb4c7eb30e7a54faf3d1c1449dd69f Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Wed, 24 Aug 2016 09:26:54 -0400 Subject: [PATCH] pimd: Do not send join out loopback interfaces When we the join timer pops for a interface don't send the join out a loopback interface. Signed-off-by: Donald Sharp --- pimd/pim_upstream.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pimd/pim_upstream.c b/pimd/pim_upstream.c index ffb026603e..5c142a1674 100644 --- a/pimd/pim_upstream.c +++ b/pimd/pim_upstream.c @@ -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); -- 2.39.5