summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1999-04-26 09:05:31 +0000
committerpeter <peter@FreeBSD.org>1999-04-26 09:05:31 +0000
commitc73393db8c915110c2d213fe4f95579f8df14595 (patch)
tree47782258813f8f61df22e7dfb8f4c691baffbe75
parente29be9ada8c29f05c864d7820481379f0a86ddff (diff)
downloadFreeBSD-src-c73393db8c915110c2d213fe4f95579f8df14595.zip
FreeBSD-src-c73393db8c915110c2d213fe4f95579f8df14595.tar.gz
Temporary hack. The radix code shouldn't need this, it should be
able to expand the zeros, ones etc masks on the fly. It seems a good number of domains don't set the rn_maxkey variable anyway, and because this is a domain itself, there is no guarantee we've been called after a protocol that actually has set it (ie: inet), so start with a maxkey of a relatively sane size as a base point until it can adapt on the fly.
-rw-r--r--sys/net/radix.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net/radix.c b/sys/net/radix.c
index 9e4f89b..25b2e1a 100644
--- a/sys/net/radix.c
+++ b/sys/net/radix.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)radix.c 8.4 (Berkeley) 11/2/94
- * $Id: radix.c,v 1.14 1997/11/24 13:50:22 bde Exp $
+ * $Id: radix.c,v 1.15 1998/07/11 10:51:01 bde Exp $
*/
/*
@@ -1003,6 +1003,7 @@ rn_init()
#ifdef KERNEL
struct domain *dom;
+ max_keylen = 16; /* XXX sizeof sockaddr_in - temp hack!! */
for (dom = domains; dom; dom = dom->dom_next)
if (dom->dom_maxrtkey > max_keylen)
max_keylen = dom->dom_maxrtkey;
OpenPOWER on IntegriCloud