Commit 4c94a6c7 authored by Ondřej Zajíček's avatar Ondřej Zajíček

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.
parent d7f3b306
...@@ -385,7 +385,7 @@ nl_parse_addr(struct nlmsghdr *h) ...@@ -385,7 +385,7 @@ nl_parse_addr(struct nlmsghdr *h)
ipa_ntoh(xbrd); ipa_ntoh(xbrd);
if (ipa_equal(xbrd, ifa.prefix) || ipa_equal(xbrd, ifa.brd)) if (ipa_equal(xbrd, ifa.prefix) || ipa_equal(xbrd, ifa.brd))
ifa.brd = xbrd; 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); log(L_ERR "KIF: Invalid broadcast address %I for %s", xbrd, ifi->name);
} }
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment