summaryrefslogtreecommitdiff
path: root/lib/bfd.h
diff options
context:
space:
mode:
authorRafael Zalamena <rzalamena@opensourcerouting.org>2021-11-03 08:45:02 -0300
committerRafael Zalamena <rzalamena@opensourcerouting.org>2021-11-04 08:01:28 -0300
commitca30ac7fc375e3979776bb229587415f05bd4ce9 (patch)
tree8caf974c99f71da8bde213700f03fe3386814107 /lib/bfd.h
parentae0945733333f60fccb0b4ac170ca3ee7351828b (diff)
lib: constify read only parameters
Constify some BFD library function parameters to signalize they are not going to get modified. Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Diffstat (limited to 'lib/bfd.h')
-rw-r--r--lib/bfd.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/bfd.h b/lib/bfd.h
index 6c0d1c177e..cc9659ff79 100644
--- a/lib/bfd.h
+++ b/lib/bfd.h
@@ -124,7 +124,8 @@ void bfd_sess_free(struct bfd_session_params **bsp);
* \param dst remote address (mandatory).
*/
void bfd_sess_set_ipv4_addrs(struct bfd_session_params *bsp,
- struct in_addr *src, struct in_addr *dst);
+ const struct in_addr *src,
+ const struct in_addr *dst);
/**
* Set the local and peer address of the BFD session.
@@ -138,7 +139,8 @@ void bfd_sess_set_ipv4_addrs(struct bfd_session_params *bsp,
* \param dst remote address (mandatory).
*/
void bfd_sess_set_ipv6_addrs(struct bfd_session_params *bsp,
- struct in6_addr *src, struct in6_addr *dst);
+ const struct in6_addr *src,
+ const struct in6_addr *dst);
/**
* Configure the BFD session interface.