Don't mask the address in inet_makenetandmask() according to what class

it appears to be in: there is also CIDR.

Noticed by: tegge
This commit is contained in:
Mike Makonnen 2007-11-04 11:12:40 +00:00
parent 5f33ec7ba2
commit 5ab965347e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=173321

View File

@ -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;