diff options
| author | Rafael Zalamena <rzalamena@users.noreply.github.com> | 2021-03-10 10:27:00 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-10 10:27:00 +0000 |
| commit | 1b2e0938176d4b6887c7e5cbced18047ba81270f (patch) | |
| tree | 9b1c7e9a1029dd2d3d370a5e59dcb9a5dcdb0875 | |
| parent | 5e6f90eec5fabdcad6b4e1ac544a136f8b889907 (diff) | |
| parent | 1e9bae0331bfe8a2a4a8e822a4ef0eb33a71c1e3 (diff) | |
Merge pull request #8224 from idryzhov/fix-bfd-detect-to
bfdd: fix detect timeout
| -rw-r--r-- | bfdd/bfd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bfdd/bfd.c b/bfdd/bfd.c index 3e45bf0e04..499e54603f 100644 --- a/bfdd/bfd.c +++ b/bfdd/bfd.c @@ -1252,12 +1252,12 @@ void bs_final_handler(struct bfd_session *bs) * TODO: support sending/counting more packets inside detection * timeout. */ - if (bs->remote_timers.required_min_rx > bs->timers.desired_min_tx) + if (bs->timers.required_min_rx > bs->remote_timers.desired_min_tx) bs->detect_TO = bs->remote_detect_mult - * bs->remote_timers.required_min_rx; + * bs->timers.required_min_rx; else bs->detect_TO = bs->remote_detect_mult - * bs->timers.desired_min_tx; + * bs->remote_timers.desired_min_tx; /* Apply new receive timer immediately. */ bfd_recvtimer_update(bs); |
