summaryrefslogtreecommitdiff
path: root/pimd/pim_ifchannel.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2022-01-05 16:07:17 +0100
committerDavid Lamparter <equinox@opensourcerouting.org>2022-01-17 14:09:01 +0100
commitbca160c6af499365a946d5b86f9cc71cbc948869 (patch)
tree314598940e42dfd3357fc95d30a7a726792f14aa /pimd/pim_ifchannel.c
parent62f59b58ba4c0fa2a5763bccaade47d6b070438b (diff)
pimd: add PIMADDR_ANY & tackle assignments
Need a separate constant that is IPv6 when needed. Also assign the whole struct rather than just s_addr. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'pimd/pim_ifchannel.c')
-rw-r--r--pimd/pim_ifchannel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pimd/pim_ifchannel.c b/pimd/pim_ifchannel.c
index 5b650e6e3c..8a641a25ff 100644
--- a/pimd/pim_ifchannel.c
+++ b/pimd/pim_ifchannel.c
@@ -514,7 +514,7 @@ static struct pim_ifchannel *pim_ifchannel_find_parent(struct pim_ifchannel *ch)
// (S,G)
if (!pim_addr_is_any(parent_sg.src) &&
!pim_addr_is_any(parent_sg.grp)) {
- parent_sg.src.s_addr = INADDR_ANY;
+ parent_sg.src = PIMADDR_ANY;
parent = pim_ifchannel_find(ch->interface, &parent_sg);
if (parent)