mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 14:17:20 +00:00
lib: fix BFD IPv6 session address change
Pass the correct family type and remove unneeded casts. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
This commit is contained in:
parent
f154a68dbe
commit
ae09457333
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user