summaryrefslogtreecommitdiffstats
path: root/pimd/pim_msdp.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2022-01-05 15:55:00 +0100
committerDavid Lamparter <equinox@opensourcerouting.org>2022-01-17 14:08:29 +0100
commit032a741219aac787882e039bd3bdc22adeceea5c (patch)
tree3ad47582f247b144c3ba69ce6d3a0317f3846a86 /pimd/pim_msdp.c
parentpimd: move, rename and deploy pim_addr_is_any() (diff)
downloadfrr-032a741219aac787882e039bd3bdc22adeceea5c.tar.xz
frr-032a741219aac787882e039bd3bdc22adeceea5c.zip
pimd: move & deploy pim_addr_cmp() helper
Comparing `s_addr` isn't cutting it for IPv6 support. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'pimd/pim_msdp.c')
-rw-r--r--pimd/pim_msdp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pimd/pim_msdp.c b/pimd/pim_msdp.c
index 520d93bbf..63cdc9214 100644
--- a/pimd/pim_msdp.c
+++ b/pimd/pim_msdp.c
@@ -632,7 +632,7 @@ void pim_msdp_up_join_state_changed(struct pim_instance *pim,
/* XXX: Need to maintain SAs per-group to avoid all this unnecessary
* walking */
for (ALL_LIST_ELEMENTS_RO(pim->msdp.sa_list, sanode, sa)) {
- if (sa->sg.grp.s_addr != xg_up->sg.grp.s_addr) {
+ if (pim_addr_cmp(sa->sg.grp, xg_up->sg.grp)) {
continue;
}
pim_msdp_sa_upstream_update(sa, xg_up, "up-jp-change");
@@ -656,7 +656,7 @@ static void pim_msdp_up_xg_del(struct pim_instance *pim, pim_sgaddr *sg)
/* XXX: Need to maintain SAs per-group to avoid all this unnecessary
* walking */
for (ALL_LIST_ELEMENTS_RO(pim->msdp.sa_list, sanode, sa)) {
- if (sa->sg.grp.s_addr != sg->grp.s_addr) {
+ if (pim_addr_cmp(sa->sg.grp, sg->grp)) {
continue;
}
pim_msdp_sa_upstream_update(sa, NULL /* xg */, "up-jp-change");