summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authormtm <mtm@FreeBSD.org>2007-11-04 11:12:40 +0000
committermtm <mtm@FreeBSD.org>2007-11-04 11:12:40 +0000
commitcaeeaebcec911c90223d1dd34ad54e05b48b61d1 (patch)
tree1dfeab2b8dd8739fc2bd1bcd24b3fab7d9a06b13 /sbin
parentf765e28012affda0090592dc7a820df5864b8b20 (diff)
downloadFreeBSD-src-caeeaebcec911c90223d1dd34ad54e05b48b61d1.zip
FreeBSD-src-caeeaebcec911c90223d1dd34ad54e05b48b61d1.tar.gz
Don't mask the address in inet_makenetandmask() according to what class
it appears to be in: there is also CIDR. Noticed by: tegge
Diffstat (limited to 'sbin')
-rw-r--r--sbin/route/route.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sbin/route/route.c b/sbin/route/route.c
index 063366a..ed780dd 100644
--- a/sbin/route/route.c
+++ b/sbin/route/route.c
@@ -823,7 +823,6 @@ inet_makenetandmask(net, sin, bits)
else
mask = 0xffffffff;
}
- addr &= mask;
}
sin->sin_addr.s_addr = htonl(addr);
sin = &so_mask.sin;
OpenPOWER on IntegriCloud