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:
parent
d7f3b30649
commit
4c94a6c7e7
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue