diff options
author | Renato Westphal <renato@opensourcerouting.org> | 2021-10-28 17:35:56 +0200 |
---|---|---|
committer | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2021-11-04 12:00:30 +0100 |
commit | ae0945733333f60fccb0b4ac170ca3ee7351828b (patch) | |
tree | c44a6b45925eccef2136dcd0b77f15ba2b84cbb9 /lib/bfd.c | |
parent | Merge pull request #9915 from pguibert6WIND/flowspec_dplane_missing (diff) | |
download | frr-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.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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. */ |