diff options
| author | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2019-01-31 18:10:32 -0200 | 
|---|---|---|
| committer | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2019-02-14 14:17:29 -0200 | 
| commit | f43b93686fafd80ad86630327cb9dcfefbf0ee9a (patch) | |
| tree | 2d3610e2a3c112f2f6d878b3350267992d43d80a /bfdd/config.c | |
| parent | f78dd3a7933dfe22ad73381b71994dd82ba832a7 (diff) | |
bfdd: simplify timer data structure
Remove some legacy left overs of the old timer data structure bits and
use a simpler version:
  We always keep the current configuration in the timer structure, but
  also keep the running timers (before poll transition) in
  `cur_timers`.
  With this we can remove `new_timers` and avoid timer copy
  configuration copy on final handler (this also simplifies peer
  show command).
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Diffstat (limited to 'bfdd/config.c')
| -rw-r--r-- | bfdd/config.c | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/bfdd/config.c b/bfdd/config.c index 06089780c6..921fa2b973 100644 --- a/bfdd/config.c +++ b/bfdd/config.c @@ -471,7 +471,8 @@ char *config_notify_config(const char *op, struct bfd_session *bs)  	json_object_int_add(resp, "detect-multiplier", bs->detect_mult);  	json_object_int_add(resp, "receive-interval",  			    bs->timers.required_min_rx / 1000); -	json_object_int_add(resp, "transmit-interval", bs->up_min_tx / 1000); +	json_object_int_add(resp, "transmit-interval", +			    bs->timers.desired_min_tx / 1000);  	json_object_int_add(resp, "echo-interval",  			    bs->timers.required_min_echo / 1000);  | 
