summaryrefslogtreecommitdiff
path: root/pimd/pim_upstream.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_upstream.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_upstream.c')
-rw-r--r--pimd/pim_upstream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pimd/pim_upstream.c b/pimd/pim_upstream.c
index 4007142374..800ec9c45c 100644
--- a/pimd/pim_upstream.c
+++ b/pimd/pim_upstream.c
@@ -134,7 +134,7 @@ static struct pim_upstream *pim_upstream_find_parent(struct pim_instance *pim,
// (S,G)
if (!pim_addr_is_any(child->sg.src) &&
!pim_addr_is_any(child->sg.grp)) {
- any.src.s_addr = INADDR_ANY;
+ any.src = PIMADDR_ANY;
up = pim_upstream_find(pim, &any);
if (up)