summaryrefslogtreecommitdiff
path: root/pimd/pim_join.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_join.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_join.c')
-rw-r--r--pimd/pim_join.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pimd/pim_join.c b/pimd/pim_join.c
index 6569e832fb..d77d2e9969 100644
--- a/pimd/pim_join.c
+++ b/pimd/pim_join.c
@@ -114,7 +114,7 @@ static void recv_join(struct interface *ifp, struct pim_neighbor *neigh,
return;
}
- sg->src.s_addr = INADDR_ANY;
+ sg->src = PIMADDR_ANY;
}
/* Restart join expiry timer */
@@ -163,7 +163,7 @@ static void recv_prune(struct interface *ifp, struct pim_neighbor *neigh,
__func__, received_rp, sg);
}
- sg->src.s_addr = INADDR_ANY;
+ sg->src = PIMADDR_ANY;
}
pim_ifchannel_prune(ifp, upstream, sg, source_flags, holdtime);