From 7146364884e7b8ac271d6b716511709ee449d6b9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fran=C3=A7ois=20Tigeot?= Date: Sun, 8 Jun 2014 11:45:34 +0200 Subject: [PATCH] ipv6: Silence src xxx is not link-local messages They pollute logs in situations where users have no control over traffic being transmitted on the local network. --- sys/netinet6/mld6.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/netinet6/mld6.c b/sys/netinet6/mld6.c index 2112e35568..2346c19e93 100644 --- a/sys/netinet6/mld6.c +++ b/sys/netinet6/mld6.c @@ -203,10 +203,12 @@ mld6_input(struct mbuf *m, int 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->mld_addr)); +#endif /* * spec (RFC2710) does not explicitly * specify to discard the packet from a non link-local -- 2.11.4.GIT