diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2001-01-18 04:57:06 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2001-01-18 04:57:06 +0000 |
commit | 6381de5596bf146d054d87702656c41cf6d2145b (patch) | |
tree | fa655c6d134af4afa84ae275f8f5a5fa3e003867 /sys/netinet6 | |
parent | 3a0c6f8208253ce8785e819bf4bb9f950d8c0023 (diff) |
wrap too noisy warnings into #ifdef ND6_DEBUG
Diffstat (limited to 'sys/netinet6')
-rw-r--r-- | sys/netinet6/nd6_nbr.c | 6 |
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; } |