Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/net Suppress the "rn_init: radix functions require max_k...



details:   https://anonhg.NetBSD.org/src/rev/e7e097535ef3
branches:  trunk
changeset: 955980:e7e097535ef3
user:      gson <gson%NetBSD.org@localhost>
date:      Sun Oct 18 13:07:31 2020 +0000

description:
Suppress the "rn_init: radix functions require max_keylen be set"
message when _KERNEL is defined, to avoid spurious messages from
kernels that have no routable network domains.  Fixes PR kern/55691.

diffstat:

 sys/net/radix.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r 0e54a3935073 -r e7e097535ef3 sys/net/radix.c
--- a/sys/net/radix.c   Sun Oct 18 13:02:10 2020 +0000
+++ b/sys/net/radix.c   Sun Oct 18 13:07:31 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: radix.c,v 1.48 2018/09/03 16:29:35 riastradh Exp $     */
+/*     $NetBSD: radix.c,v 1.49 2020/10/18 13:07:31 gson Exp $  */
 
 /*
  * Copyright (c) 1988, 1989, 1993
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: radix.c,v 1.48 2018/09/03 16:29:35 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: radix.c,v 1.49 2020/10/18 13:07:31 gson Exp $");
 
 #ifndef _NET_RADIX_H_
 #include <sys/param.h>
@@ -1119,8 +1119,10 @@
        }
 #endif
        if (max_keylen == 0) {
+#ifndef _KERNEL
                log(LOG_ERR,
                    "rn_init: radix functions require max_keylen be set\n");
+#endif
                return;
        }
 



Home | Main Index | Thread Index | Old Index