From 6fd766c17eedf4897e2dff712f0e06bb84dd3d8a Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Tue, 25 Apr 2000 23:08:31 +0000 Subject: Implemented automatic restart after error with all the timers needed. --- proto/bgp/bgp.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'proto/bgp/bgp.h') diff --git a/proto/bgp/bgp.h b/proto/bgp/bgp.h index 85399c1..5c29488 100644 --- a/proto/bgp/bgp.h +++ b/proto/bgp/bgp.h @@ -28,6 +28,11 @@ struct bgp_config { unsigned connect_retry_time; unsigned hold_time, initial_hold_time; unsigned keepalive_time; + unsigned start_delay_time; /* Minimum delay between connects */ + unsigned error_amnesia_time; /* Errors are forgotten after */ + unsigned error_delay_time_min; /* Time to wait after an error is detected */ + unsigned error_delay_time_max; + unsigned disable_after_error; /* Disable the protocol when error is detected */ }; struct bgp_conn { @@ -65,6 +70,8 @@ struct bgp_proto { struct fib prefix_fib; /* Prefixes to be sent */ list bucket_queue; /* Queue of buckets to send */ struct bgp_bucket *withdraw_bucket; /* Withdrawn routes */ + unsigned startup_delay; /* Time to delay protocol startup by due to errors */ + bird_clock_t last_connect; /* Time of last connect attempt */ }; struct bgp_prefix { -- cgit v1.2.3