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_ifchannel.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_ifchannel.c')
| -rw-r--r-- | pimd/pim_ifchannel.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pimd/pim_ifchannel.c b/pimd/pim_ifchannel.c index d7011cabfe..7a98e693ee 100644 --- a/pimd/pim_ifchannel.c +++ b/pimd/pim_ifchannel.c @@ -115,8 +115,7 @@ static void pim_ifchannel_find_new_children(struct pim_ifchannel *ch) RB_FOREACH (child, pim_ifchannel_rb, &pim_ifp->ifchannel_rb) { if (!pim_addr_is_any(ch->sg.grp) && - (child->sg.grp.s_addr == ch->sg.grp.s_addr) && - (child != ch)) { + !pim_addr_cmp(child->sg.grp, ch->sg.grp) && (child != ch)) { child->parent = ch; listnode_add_sort(ch->sources, child); } |
