summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2008-10-26 23:23:09 +0100
committerOndrej Zajicek <santiago@crfreenet.org>2008-10-26 23:23:09 +0100
commit4c94a6c7e78fb75a9952d891db9d47605f8a26e1 (patch)
treeab8f4b49465b5fd5075a5c81e7f48ea14bdca1ac
parentd7f3b306495327e76aa9ae381c6c7575104e0e24 (diff)
downloadbird-4c94a6c7e78fb75a9952d891db9d47605f8a26e1.tar
bird-4c94a6c7e78fb75a9952d891db9d47605f8a26e1.zip
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.
-rw-r--r--sysdep/linux/netlink/netlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdep/linux/netlink/netlink.c b/sysdep/linux/netlink/netlink.c
index 4ab7fb1..4784195 100644
--- a/sysdep/linux/netlink/netlink.c
+++ b/sysdep/linux/netlink/netlink.c
@@ -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