summaryrefslogtreecommitdiffstats
path: root/sys/netinet/in_debug.c
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2011-10-15 16:28:06 +0000
committerglebius <glebius@FreeBSD.org>2011-10-15 16:28:06 +0000
commit2eb352ca19c8bd71bd1bfcce26479b057e8b2d10 (patch)
treea34f7dee77798558dd1364217db88132054fee7b /sys/netinet/in_debug.c
parentf9ab6d932b230119bdf8030024b673f60830e6da (diff)
downloadFreeBSD-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/in_debug.c')
-rw-r--r--sys/netinet/in_debug.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/netinet/in_debug.c b/sys/netinet/in_debug.c
index 7624f1d..0795fa8 100644
--- a/sys/netinet/in_debug.c
+++ b/sys/netinet/in_debug.c
@@ -86,11 +86,8 @@ in_show_in_ifaddr(struct in_ifaddr *ia)
#define IA_DB_RPINTF_DPTR(f, e) db_printf("\t *%s = " f "\n", #e, *ia->e);
db_printf("\tin_ifaddr = %p\n", ia);
IA_DB_RPINTF_PTR("%p", ia_ifa);
- IA_DB_RPINTF("0x%08lx", ia_net);
- IA_DB_RPINTF("0x%08lx", ia_netmask);
IA_DB_RPINTF("0x%08lx", ia_subnet);
IA_DB_RPINTF("0x%08lx", ia_subnetmask);
- IA_DB_RPINTF("0x%08x", ia_netbroadcast.s_addr);
IA_DB_RPINTF("%p", ia_hash.le_next);
IA_DB_RPINTF("%p", ia_hash.le_prev);
IA_DB_RPINTF_DPTR("%p", ia_hash.le_prev);
OpenPOWER on IntegriCloud