mirror of
https://github.com/FRRouting/frr.git
synced 2025-04-30 13:37:17 +02:00
configure, zebra: Kame is not responsible for on/off of v6 forwarding
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>
This commit is contained in:
parent
5f7a4718e2
commit
d616d6397a
|
@ -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")
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue