summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2000-06-22 19:04:41 +0000
committerume <ume@FreeBSD.org>2000-06-22 19:04:41 +0000
commit0326853a144a7fe156c01decbf3dbe419401158e (patch)
treef3d113d66d012e883d6883703a9bcc1b159aae89 /sys
parentad3e80ef8d9af658138903d9ebb2826b6eda9fe5 (diff)
downloadFreeBSD-src-0326853a144a7fe156c01decbf3dbe419401158e.zip
FreeBSD-src-0326853a144a7fe156c01decbf3dbe419401158e.tar.gz
Inhibit successful DAD messages and "no default interface" messages.
It seems that people find them too noisy. (ND6_DEBUG will enable them) Obtained from: KAME Project
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet6/nd6_nbr.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/netinet6/nd6_nbr.c b/sys/netinet6/nd6_nbr.c
index 9c16e1e..58f0a52 100644
--- a/sys/netinet6/nd6_nbr.c
+++ b/sys/netinet6/nd6_nbr.c
@@ -880,9 +880,10 @@ nd6_dad_start(ifa, tick)
bzero(dp, sizeof(*dp));
TAILQ_INSERT_TAIL(&dadq, (struct dadq *)dp, dad_list);
- /* XXXJRT This is probably a purely debugging message. */
+#ifdef ND6_DEBUG
printf("%s: starting DAD for %s\n", if_name(ifa->ifa_ifp),
ip6_sprintf(&ia->ia_addr.sin6_addr));
+#endif
/*
* Send NS packet for DAD, ip6_dad_count times.
@@ -995,10 +996,11 @@ nd6_dad_timer(ifa)
*/
ia->ia6_flags &= ~IN6_IFF_TENTATIVE;
- /* XXXJRT This is probably a purely debugging message */
+#ifdef ND6_DEBUG
printf("%s: DAD complete for %s - no duplicates "
"found\n", if_name(ifa->ifa_ifp),
ip6_sprintf(&ia->ia_addr.sin6_addr));
+#endif
TAILQ_REMOVE(&dadq, (struct dadq *)dp, dad_list);
free(dp, M_IP6NDP);
OpenPOWER on IntegriCloud