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.
This commit is contained in:
parent
8ba5bdae2a
commit
e306e8ea66
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=46092
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user