]> git.puffer.fish Git - mirror/frr.git/commitdiff
pimd: Modify pimreg creation
authorDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 27 Jan 2017 00:14:06 +0000 (19:14 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 30 Jan 2017 17:52:06 +0000 (12:52 -0500)
We were creating the pimreg device with a
created ifindex of 255.  This was causing
issues when a interface was assigned a ifindex
of 255 by the kernel.  Subsuquently pim
would stay in a hosed up state.

Modify the ifindex used for the pimreg device
to be 0.

Ticket: CM-14625
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
pimd/pim_iface.c
pimd/pim_oil.h

index e1cc3a97cfc0ff3b385ab95f1d9cf40a7b687f35..7f64c9d5f2a7c1fc33ea017e681907e27a438a78 100644 (file)
@@ -893,7 +893,7 @@ int pim_if_add_vif(struct interface *ifp)
     return -1;
   }
 
-  if (ifp->ifindex < 1) {
+  if (ifp->ifindex < 0) {
     zlog_warn("%s: ifindex=%d < 1 on interface %s",
              __PRETTY_FUNCTION__,
              ifp->ifindex, ifp->name);
index 6b96750ad107ca747a57f32e645f135ae8bb56a9..e90cd5fc19b87163b049c9856c6da8f559574659 100644 (file)
@@ -48,8 +48,8 @@
  * Don't come running to me if this assumption is bad,
  * fix it.
  */
-#define PIM_OIF_PIM_REGISTER_VIF   (MAXVIFS - 1)
-#define PIM_MAX_USABLE_VIFS        (MAXVIFS - 2)
+#define PIM_OIF_PIM_REGISTER_VIF   0
+#define PIM_MAX_USABLE_VIFS        (MAXVIFS - 1)
 
 
 struct channel_counts