bfdd: apply new timers on on-going connections

Apply new timers when only one side is negotiating new settings: when
sending the final bit we must apply the remote settings, otherwise
we'll keep the previous transmission rate.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
This commit is contained in:
Rafael Zalamena 2019-02-04 13:44:52 -02:00
parent 33400b469e
commit 0c1af3e49f

View File

@ -656,8 +656,13 @@ int bfd_recv_cb(struct thread *t)
* *
* RFC 5880, Section 6.5. * RFC 5880, Section 6.5.
*/ */
if (BFD_GETPBIT(cp->flags)) if (BFD_GETPBIT(cp->flags)) {
/* We are finalizing a poll negotiation. */
bs_final_handler(bfd);
/* Send the control packet with the final bit immediately. */
ptm_bfd_snd(bfd, 1); ptm_bfd_snd(bfd, 1);
}
return 0; return 0;
} }