diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2022-01-05 16:07:17 +0100 |
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2022-01-17 14:09:01 +0100 |
| commit | bca160c6af499365a946d5b86f9cc71cbc948869 (patch) | |
| tree | 314598940e42dfd3357fc95d30a7a726792f14aa /pimd/pim_upstream.c | |
| parent | 62f59b58ba4c0fa2a5763bccaade47d6b070438b (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.c | 2 |
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) |
