We were not correctly determing the inherited olist and
applying it to the s,g.
Start the work to do this.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
return 0;
}
-#define inherited_olist(S,G) NULL
/*
* Please note this is not drawn to get the correct bit/data size
*
if ((upstream->sptbit == PIM_UPSTREAM_SPTBIT_TRUE) ||
((SwitchToSptDesired(&sg)) &&
- (inherited_olist(source, group) == NULL))) {
+ pim_upstream_inherited_olist (upstream) == 0)) {
pim_register_stop_send (ifp, &sg, src_addr);
sentRegisterStop = 1;
}
pim_upstream_register_stop_timer,
up, time);
}
+
+/*
+ * For a given upstream, determine the inherited_olist
+ * and apply it.
+ * return 1 if there are any output interfaces
+ * return 0 if there are not any output interfaces
+ */
+int
+pim_upstream_inherited_olist (struct pim_upstream *up)
+{
+ return 0;
+}
void pim_upstream_switch (struct pim_upstream *up, enum pim_upstream_state new_state);
const char *pim_upstream_state2str (struct pim_upstream *up);
+
+int pim_upstream_inherited_olist (struct pim_upstream *up);
#endif /* PIM_UPSTREAM_H */