From f821c9d41413fef3d61d488f2a60ff6eef90807c Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Fri, 11 Sep 2020 08:27:28 -0400 Subject: [PATCH] pimd: Warn when we try to build MAXVIFS > 256 We use the pim mroute socket for kernel notifications of events. Currently this is limited to 8 bits of data. There are patches coming down the pike in kernel land to allow this to expand. Rather than fix this and all the other places we assume MAXVIFS < 256 in the pim code right now. Leave a land mine for the developer doing this work to point them in the right direction. Signed-off-by: Donald Sharp --- pimd/pimd.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pimd/pimd.c b/pimd/pimd.c index 6c354a3cc8..811dc96b56 100644 --- a/pimd/pimd.c +++ b/pimd/pimd.c @@ -44,6 +44,10 @@ #include "pim_zebra.h" #include "pim_mlag.h" +#if MAXVIFS > 256 +CPP_NOTICE("Work needs to be done to make this work properly via the pim mroute socket\n"); +#endif /* MAXVIFS > 256 */ + const char *const PIM_ALL_SYSTEMS = MCAST_ALL_SYSTEMS; const char *const PIM_ALL_ROUTERS = MCAST_ALL_ROUTERS; const char *const PIM_ALL_PIM_ROUTERS = MCAST_ALL_PIM_ROUTERS; -- 2.39.5