diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2022-01-05 15:55:00 +0100 |
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2022-01-17 14:08:29 +0100 |
| commit | 032a741219aac787882e039bd3bdc22adeceea5c (patch) | |
| tree | 3ad47582f247b144c3ba69ce6d3a0317f3846a86 /pimd/pim_upstream.c | |
| parent | 2a27f13b2197d07d11454b6cc8d0e5fc5b6ded87 (diff) | |
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_upstream.c')
| -rw-r--r-- | pimd/pim_upstream.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pimd/pim_upstream.c b/pimd/pim_upstream.c index e6536edfd2..e3d0db1bf2 100644 --- a/pimd/pim_upstream.c +++ b/pimd/pim_upstream.c @@ -109,8 +109,7 @@ static void pim_upstream_find_new_children(struct pim_instance *pim, frr_each (rb_pim_upstream, &pim->upstream_head, child) { if (!pim_addr_is_any(up->sg.grp) && - (child->sg.grp.s_addr == up->sg.grp.s_addr) && - (child != up)) { + !pim_addr_cmp(child->sg.grp, up->sg.grp) && (child != up)) { child->parent = up; listnode_add_sort(up->sources, child); if (PIM_UPSTREAM_FLAG_TEST_USE_RPT(child->flags)) |
