Bugfix for BMF (thanks eric)
authorHenning Rogge <rogge@fgan.de>
Sat, 22 Nov 2008 18:54:13 +0000 (19:54 +0100)
committerHenning Rogge <rogge@fgan.de>
Sat, 22 Nov 2008 18:54:13 +0000 (19:54 +0100)
lib/bmf/src/NetworkInterfaces.c

index c03dab4..0bc7a7b 100644 (file)
@@ -815,7 +815,7 @@ FindNeighbors (struct TBestNeighbors *neighbors,
         /* Calculate the link quality (ETX) of the link to the found neighbor */
         currEtx = walker->linkcost;
 
-        if (currEtx < LINK_COST_BROKEN)
+        if (currEtx >= LINK_COST_BROKEN)
           {
             OLSR_PRINTF (9,
                          "%s: ----> Not forwarding to %s: link is timing out\n",