]> git.puffer.fish Git - mirror/frr.git/commitdiff
pimd: start fix of inherited_olist
authorDonald Sharp <sharpd@cumulusnetwroks.com>
Sat, 23 Jul 2016 07:47:15 +0000 (03:47 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 22 Dec 2016 01:26:03 +0000 (20:26 -0500)
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>
pimd/pim_register.c
pimd/pim_upstream.c
pimd/pim_upstream.h

index 312e91782786154c87e0da71d6b8427ad939b72a..0b78d08ce9178385c91713546c7ac4a1a16ccb7f 100644 (file)
@@ -257,7 +257,6 @@ pim_register_recv (struct interface *ifp,
     return 0;
   }
 
-#define inherited_olist(S,G) NULL
   /*
    * Please note this is not drawn to get the correct bit/data size
    *
@@ -322,7 +321,7 @@ pim_register_recv (struct interface *ifp,
 
     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;
     }
index a2bca9f6504e3286c1ee5fda1ac5049bd09f691f..3cbe371549ede931bdfeecfc5e60c27ca5c51b89 100644 (file)
@@ -849,3 +849,15 @@ pim_upstream_start_register_stop_timer (struct pim_upstream *up, int null_regist
                   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;
+}
index 3bfddd7d052f0edea6001a77695b8305b91d5e0d..0049c649923578579dd869f741468dda5797d1bd 100644 (file)
@@ -156,4 +156,6 @@ void pim_upstream_send_join (struct pim_upstream *up);
 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 */