From: Donald Sharp Date: Wed, 2 Nov 2016 15:20:27 +0000 (-0400) Subject: pimd: Add some helper functions. X-Git-Tag: frr-3.0-branchpoint~64^2~10^2~139 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=80d9c3a014f4da2bafe52c5e7d98878aab984641;p=mirror%2Ffrr.git pimd: Add some helper functions. Currently these are stubs to help debug logic. Will be filled in as we go. Signed-off-by: Donald Sharp --- diff --git a/pimd/pim_upstream.c b/pimd/pim_upstream.c index 9d31245207..0ab21166da 100644 --- a/pimd/pim_upstream.c +++ b/pimd/pim_upstream.c @@ -1009,6 +1009,14 @@ pim_upstream_switch_to_spt_desired (struct prefix_sg *sg) return 0; } +int +pim_upstream_is_sg_rpt (struct pim_upstream *up) +{ + // FIXME: When we implement the ability to + // receive a s,g,rpt prune this can be modified + return 0; +} + const char * pim_upstream_state2str (enum pim_upstream_state join_state) { @@ -1180,6 +1188,13 @@ pim_upstream_inherited_olist (struct pim_upstream *up) return output_intf; } +int +pim_upstream_empty_inherited_olist (struct pim_upstream *up) +{ + // FIXME: Currently this is not implemented + return 0; +} + /* * When we have a new neighbor, * find upstreams that don't have their rpf_addr diff --git a/pimd/pim_upstream.h b/pimd/pim_upstream.h index a2a912ff4f..46aaef39b7 100644 --- a/pimd/pim_upstream.h +++ b/pimd/pim_upstream.h @@ -144,6 +144,7 @@ void pim_upstream_keep_alive_timer_start (struct pim_upstream *up, uint32_t time int pim_upstream_switch_to_spt_desired (struct prefix_sg *sg); #define SwitchToSptDesired(sg) pim_upstream_switch_to_spt_desired (sg) +int pim_upstream_is_sg_rpt (struct pim_upstream *up); void pim_upstream_start_register_stop_timer (struct pim_upstream *up, int null_register); @@ -154,6 +155,7 @@ void pim_upstream_switch (struct pim_upstream *up, enum pim_upstream_state new_s const char *pim_upstream_state2str (enum pim_upstream_state join_state); int pim_upstream_inherited_olist (struct pim_upstream *up); +int pim_upstream_empty_inherited_olist (struct pim_upstream *up); void pim_upstream_find_new_rpf (void);