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:03:36 +0000 (09:03 +0200)
committerHenning Rogge <rogge@fgan.de>
Wed, 29 Apr 2009 07:03:36 +0000 (09:03 +0200)
src/link_set.c

index 84c1891..29ca791 100644 (file)
@@ -749,7 +749,8 @@ check_link_status(const struct hello_message *message, const struct interface *i
      * Note: If a neigh has 2 cards we can reach, the neigh
      * will send a Hello with the same IP mentined twice
      */
-    if (ipequal(&neighbors->address, &in_if->ip_addr)) {
+    if (ipequal(&neighbors->address, &in_if->ip_addr) &&
+        neighbors->link != UNSPEC_LINK) {
       ret = neighbors->link;
       if (SYM_LINK == ret) {
         break;