diff options
| author | Russ White <russ@riw.us> | 2021-11-05 17:31:29 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-05 17:31:29 -0400 |
| commit | 208a07a8b8bb2531946b6d5f05cc13b5730f58dd (patch) | |
| tree | 23aab172b7d61bac255b518eafaa5815119a7502 /lib/bfd.c | |
| parent | 3e57d691869234b8b9e1873f330f8b81a6b1f2bf (diff) | |
| parent | 7196f56eb3d3866ccafee095c8be66f058d99abf (diff) | |
Merge pull request #9972 from opensourcerouting/bfd-bgp-fixes
bfdd,bgpd: fix some integration bugs
Diffstat (limited to 'lib/bfd.c')
| -rw-r--r-- | lib/bfd.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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. */ |
