summaryrefslogtreecommitdiff
path: root/sysdep
diff options
context:
space:
mode:
Diffstat (limited to 'sysdep')
-rw-r--r--sysdep/linux/netlink/netlink.c2
-rw-r--r--sysdep/unix/krt-iface.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sysdep/linux/netlink/netlink.c b/sysdep/linux/netlink/netlink.c
index a54e1157..a70428ef 100644
--- a/sysdep/linux/netlink/netlink.c
+++ b/sysdep/linux/netlink/netlink.c
@@ -377,7 +377,7 @@ nl_parse_addr(struct nlmsghdr *h)
ifa.brd = ipa_or(ifa.ip, ipa_not(netmask));
#ifndef IPV6
if (i->ifa_prefixlen == BITS_PER_IP_ADDRESS - 2)
- ifa.opposite = ipa_opposite(ifa.ip);
+ ifa.opposite = ipa_opposite(ifa.ip, i->ifa_prefixlen);
if ((ifi->flags & IF_BROADCAST) && a[IFA_BROADCAST])
{
memcpy(&xbrd, RTA_DATA(a[IFA_BROADCAST]), sizeof(xbrd));
diff --git a/sysdep/unix/krt-iface.c b/sysdep/unix/krt-iface.c
index 5cc78807..37f9d0bd 100644
--- a/sysdep/unix/krt-iface.c
+++ b/sysdep/unix/krt-iface.c
@@ -140,7 +140,7 @@ scan_ifs(struct ifreq *r, int cnt)
if (a.pxlen < 30)
i.flags |= IF_MULTIACCESS;
else
- a.opposite = ipa_opposite(a.ip);
+ a.opposite = ipa_opposite(a.ip, a.pxlen);
}
else
a.brd = a.opposite;