From: Donald Sharp Date: Sat, 18 Jun 2016 01:25:21 +0000 (-0400) Subject: pimd: Prevent loopback from forming neighbor X-Git-Tag: frr-2.0-rc1~519 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=85b62aeab3d66d57e88b2cf5577df589e60133b9;p=matthieu%2Ffrr.git 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 --- 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;