Do not repeat 'Invalid broadcast address' error message.

'Invalid broadcast address' error is reported only once for
an interface and not during every interface scan.
This commit is contained in:
Ondrej Zajicek 2008-10-26 23:23:09 +01:00
parent d7f3b30649
commit 4c94a6c7e7

View 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