diff options
-rwxr-xr-x | configure.ac | 2 | ||||
-rw-r--r-- | zebra/ipforward_sysctl.c | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index 16cc8901a..cd0aab1ad 100755 --- a/configure.ac +++ b/configure.ac @@ -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") diff --git a/zebra/ipforward_sysctl.c b/zebra/ipforward_sysctl.c index 36212a013..cdf426b9b 100644 --- a/zebra/ipforward_sysctl.c +++ b/zebra/ipforward_sysctl.c @@ -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) |