summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2001-01-18 04:57:06 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2001-01-18 04:57:06 +0000
commit6381de5596bf146d054d87702656c41cf6d2145b (patch)
treefa655c6d134af4afa84ae275f8f5a5fa3e003867 /sys
parent3a0c6f8208253ce8785e819bf4bb9f950d8c0023 (diff)
wrap too noisy warnings into #ifdef ND6_DEBUG
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet6/nd6_nbr.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/netinet6/nd6_nbr.c b/sys/netinet6/nd6_nbr.c
index 01d60abd9fb..24a41a4d30e 100644
--- a/sys/netinet6/nd6_nbr.c
+++ b/sys/netinet6/nd6_nbr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nd6_nbr.c,v 1.10 2000/05/19 13:55:17 itojun Exp $ */
+/* $OpenBSD: nd6_nbr.c,v 1.11 2001/01/18 04:57:05 itojun Exp $ */
/* $KAME: nd6_nbr.c,v 1.36 2000/05/17 12:35:59 jinmei Exp $ */
/*
@@ -99,8 +99,10 @@ nd6_ns_input(m, off, icmp6len)
struct sockaddr_dl *proxydl = NULL;
if (ip6->ip6_hlim != 255) {
+#ifdef ND6_DEBUG
log(LOG_ERR,
"nd6_ns_input: invalid hlim %d\n", ip6->ip6_hlim);
+#endif
goto freeit;
}
@@ -529,8 +531,10 @@ nd6_na_input(m, off, icmp6len)
union nd_opts ndopts;
if (ip6->ip6_hlim != 255) {
+#ifdef ND6_DEBUG
log(LOG_ERR,
"nd6_na_input: invalid hlim %d\n", ip6->ip6_hlim);
+#endif
goto freeit;
}