summaryrefslogtreecommitdiff
path: root/bfdd/dplane.c
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2021-03-10 17:31:57 +0300
committerIgor Ryzhov <iryzhov@nfware.com>2021-03-16 22:14:57 +0300
commit4df3e31c3d09f83340e7c1a0d7645d0bdddcb68f (patch)
tree01b36a351e9a10d91d25d5dd802bb7f09a69108c /bfdd/dplane.c
parent81ef5048dd229570f27c524d6d6268caecf3b663 (diff)
bfdd: separate echo rx/tx timers
Currently there is a single interval for both RX and TX echo functions. This commit introduces separate RX and TX timers for echo packets. The main advantage is to be able to set the receive interval to zero when we don't want to receive echo packets from the remote system. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'bfdd/dplane.c')
-rw-r--r--bfdd/dplane.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bfdd/dplane.c b/bfdd/dplane.c
index 66b79f3b13..9cb0b0ea85 100644
--- a/bfdd/dplane.c
+++ b/bfdd/dplane.c
@@ -765,7 +765,8 @@ static void _bfd_dplane_session_fill(const struct bfd_session *bs,
msg->data.session.lid = htonl(bs->discrs.my_discr);
msg->data.session.min_tx = htonl(bs->timers.desired_min_tx);
msg->data.session.min_rx = htonl(bs->timers.required_min_rx);
- msg->data.session.min_echo_rx = htonl(bs->timers.required_min_echo);
+ msg->data.session.min_echo_tx = htonl(bs->timers.desired_min_echo_tx);
+ msg->data.session.min_echo_rx = htonl(bs->timers.required_min_echo_rx);
}
static int _bfd_dplane_add_session(struct bfd_dplane_ctx *bdc,