]> git.puffer.fish Git - matthieu/frr.git/commitdiff
pimd: Allow pimreg device to be output vif
authorDonald Sharp <sharpd@cumulusnetwroks.com>
Thu, 23 Jun 2016 15:03:47 +0000 (11:03 -0400)
committerDonald Sharp <sharpd@cumulusnetwroks.com>
Thu, 23 Jun 2016 15:03:47 +0000 (11:03 -0400)
With the change to moving the pimreg to vifindex 0,
when a packet is kicked up from the kernel to us
we need to install the route into the system.

This change allows us to do this now.

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

index 5e7f1786d7e19fda104910ef9fa35912a9925169..793ae44890812bd947bfcb180c6a465bfe7bb561 100644 (file)
@@ -163,13 +163,6 @@ int pim_channel_add_oif(struct channel_oil *channel_oil,
               proto_mask, oif->name, pim_ifp->mroute_vif_index);
   }
 
-  if (pim_ifp->mroute_vif_index < 1) {
-    zlog_warn("%s %s: interface %s vif_index=%d < 1",
-             __FILE__, __PRETTY_FUNCTION__,
-             oif->name, pim_ifp->mroute_vif_index);
-    return -1;
-  }
-
 #ifdef PIM_ENFORCE_LOOPFREE_MFC
   /*
     Prevent creating MFC entry with OIF=IIF.