FIX: ignore UNSPEC link for linktype if there is an ASYM/LOST/SYM Link in the same...
authorHenning Rogge <rogge@fgan.de>
Wed, 29 Apr 2009 07:06:08 +0000 (09:06 +0200)
committerHenning Rogge <rogge@fgan.de>
Wed, 29 Apr 2009 07:06:08 +0000 (09:06 +0200)
src/link_set.c

index 4100102..cd852ae 100644 (file)
@@ -698,7 +698,8 @@ check_link_status(const struct lq_hello_message *message, const struct interface
      * Note: If a neigh has 2 cards we can reach, the neigh
      * will send a Hello with the same IP mentined twice
      */
-    if (olsr_ipcmp(&neighbors->addr, &in_if->ip_addr) == 0) {
+    if (olsr_ipcmp(&neighbors->addr, &in_if->ip_addr) == 0
+        && neighbors->link_type != UNSPEC_LINK) {
       ret = neighbors->link_type;
       if (SYM_LINK == ret) {
         break;