]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Do not repeat 'Invalid broadcast address' error message.
authorOndrej Zajicek <santiago@crfreenet.org>
Sun, 26 Oct 2008 22:23:09 +0000 (23:23 +0100)
committerOndrej Zajicek <santiago@crfreenet.org>
Sun, 26 Oct 2008 22:23:09 +0000 (23:23 +0100)
'Invalid broadcast address' error is reported only once for
an interface and not during every interface scan.

sysdep/linux/netlink/netlink.c

index 4ab7fb1089ad682ea039be1c67e635ebb8afb30c..47841955c7d624083ff86163641ad4b32310204d 100644 (file)
@@ -385,7 +385,7 @@ nl_parse_addr(struct nlmsghdr *h)
          ipa_ntoh(xbrd);
          if (ipa_equal(xbrd, ifa.prefix) || ipa_equal(xbrd, ifa.brd))
            ifa.brd = xbrd;
-         else
+         else if (ifi->flags & IF_TMP_DOWN) /* Complain only during the first scan */
            log(L_ERR "KIF: Invalid broadcast address %I for %s", xbrd, ifi->name);
        }
 #endif