AS_HELP_STRING([--enable-werror], [enable -Werror (recommended for developers only)]))
AC_ARG_ENABLE(cumulus,
[ --enable-cumulus enable Cumulus Switch Special Extensions])
+AC_ARG_ENABLE(rr-semantics,
+ AS_HELP_STRING([--disable-rr-semantics], [disable the v6 Route Replace semantics]))
if test x"${enable_gcc_ultra_verbose}" = x"yes" ; then
CFLAGS="${CFLAGS} -W -Wcast-qual -Wstrict-prototypes"
"*") ;;
esac
+if test "${enable_rr_semantics}" != "no" ; then
+ AC_DEFINE(HAVE_V6_RR_SEMANTICS,, Compile in v6 Route Replacement Semantics)
+fi
+
if test "${enable_poll}" = "yes" ; then
AC_DEFINE(HAVE_POLL,,Compile systemd support in)
fi
int
kernel_update_ipv6 (struct prefix *p, struct rib *rib)
{
+#if defined (HAVE_V6_RR_SEMANTICS)
return netlink_route_multipath (RTM_NEWROUTE, p, rib, AF_INET6, 1);
+#else
+ kernel_delete_ipv6 (p, rib);
+ return kernel_add_ipv6 (p, rib);
+#endif
}
int