summaryrefslogtreecommitdiffstats
path: root/lib/bfd.c
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2021-10-28 17:35:56 +0200
committerRafael Zalamena <rzalamena@opensourcerouting.org>2021-11-04 12:00:30 +0100
commitae0945733333f60fccb0b4ac170ca3ee7351828b (patch)
treec44a6b45925eccef2136dcd0b77f15ba2b84cbb9 /lib/bfd.c
parentMerge pull request #9915 from pguibert6WIND/flowspec_dplane_missing (diff)
downloadfrr-ae0945733333f60fccb0b4ac170ca3ee7351828b.tar.xz
frr-ae0945733333f60fccb0b4ac170ca3ee7351828b.zip
lib: fix BFD IPv6 session address change
Pass the correct family type and remove unneeded casts. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to '')
-rw-r--r--lib/bfd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/bfd.c b/lib/bfd.c
index 70cbe0f2a..cad0916d7 100644
--- a/lib/bfd.c
+++ b/lib/bfd.c
@@ -578,8 +578,7 @@ 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)
{
- 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. */