diff options
author | ume <ume@FreeBSD.org> | 2000-06-22 19:04:41 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2000-06-22 19:04:41 +0000 |
commit | 0326853a144a7fe156c01decbf3dbe419401158e (patch) | |
tree | f3d113d66d012e883d6883703a9bcc1b159aae89 /sys/netinet6 | |
parent | ad3e80ef8d9af658138903d9ebb2826b6eda9fe5 (diff) | |
download | FreeBSD-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/netinet6')
-rw-r--r-- | sys/netinet6/nd6_nbr.c | 6 |
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); |