Wait before retrying on CEASE.
authorBenjamin Cama <benoar@dolka.fr>
Sat, 23 Jul 2011 16:57:27 +0000 (18:57 +0200)
committerBenjamin Cama <benoar@dolka.fr>
Fri, 29 Jul 2011 10:54:00 +0000 (12:54 +0200)
Using bgp_restart() floods the peer with connection requests. Use bgp_retry()
instead.

Signed-off-by: Benjamin Cama <benoar@dolka.fr>
bgp.c

diff --git a/bgp.c b/bgp.c
index 4b7f949..f643921 100644 (file)
--- a/bgp.c
+++ b/bgp.c
@@ -1011,7 +1011,7 @@ static int bgp_handle_input(struct bgp_peer *peer)
            if (notification->error_code == BGP_ERR_CEASE)
            {
                LOG(4, 0, 0, "BGP peer %s sent CEASE\n", peer->name);
-               bgp_restart(peer);
+               bgp_set_retry(peer);
                return 0;
            }