summaryrefslogtreecommitdiffstats
path: root/bfdd/bfd.h
diff options
context:
space:
mode:
authorRafael Zalamena <rzalamena@opensourcerouting.org>2020-09-17 15:28:27 +0200
committerRafael Zalamena <rzalamena@opensourcerouting.org>2020-11-24 11:55:07 +0100
commit6655b43d512faffc75a72de6e3df02415b0af709 (patch)
tree28fe3569703c81306f3498c1ceee3d8fa4e0d338 /bfdd/bfd.h
parentredhat: include new BFD development header (diff)
downloadfrr-6655b43d512faffc75a72de6e3df02415b0af709.tar.xz
frr-6655b43d512faffc75a72de6e3df02415b0af709.zip
bfdd: support connecting to BFD data plane
Add option to connect to a data plane server instead of receiving connections. Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Diffstat (limited to 'bfdd/bfd.h')
-rw-r--r--bfdd/bfd.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/bfdd/bfd.h b/bfdd/bfd.h
index d6e762c52..7c537b40d 100644
--- a/bfdd/bfd.h
+++ b/bfdd/bfd.h
@@ -762,10 +762,11 @@ int ptm_bfd_notify(struct bfd_session *bs, uint8_t notify_state);
/**
* Initialize BFD data plane infrastructure for distributed BFD implementation.
*
- * \param sa listening socket address.
- * \param salen listening socket address structure length.
+ * \param sa socket address.
+ * \param salen socket address structure length.
+ * \param client `true` means connecting socket, `false` listening socket.
*/
-void bfd_dplane_init(const struct sockaddr *sa, socklen_t salen);
+void bfd_dplane_init(const struct sockaddr *sa, socklen_t salen, bool client);
/**
* Attempts to delegate the BFD session liveness detection to hardware.