summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2002-01-08 04:29:22 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2002-01-08 04:29:22 +0000
commit64795e7106cd5675f1dedcfe16ab40223780fb03 (patch)
tree9a932f378b1131d7726f45d6fffbf28459911b33
parent07c6eba9a0eecc2be15c2f667640940c951bc69c (diff)
do not log() in per-packet input path. sync w/kame
-rw-r--r--sys/netinet6/mld6.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/netinet6/mld6.c b/sys/netinet6/mld6.c
index 2280e95a915..4d8e433165d 100644
--- a/sys/netinet6/mld6.c
+++ b/sys/netinet6/mld6.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mld6.c,v 1.11 2001/12/07 09:16:07 itojun Exp $ */
+/* $OpenBSD: mld6.c,v 1.12 2002/01/08 04:29:21 itojun Exp $ */
/* $KAME: mld6.c,v 1.26 2001/02/16 14:50:35 itojun Exp $ */
/*
@@ -201,10 +201,12 @@ mld6_input(m, off)
/* source address validation */
ip6 = mtod(m, struct ip6_hdr *);/* in case mpullup */
if (!IN6_IS_ADDR_LINKLOCAL(&ip6->ip6_src)) {
+#if 0
log(LOG_ERR,
"mld6_input: src %s is not link-local (grp=%s)\n",
ip6_sprintf(&ip6->ip6_src),
ip6_sprintf(&mldh->mld6_addr));
+#endif
/*
* spec (RFC2710) does not explicitly
* specify to discard the packet from a non link-local
@@ -329,7 +331,9 @@ mld6_input(m, off)
mldh->mld6_addr.s6_addr16[1] = 0; /* XXX */
break;
default: /* this is impossible */
+#if 0
log(LOG_ERR, "mld6_input: illegal type(%d)", mldh->mld6_type);
+#endif
break;
}