From c73393db8c915110c2d213fe4f95579f8df14595 Mon Sep 17 00:00:00 2001 From: peter Date: Mon, 26 Apr 1999 09:05:31 +0000 Subject: 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. --- sys/net/radix.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- cgit v1.1