summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRuss White <russ@riw.us>2021-11-05 22:31:29 +0100
committerGitHub <noreply@github.com>2021-11-05 22:31:29 +0100
commit208a07a8b8bb2531946b6d5f05cc13b5730f58dd (patch)
tree23aab172b7d61bac255b518eafaa5815119a7502 /lib
parentMerge pull request #9974 from donaldsharp/ldp_vpls_topo1_wait (diff)
parentbgpd: update BFD config on update-source change (diff)
downloadfrr-208a07a8b8bb2531946b6d5f05cc13b5730f58dd.tar.xz
frr-208a07a8b8bb2531946b6d5f05cc13b5730f58dd.zip
Merge pull request #9972 from opensourcerouting/bfd-bgp-fixes
bfdd,bgpd: fix some integration bugs
Diffstat (limited to 'lib')
-rw-r--r--lib/bfd.c9
-rw-r--r--lib/bfd.h6
2 files changed, 9 insertions, 6 deletions
diff --git a/lib/bfd.c b/lib/bfd.c
index 70cbe0f2a..9800ed492 100644
--- a/lib/bfd.c
+++ b/lib/bfd.c
@@ -552,7 +552,8 @@ static bool bfd_sess_address_changed(const struct bfd_session_params *bsp,
}
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)
{
if (!bfd_sess_address_changed(bsp, AF_INET, (struct in6_addr *)src,
(struct in6_addr *)dst))
@@ -576,10 +577,10 @@ void bfd_sess_set_ipv4_addrs(struct bfd_session_params *bsp,
}
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)
{
- if (!bfd_sess_address_changed(bsp, AF_INET, (struct in6_addr *)src,
- (struct in6_addr *)dst))
+ if (!bfd_sess_address_changed(bsp, AF_INET6, src, dst))
return;
/* If already installed, remove the old setting. */
diff --git a/lib/bfd.h b/lib/bfd.h
index 6c0d1c177..cc9659ff7 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.