]> git.puffer.fish Git - mirror/frr.git/commitdiff
debian, config, zebra: Ensure Cumulus Extensions are not auto turned on
authorDonald Sharp <sharpd@cumulusnetwroks.com>
Sun, 21 Feb 2016 17:43:50 +0000 (12:43 -0500)
committerDonald Sharp <sharpd@cumulusnetwroks.com>
Tue, 23 Feb 2016 12:46:54 +0000 (07:46 -0500)
There exist cases where Cumulus Code( in this case code surrounding
when we want to send Router Advertisements ) should only be
turned on for Cumulus Switches.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
configure.ac
debian/rules
zebra/rtadv.h

index 5a7744a06eef433d64966ee9e0da8a12baf1fe56..74020ad736472ceac454a3b0e4fa96ee2c03a8c5 100755 (executable)
@@ -302,6 +302,8 @@ AC_ARG_ENABLE(systemd,
 [  --enable-systemd    enable Systemd support])
 AC_ARG_ENABLE(werror,
   AS_HELP_STRING([--enable-werror], [enable -Werror (recommended for developers only)]))
+AC_ARG_ENABLE(cumulus,
+[  --enable-cumulus     enable Cumulus Switch Special Extensions])
 
 if test x"${enable_gcc_ultra_verbose}" = x"yes" ; then
   CFLAGS="${CFLAGS} -W -Wcast-qual -Wstrict-prototypes"
@@ -329,6 +331,10 @@ if test "${enable_systemd}" = "yes" ; then
   LIBS="$LIBS -lsystemd "
 fi
 
+if test "${enable_cumulus}" = "yes" ; then
+  AC_DEFINE(HAVE_CUMULUS,,Compile Special Cumulus Code in)
+fi
+
 if test "${enable_shell_access}" = "yes"; then
    AC_DEFINE(HAVE_SHELL_ACCESS,,Allow user to use ssh/telnet/bash)
 fi
index ff467954994a4614e470ff2ab209c35cee3f4295..30220c920833189639104138a4aae34ad8b82010 100755 (executable)
@@ -67,6 +67,7 @@ override_dh_auto_configure:
                --enable-gcc-rdynamic \
                --with-libpam \
                --enable-systemd=yes \
+               --enable-cumulus=yes \
                --enable-dependency-tracking; \
        fi
        if ! diff -b -IHAVE_SNMP -IHAVE_NETSNMP -IUCD_COMPAT -IGETIFADDR debian/my/config.h.reference config.h; then \
index 51b8afe8d34effb5ee72680b7a8f3e0bb3f711cc..e8d84f9dee8887c53b94ad800d31e139c93c4bbd 100644 (file)
@@ -116,10 +116,12 @@ static inline int
 interface_ipv6_auto_ra_allowed (struct interface *ifp)
 {
 #if defined (HAVE_RTADV)
+#if defined (HAVE_CUMULUS)
   if ((strncmp (ifp->name, "eth", strlen("eth")) == 0) ||
       (strncmp (ifp->name, "lo", strlen("lo")) == 0) ||
       (strncmp (ifp->name, "switch", strlen("switch")) == 0))
     return 0;
+#endif
   return 1;
 #else
   return 0;