]> git.puffer.fish Git - matthieu/frr.git/commitdiff
configure, zebra: Kame is not responsible for on/off of v6 forwarding
authorDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 4 Dec 2017 14:29:08 +0000 (09:29 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 5 Dec 2017 22:26:32 +0000 (17:26 -0500)
The KAME flag should not be used to turn on/of v6 forwarding on
*bsd systems.  Create a configure #define to better describe
what we are doing and the why of it.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
configure.ac
zebra/ipforward_sysctl.c

index 16cc8901a331f37d209d9a27a4bbc886e377386d..cd0aab1adf21b1ae3e79699512da33202d417822 100755 (executable)
@@ -875,6 +875,7 @@ case "$host_os" in
 
     AC_DEFINE(OPEN_BSD,,OpenBSD)
     AC_DEFINE(KAME,1,KAME IPv6)
+    AC_DEFINE(BSD_V6_SYSCTL,1,BSD v6 sysctl to turn on and off forwarding)
 
     if test "x${enable_pimd}" != "xno"; then
       case "$host_os" in
@@ -891,6 +892,7 @@ case "$host_os" in
 
     AC_DEFINE(HAVE_NET_RT_IFLIST,,NET_RT_IFLIST)
     AC_DEFINE(KAME,1,KAME IPv6)
+    AC_DEFINE(BSD_V6_SYSCTL,1,BSD v6 sysctl to turn on and off forwarding)
     ;;
 esac
 AM_CONDITIONAL(SOLARIS, test "${SOLARIS}" = "solaris")
index 36212a0132826c7082ba727a46b356ec10d29d7b..cdf426b9b8ff268f21e59e04fd5f5da361c6e56d 100644 (file)
@@ -87,11 +87,11 @@ int ipforward_off(void)
 
 /* IPv6 forwarding control MIB. */
 int mib_ipv6[MIB_SIZ] = {CTL_NET, PF_INET6,
-#if defined(KAME)
+#if defined(BSD_V6_SYSCTL)
                         IPPROTO_IPV6, IPV6CTL_FORWARDING
-#else  /* NOT KAME */
+#else  /* NOT BSD_V6_SYSCTL */
                         IPPROTO_IP, IP6CTL_FORWARDING
-#endif /* KAME */
+#endif /* BSD_V6_SYSCTL */
 };
 
 int ipforward_ipv6(void)