merge sf.net tree
authorErik Tromp <erik_tromp@hotmail.com>
Fri, 29 Feb 2008 09:50:43 +0000 (10:50 +0100)
committerErik Tromp <erik_tromp@hotmail.com>
Fri, 29 Feb 2008 09:50:43 +0000 (10:50 +0100)
1  2 
src/tc_set.c

diff --cc src/tc_set.c
@@@ -761,12 -761,13 +761,13 @@@ olsr_print_tc_table(void
      struct tc_edge_entry *tc_edge;
      OLSR_FOR_ALL_TC_EDGE_ENTRIES(tc, tc_edge) {
        struct ipaddr_str addrbuf, dstaddrbuf;
-       OLSR_PRINTF(1, "%-*s %-*s  %s  %s  %s\n",
+       OLSR_PRINTF(1, "%-*s %-*s  %s  %s  %s  %s\n",
                    ipwidth, olsr_ip_to_string(&addrbuf, &tc->addr),
                    ipwidth, olsr_ip_to_string(&dstaddrbuf, &tc_edge->T_dest_addr),
 -                  olsr_etx_to_string(tc_edge->link_quality),
 -                  olsr_etx_to_string(tc_edge->inverse_link_quality),
 -                  olsr_etx_to_string(olsr_calc_tc_etx(tc_edge)),
 +                  fpmtoa(tc_edge->link_quality),
 +                  fpmtoa(tc_edge->inverse_link_quality),
 +                  etxtoa(olsr_calc_tc_etx(tc_edge)),
+                   tc_edge->flags & OLSR_TC_EDGE_DOWN ? "DOWN" : "UP");
      } OLSR_FOR_ALL_TC_EDGE_ENTRIES_END(tc, tc_edge);
    } OLSR_FOR_ALL_TC_ENTRIES_END(tc);
  #endif