]> git.puffer.fish Git - matthieu/frr.git/commitdiff
lib: fix BFD IPv6 session address change
authorRenato Westphal <renato@opensourcerouting.org>
Thu, 28 Oct 2021 15:35:56 +0000 (12:35 -0300)
committerRafael Zalamena <rzalamena@opensourcerouting.org>
Thu, 4 Nov 2021 11:00:30 +0000 (08:00 -0300)
Pass the correct family type and remove unneeded casts.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
lib/bfd.c

index 70cbe0f2a68dbeb3e2e6411d99e29737518b485e..cad0916d7d944a9f17e7c0cbdbc5e75419ba4c45 100644 (file)
--- 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. */