Ignore links with cost "broken" for spf
authorHenning Rogge <henning.rogge@fkie.fraunhofer.de>
Tue, 15 Jun 2010 07:40:12 +0000 (09:40 +0200)
committerHenning Rogge <henning.rogge@fkie.fraunhofer.de>
Tue, 15 Jun 2010 07:40:12 +0000 (09:40 +0200)
src/olsr_spf.c

index 10fffb4..6bf89b4 100644 (file)
@@ -216,6 +216,12 @@ olsr_spf_relax(struct avl_tree *cand_tree, struct tc_entry *tc)
       continue;
     }
 
       continue;
     }
 
+    if (tc_edge->cost == LINK_COST_BROKEN) {
+#ifdef DEBUG
+      OLSR_PRINTF(2, "SPF:   ignore edge %s (broken)\n", olsr_ip_to_string(&buf, &tc_edge->T_dest_addr));
+#endif
+      continue;
+    }
     /*
      * total quality of the path through this vertex
      * to the destination of this edge
     /*
      * total quality of the path through this vertex
      * to the destination of this edge