Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/netinet6 Quiet down the DAD messages a little more.



details:   https://anonhg.NetBSD.org/src/rev/5686f6a7feb6
branches:  trunk
changeset: 483693:5686f6a7feb6
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Thu Mar 16 02:53:45 2000 +0000

description:
Quiet down the DAD messages a little more.

diffstat:

 sys/netinet6/nd6_nbr.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r d77c1b475d37 -r 5686f6a7feb6 sys/netinet6/nd6_nbr.c
--- a/sys/netinet6/nd6_nbr.c    Thu Mar 16 02:36:56 2000 +0000
+++ b/sys/netinet6/nd6_nbr.c    Thu Mar 16 02:53:45 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nd6_nbr.c,v 1.18 2000/03/01 12:49:49 itojun Exp $      */
+/*     $NetBSD: nd6_nbr.c,v 1.19 2000/03/16 02:53:45 thorpej Exp $     */
 /*     $KAME: nd6_nbr.c,v 1.28 2000/02/26 06:53:11 itojun Exp $        */
 
 /*
@@ -1018,8 +1018,10 @@
        bzero(dp, sizeof(*dp));
        TAILQ_INSERT_TAIL(&dadq, (struct dadq *)dp, dad_list);
 
+#ifdef ND6_DEBUG
        log(LOG_DEBUG, "%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.
@@ -1162,10 +1164,12 @@
                         */
                        ia->ia6_flags &= ~IN6_IFF_TENTATIVE;
 
-                       log(LOG_INFO,
+#ifdef ND6_DEBUG
+                       log(LOG_DEBUG,
                            "%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);



Home | Main Index | Thread Index | Old Index