]> git.puffer.fish Git - mirror/frr.git/commitdiff
pimd: Prevent loopback from forming neighbor
authorDonald Sharp <sharpd@cumulusnetworks.com>
Sat, 18 Jun 2016 01:25:21 +0000 (21:25 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Sat, 18 Jun 2016 01:25:21 +0000 (21:25 -0400)
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 <sharpd@cumulusnetworks.com>
pimd/pim_pim.c

index 959663433d1a9b6e28847b042c963e083e5bca1d..a3136b61b24a95fed0a25d0c4ecb92067389b42d 100644 (file)
@@ -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;