if (!bgp_find_or_add_nexthop(peer->bgp, family2afi(peer->su.sa.sa_family),
NULL, peer, connected))
{
+#if defined (HAVE_CUMULUS)
if (bgp_debug_neighbor_events(peer))
zlog_debug ("%s [FSM] Waiting for NHT", peer->host);
-#if !defined (HAVE_BGP_STANDALONE)
BGP_EVENT_ADD(peer, TCP_connection_open_failed);
return 0;
#endif
rc = getsockopt(sock, SOL_SOCKET, SO_BINDTODEVICE, name, &name_len);
if (rc != 0)
{
-#if !defined (HAVE_BGP_STANDALONE)
+#if defined (HAVE_CUMULUS)
zlog_err ("[Error] BGP SO_BINDTODEVICE get failed (%s), sock %d",
safe_strerror (errno), sock);
return -1;
if (bgp_nexthop_set (peer->su_local, peer->su_remote,
&peer->nexthop, peer))
{
+#if defined (HAVE_CUMULUS)
zlog_err ("%s: nexthop_set failed, resetting connection - intf %p",
peer->host, peer->nexthop.ifp);
-#if !defined (HAVE_BGP_STANDALONE)
return -1;
#endif
}
{
if (!peer->nexthop.v4.s_addr)
{
-#if !defined (HAVE_BGP_STANDALONE)
+#if defined (HAVE_CUMULUS)
zlog_err ("%s: No local IPv4 addr resetting connection, fd %d",
peer->host, peer->fd);
bgp_notify_send (peer, BGP_NOTIFY_CEASE, BGP_NOTIFY_SUBCODE_UNSPECIFIC);
{
if (IN6_IS_ADDR_UNSPECIFIED (&peer->nexthop.v6_global))
{
-#if !defined (HAVE_BGP_STANDALONE)
+#if defined (HAVE_CUMULUS)
zlog_err ("%s: No local IPv6 addr resetting connection, fd %d",
peer->host, peer->fd);
bgp_notify_send (peer, BGP_NOTIFY_CEASE, BGP_NOTIFY_SUBCODE_UNSPECIFIC);
AS_HELP_STRING([--enable-werror], [enable -Werror (recommended for developers only)]))
AC_ARG_ENABLE(cumulus,
AS_HELP_STRING([--enable-cumulus], [enable Cumulus Switch Special Extensions]))
-AC_ARG_ENABLE(bgp-standalone,
- AS_HELP_STRING([--enable-bgp-standalone], [Modify code to allow BGP to work without Zebra]))
AC_ARG_ENABLE(rr-semantics,
AS_HELP_STRING([--disable-rr-semantics], [disable the v6 Route Replace semantics]))
AC_DEFINE(HAVE_CUMULUS,,Compile Special Cumulus Code in)
fi
-if test "${enable_bgp_standalone}" = "yes" ; then
- AC_DEFINE(HAVE_BGP_STANDALONE,,Allow BGP to work without Zebra)
-fi
-
if test "${enable_shell_access}" = "yes"; then
AC_DEFINE(HAVE_SHELL_ACCESS,,Allow user to use ssh/telnet/bash)
fi