From: Benjamin Cama Date: Sat, 23 Jul 2011 16:57:27 +0000 (+0200) Subject: Wait before retrying on CEASE. X-Git-Tag: debian/2.2.1-1fdn1~1^2~7 X-Git-Url: http://git.sameswireless.fr/l2tpns.git/commitdiff_plain/625794576e0206fe7a553c4def60277d895943dd Wait before retrying on CEASE. Using bgp_restart() floods the peer with connection requests. Use bgp_retry() instead. Signed-off-by: Benjamin Cama --- diff --git a/bgp.c b/bgp.c index 4b7f949..f643921 100644 --- 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; }