summaryrefslogtreecommitdiffstats
path: root/zebra/rtadv.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetwroks.com>2016-02-21 18:43:50 +0100
committerDonald Sharp <sharpd@cumulusnetwroks.com>2016-02-23 13:46:54 +0100
commit000cf1fb358dd7a7ce44e1e4c8bfdc332c335b9a (patch)
tree1528a5e822769fe0e34428412535a7bfe48f5b6e /zebra/rtadv.h
parentZebra: Ignore status change for VRF (temporary) (diff)
downloadfrr-000cf1fb358dd7a7ce44e1e4c8bfdc332c335b9a.tar.xz
frr-000cf1fb358dd7a7ce44e1e4c8bfdc332c335b9a.zip
debian, config, zebra: Ensure Cumulus Extensions are not auto turned on
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>
Diffstat (limited to 'zebra/rtadv.h')
-rw-r--r--zebra/rtadv.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/zebra/rtadv.h b/zebra/rtadv.h
index 51b8afe8d..e8d84f9de 100644
--- a/zebra/rtadv.h
+++ b/zebra/rtadv.h
@@ -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;