From 85b62aeab3d66d57e88b2cf5577df589e60133b9 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Fri, 17 Jun 2016 21:25:21 -0400 Subject: [PATCH] pimd: Prevent loopback from forming neighbor This code prevents pim from forming a neighbor relationship with itself by preventing pim from sending a hello out the loopback interface if we have pim configured on an interface. Signed-off-by: Donald Sharp --- pimd/pim_pim.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pimd/pim_pim.c b/pimd/pim_pim.c index 959663433d..a3136b61b2 100644 --- a/pimd/pim_pim.c +++ b/pimd/pim_pim.c @@ -584,6 +584,9 @@ static int pim_hello_send(struct interface *ifp, pim_ifp = ifp->info; zassert(pim_ifp); + if (if_is_loopback (ifp)) + return 0; + if (hello_send(ifp, holdtime)) { ++pim_ifp->pim_ifstat_hello_sendfail; -- 2.39.5