Make sure that we have a route to the router interface.
authorThomas Lopatic <thomas@lopatic.de>
Wed, 23 Feb 2005 23:24:45 +0000 (23:24 +0000)
committerThomas Lopatic <thomas@lopatic.de>
Wed, 23 Feb 2005 23:24:45 +0000 (23:24 +0000)
src/lq_route.c

index 3895cf8..4e5393e 100644 (file)
@@ -36,7 +36,7 @@
  * to the project. For more information see the website or contact
  * the copyright holders.
  *
- * $Id: lq_route.c,v 1.28 2005/02/17 16:45:57 tlopatic Exp $
+ * $Id: lq_route.c,v 1.29 2005/02/23 23:24:45 tlopatic Exp $
  */
 
 #include "defs.h"
@@ -536,7 +536,6 @@ void olsr_calculate_lq_routing_table(void)
           olsr_insert_routing_table(&mid_walker->alias,
                                     &link->neighbor_iface_addr, inter, hops);
 
-#ifdef __UNTESTED__
         // make sure that we have a route to the router - e.g. in case
         // the router's not the main address and it's MID entry has timed
         // out
@@ -544,7 +543,6 @@ void olsr_calculate_lq_routing_table(void)
         if (olsr_lookup_routing_table(&link->neighbor_iface_addr) == NULL)
           olsr_insert_routing_table(&link->neighbor_iface_addr,
                                     &link->neighbor_iface_addr, inter, hops);
-#endif
       }
     }
   }