]> git.puffer.fish Git - matthieu/frr.git/commitdiff
pimd: Warn when we try to build MAXVIFS > 256
authorDonald Sharp <sharpd@nvidia.com>
Fri, 11 Sep 2020 12:27:28 +0000 (08:27 -0400)
committerIgor Ryzhov <iryzhov@nfware.com>
Tue, 6 Oct 2020 12:54:24 +0000 (15:54 +0300)
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 <sharpd@nvidia.com>
pimd/pimd.c

index 6c354a3cc8d45166db9352c11167e106331638f7..811dc96b5602684c2c0440cc32301dab6b581247 100644 (file)
 #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;