From 0326853a144a7fe156c01decbf3dbe419401158e Mon Sep 17 00:00:00 2001 From: ume Date: Thu, 22 Jun 2000 19:04:41 +0000 Subject: 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 --- sys/netinet6/nd6_nbr.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sys') 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); -- cgit v1.1