summaryrefslogtreecommitdiffstats
path: root/sysdep/linux
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2010-04-21 21:52:10 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2010-04-21 21:52:10 +0200
commit1d44ddf20f3ecef864d4bd20355251839fcd10ee (patch)
tree1a8a1d51e81a67481c13833372731b79ea4863fb /sysdep/linux
parent3b89a2327ba385abf2a8321a5a900faba3765612 (diff)
parent6bc414d619e1d8710990e89e5085d18e2d5c544c (diff)
downloadbird-1d44ddf20f3ecef864d4bd20355251839fcd10ee.tar
bird-1d44ddf20f3ecef864d4bd20355251839fcd10ee.zip
Merge commit 'origin/master' into new
Diffstat (limited to 'sysdep/linux')
-rw-r--r--sysdep/linux/netlink/netlink.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sysdep/linux/netlink/netlink.c b/sysdep/linux/netlink/netlink.c
index f31ef9f..aa0f2c4 100644
--- a/sysdep/linux/netlink/netlink.c
+++ b/sysdep/linux/netlink/netlink.c
@@ -373,8 +373,7 @@ nl_parse_addr(struct nlmsghdr *h)
memcpy(&ifa.ip, RTA_DATA(a[IFA_LOCAL] ? : a[IFA_ADDRESS]), sizeof(ifa.ip));
ipa_ntoh(ifa.ip);
ifa.pxlen = i->ifa_prefixlen;
- if (i->ifa_prefixlen > BITS_PER_IP_ADDRESS ||
- i->ifa_prefixlen == BITS_PER_IP_ADDRESS - 1)
+ if (i->ifa_prefixlen > BITS_PER_IP_ADDRESS)
{
log(L_ERR "KIF: Invalid prefix length for interface %s: %d", ifi->name, i->ifa_prefixlen);
new = 0;