diff options
author | glebius <glebius@FreeBSD.org> | 2011-10-15 16:28:06 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2011-10-15 16:28:06 +0000 |
commit | 2eb352ca19c8bd71bd1bfcce26479b057e8b2d10 (patch) | |
tree | a34f7dee77798558dd1364217db88132054fee7b /sys/netinet/ip_input.c | |
parent | f9ab6d932b230119bdf8030024b673f60830e6da (diff) | |
download | FreeBSD-src-2eb352ca19c8bd71bd1bfcce26479b057e8b2d10.zip FreeBSD-src-2eb352ca19c8bd71bd1bfcce26479b057e8b2d10.tar.gz |
Remove last remnants of classful addressing:
- Remove ia_net, ia_netmask, ia_netbroadcast from struct in_ifaddr.
- Remove net.inet.ip.subnetsarelocal, I bet no one need it in 2011.
- fix bug when we were not forwarding to a host which matches classful
net address. For example router having 192.168.x.y/16 network attached,
would not forward traffic to 192.168.*.0, which are legal IPs in
CIDR world.
- For compatibility, leave autoguessing of mask based on class.
Reviewed by: andre, bz, rwatson
Diffstat (limited to 'sys/netinet/ip_input.c')
-rw-r--r-- | sys/netinet/ip_input.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c index 67fcb74..0664acc 100644 --- a/sys/netinet/ip_input.c +++ b/sys/netinet/ip_input.c @@ -622,11 +622,6 @@ passin: IF_ADDR_UNLOCK(ifp); goto ours; } - if (ia->ia_netbroadcast.s_addr == ip->ip_dst.s_addr) { - ifa_ref(ifa); - IF_ADDR_UNLOCK(ifp); - goto ours; - } #ifdef BOOTP_COMPAT if (IA_SIN(ia)->sin_addr.s_addr == INADDR_ANY) { ifa_ref(ifa); |