From 057021df0d699f9c21368ab0fa51fe821cc9a544 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Mon, 25 Aug 2008 11:19:49 +0000 Subject: Fix behavior of ipa_opposite(). It was giving wrong results on /30 networks. --- sysdep/unix/krt-iface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysdep/unix') 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; -- cgit v1.2.3