]> git.puffer.fish Git - mirror/frr.git/commitdiff
pimd: SwitchToSptDesired now uses struct prefix *sg.
authorDonald Sharp <sharpd@cumulusnetwroks.com>
Sat, 23 Jul 2016 04:06:55 +0000 (00:06 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 22 Dec 2016 01:26:03 +0000 (20:26 -0500)
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
pimd/pim_register.c
pimd/pim_upstream.c
pimd/pim_upstream.h

index 608b1bf300454083af16679dbe2cd88a35ae9fe6..c1a78b722fbbae04335443f838193e5116f9cee5 100644 (file)
@@ -331,14 +331,14 @@ pim_register_recv (struct interface *ifp,
       }
 
     if ((upstream->sptbit == PIM_UPSTREAM_SPTBIT_TRUE) ||
-       ((SwitchToSptDesired(source, group)) &&
+       ((SwitchToSptDesired(&sg)) &&
         (inherited_olist(source, group) == NULL))) {
       pim_register_stop_send (ifp, source, group, src_addr);
       sentRegisterStop = 1;
     }
 
     if ((upstream->sptbit == PIM_UPSTREAM_SPTBIT_TRUE) ||
-       (SwitchToSptDesired(source, group))) {
+       (SwitchToSptDesired(&sg))) {
       if (sentRegisterStop) {
        pim_upstream_keep_alive_timer_start (upstream, PIM_RP_KEEPALIVE_PERIOD);
       } else {
index 85f45566a49547ba92bf57629e526321f4556c4f..4931c6c66711df2c2f821ba07d9f52b2aed8d1e6 100644 (file)
@@ -749,7 +749,7 @@ pim_upstream_keep_alive_timer_start (struct pim_upstream *up,
  *  received for the source and group.
  */
 int
-pim_upstream_switch_to_spt_desired (struct in_addr source, struct in_addr group)
+pim_upstream_switch_to_spt_desired (struct prefix *sg)
 {
   return 0;
 }
index 7783cc4bc913346be35eb7dc65302b17b0367b0a..3bfddd7d052f0edea6001a77695b8305b91d5e0d 100644 (file)
@@ -146,8 +146,8 @@ void pim_upstream_update_my_assert_metric(struct pim_upstream *up);
 
 void pim_upstream_keep_alive_timer_start (struct pim_upstream *up, uint32_t time);
 
-int pim_upstream_switch_to_spt_desired (struct in_addr source, struct in_addr group);
-#define SwitchToSptDesired(S,G) pim_upstream_switch_to_spt_desired ((S), (G))
+int pim_upstream_switch_to_spt_desired (struct prefix *sg);
+#define SwitchToSptDesired(sg) pim_upstream_switch_to_spt_desired (sg)
 
 void pim_upstream_start_register_stop_timer (struct pim_upstream *up, int null_register);