summaryrefslogtreecommitdiffstats
path: root/sysdep/unix
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2008-08-25 13:19:49 +0200
committerMartin Mares <mj@ucw.cz>2008-08-25 13:19:49 +0200
commit057021df0d699f9c21368ab0fa51fe821cc9a544 (patch)
tree729c776649d05dfc1378988bbddd4d5fac8d97f7 /sysdep/unix
parent6c36c4b66be5c67a8d5cfa9578aa5a85ebebab6d (diff)
downloadbird-057021df0d699f9c21368ab0fa51fe821cc9a544.tar
bird-057021df0d699f9c21368ab0fa51fe821cc9a544.zip
Fix behavior of ipa_opposite().
It was giving wrong results on /30 networks.
Diffstat (limited to 'sysdep/unix')
-rw-r--r--sysdep/unix/krt-iface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdep/unix/krt-iface.c b/sysdep/unix/krt-iface.c
index 5cc7880..37f9d0b 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;