]> git.puffer.fish Git - mirror/frr.git/commitdiff
pimd: Add some helper functions.
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 2 Nov 2016 15:20:27 +0000 (11:20 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 22 Dec 2016 01:26:13 +0000 (20:26 -0500)
Currently these are stubs to help debug logic.
Will be filled in as we go.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
pimd/pim_upstream.c
pimd/pim_upstream.h

index 9d31245207ce897639e63e43529ec697da737f9f..0ab21166da7481ed524e2080754152c0ab8d6158 100644 (file)
@@ -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
index a2a912ff4f95691b1fc697fe648dc87c99da514d..46aaef39b73018701b0392c69bb3c0ec34c32241 100644 (file)
@@ -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);