summaryrefslogtreecommitdiff
path: root/pimd/pim_upstream.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-06-22 11:05:03 -0400
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-07-24 13:51:40 -0400
commit0885a9f1f4352996d95766b69fc29e464adee01c (patch)
tree93cca0199ebd05321ecc31928f5c43eed9a6f89a /pimd/pim_upstream.h
parent96ceedc7a27404a148bc9cc513b5b60e286cffc2 (diff)
pimd: Fix code to not send joins when SGRPT Prune is received
When we receive a SGRPT Prune we were switching the upstream to JOINED and immediately sending a join. This was not the right thing to do. This was happening because we were making decisions about the new ifchannel before it was fully formed. Rework ifchannel startup to provide enough information to the pim upstream data structure to make the right decisions Ticket: CM-16425 Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_upstream.h')
-rw-r--r--pimd/pim_upstream.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/pimd/pim_upstream.h b/pimd/pim_upstream.h
index b261b8cbae..af4af2a369 100644
--- a/pimd/pim_upstream.h
+++ b/pimd/pim_upstream.h
@@ -146,7 +146,8 @@ struct pim_upstream *pim_upstream_find_or_add(struct prefix_sg *sg,
struct pim_upstream *pim_upstream_add(struct pim_instance *pim,
struct prefix_sg *sg,
struct interface *ifp, int flags,
- const char *name);
+ const char *name,
+ struct pim_ifchannel *ch);
void pim_upstream_ref(struct pim_upstream *up, int flags, const char *name);
struct pim_upstream *pim_upstream_del(struct pim_instance *pim,
struct pim_upstream *up,