diff options
author | mtm <mtm@FreeBSD.org> | 2007-11-04 11:12:40 +0000 |
---|---|---|
committer | mtm <mtm@FreeBSD.org> | 2007-11-04 11:12:40 +0000 |
commit | caeeaebcec911c90223d1dd34ad54e05b48b61d1 (patch) | |
tree | 1dfeab2b8dd8739fc2bd1bcd24b3fab7d9a06b13 /sbin/route | |
parent | f765e28012affda0090592dc7a820df5864b8b20 (diff) | |
download | FreeBSD-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/route')
-rw-r--r-- | sbin/route/route.c | 1 |
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; |