2004-12-08 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

	* *.c: Change level of debug messages to LOG_DEBUG.
diff --git a/ripngd/ripngd.c b/ripngd/ripngd.c
index 5d5c25d..84ed45e 100644
--- a/ripngd/ripngd.c
+++ b/ripngd/ripngd.c
@@ -176,9 +176,9 @@
 
   if (IS_RIPNG_DEBUG_SEND) {
     if (to)
-      zlog_info ("send to %s", inet6_ntop (&to->sin6_addr));
-    zlog_info ("  send interface %s", ifp->name);
-    zlog_info ("  send packet size %d", bufsize);
+      zlog_debug ("send to %s", inet6_ntop (&to->sin6_addr));
+    zlog_debug ("  send interface %s", ifp->name);
+    zlog_debug ("  send packet size %d", bufsize);
   }
 
   memset (&addr, 0, sizeof (struct sockaddr_in6));
@@ -311,7 +311,7 @@
     command_str = "unknown";
 
   /* Dump packet header. */
-  zlog_info ("%s %s version %d packet size %d", 
+  zlog_debug ("%s %s version %d packet size %d", 
 	     sndrcv, command_str, packet->version, size);
 
   /* Dump each routing table entry. */
@@ -320,9 +320,9 @@
   for (lim = (caddr_t) packet + size; (caddr_t) rte < lim; rte++)
     {
       if (rte->metric == RIPNG_METRIC_NEXTHOP)
-	zlog_info ("  nexthop %s/%d", inet6_ntop (&rte->addr), rte->prefixlen);
+	zlog_debug ("  nexthop %s/%d", inet6_ntop (&rte->addr), rte->prefixlen);
       else
-	zlog_info ("  %s/%d metric %d tag %d", 
+	zlog_debug ("  %s/%d metric %d tag %d", 
 		   inet6_ntop (&rte->addr), rte->prefixlen, 
 		   rte->metric, ntohs (rte->tag));
     }
@@ -338,7 +338,7 @@
 
   /* Logging before checking RTE. */
   if (IS_RIPNG_DEBUG_RECV)
-    zlog_info ("RIPng nexthop RTE address %s tag %d prefixlen %d",
+    zlog_debug ("RIPng nexthop RTE address %s tag %d prefixlen %d",
 	       inet6_ntop (&rte->addr), ntohs (rte->tag), rte->prefixlen);
 
   /* RFC2080 2.1.1 Next Hop: 
@@ -496,7 +496,7 @@
 			     (struct prefix *) p) == FILTER_DENY)
 	{
 	  if (IS_RIPNG_DEBUG_PACKET)
-	    zlog_info ("%s/%d filtered by distribute in",
+	    zlog_debug ("%s/%d filtered by distribute in",
 		       inet6_ntop (&p->prefix), p->prefixlen);
 	  return -1;
 	}
@@ -507,7 +507,7 @@
 			     (struct prefix *) p) == PREFIX_DENY)
 	{
 	  if (IS_RIPNG_DEBUG_PACKET)
-	    zlog_info ("%s/%d filtered by prefix-list in",
+	    zlog_debug ("%s/%d filtered by prefix-list in",
 		       inet6_ntop (&p->prefix), p->prefixlen);
 	  return -1;
 	}
@@ -527,7 +527,7 @@
 				     (struct prefix *) p) == FILTER_DENY)
 		{
 		  if (IS_RIPNG_DEBUG_PACKET)
-		    zlog_info ("%s/%d filtered by distribute in",
+		    zlog_debug ("%s/%d filtered by distribute in",
 			       inet6_ntop (&p->prefix), p->prefixlen);
 		  return -1;
 		}
@@ -543,7 +543,7 @@
 				     (struct prefix *) p) == PREFIX_DENY)
 		{
 		  if (IS_RIPNG_DEBUG_PACKET)
-		    zlog_info ("%s/%d filtered by prefix-list in",
+		    zlog_debug ("%s/%d filtered by prefix-list in",
 			       inet6_ntop (&p->prefix), p->prefixlen);
 		  return -1;
 		}
@@ -566,7 +566,7 @@
 			     (struct prefix *) p) == FILTER_DENY)
 	{
 	  if (IS_RIPNG_DEBUG_PACKET)
-	    zlog_info ("%s/%d is filtered by distribute out",
+	    zlog_debug ("%s/%d is filtered by distribute out",
 		       inet6_ntop (&p->prefix), p->prefixlen);
 	  return -1;
 	}
@@ -577,7 +577,7 @@
 			     (struct prefix *) p) == PREFIX_DENY)
 	{
 	  if (IS_RIPNG_DEBUG_PACKET)
-	    zlog_info ("%s/%d is filtered by prefix-list out",
+	    zlog_debug ("%s/%d is filtered by prefix-list out",
 		       inet6_ntop (&p->prefix), p->prefixlen);
 	  return -1;
 	}
@@ -597,7 +597,7 @@
 				     (struct prefix *) p) == FILTER_DENY)
 		{
 		  if (IS_RIPNG_DEBUG_PACKET)
-		    zlog_info ("%s/%d filtered by distribute out",
+		    zlog_debug ("%s/%d filtered by distribute out",
 			       inet6_ntop (&p->prefix), p->prefixlen);
 		  return -1;
 		}
@@ -613,7 +613,7 @@
 				     (struct prefix *) p) == PREFIX_DENY)
 		{
 		  if (IS_RIPNG_DEBUG_PACKET)
-		    zlog_info ("%s/%d filtered by prefix-list out",
+		    zlog_debug ("%s/%d filtered by prefix-list out",
 			       inet6_ntop (&p->prefix), p->prefixlen);
 		  return -1;
 		}
@@ -682,7 +682,7 @@
       if (ret == RMAP_DENYMATCH)
 	{
 	  if (IS_RIPNG_DEBUG_PACKET)
-	    zlog_info ("RIPng %s/%d is filtered by route-map in",
+	    zlog_debug ("RIPng %s/%d is filtered by route-map in",
 		       inet6_ntop (&p.prefix), p.prefixlen);
 	  return;
 	}
@@ -1004,11 +1004,11 @@
 
   if (IS_RIPNG_DEBUG_EVENT) {
     if (!nexthop)
-      zlog_info ("Redistribute new prefix %s/%d on the interface %s",
+      zlog_debug ("Redistribute new prefix %s/%d on the interface %s",
                  inet6_ntop(&p->prefix), p->prefixlen,
                  ifindex2ifname(ifindex));
     else
-      zlog_info ("Redistribute new prefix %s/%d with nexthop %s on the interface %s",
+      zlog_debug ("Redistribute new prefix %s/%d with nexthop %s on the interface %s",
                  inet6_ntop(&p->prefix), p->prefixlen, inet6_ntop(nexthop),
                  ifindex2ifname(ifindex));
   }
@@ -1061,7 +1061,7 @@
 	  rinfo->flags |= RIPNG_RTF_CHANGED;
 	  
           if (IS_RIPNG_DEBUG_EVENT)
-            zlog_info ("Poisone %s/%d on the interface %s with an infinity metric [delete]",
+            zlog_debug ("Poisone %s/%d on the interface %s with an infinity metric [delete]",
                        inet6_ntop(&p->prefix), p->prefixlen,
                        ifindex2ifname(ifindex));
 
@@ -1100,7 +1100,7 @@
 	    if (IS_RIPNG_DEBUG_EVENT) {
 	      struct prefix_ipv6 *p = (struct prefix_ipv6 *) &rp->p;
 
-	      zlog_info ("Poisone %s/%d on the interface %s [withdraw]",
+	      zlog_debug ("Poisone %s/%d on the interface %s [withdraw]",
 	                 inet6_ntop(&p->prefix), p->prefixlen,
 	                 ifindex2ifname(rinfo->ifindex));
 	    }
@@ -1379,7 +1379,7 @@
 
   /* RIPng packet received. */
   if (IS_RIPNG_DEBUG_EVENT)
-    zlog_info ("RIPng packet received from %s port %d on %s",
+    zlog_debug ("RIPng packet received from %s port %d on %s",
 	       inet6_ntop (&from.sin6_addr), ntohs (from.sin6_port), 
 	       ifp ? ifp->name : "unknown");
 
@@ -1447,7 +1447,7 @@
 
   /* Logging update event. */
   if (IS_RIPNG_DEBUG_EVENT)
-    zlog_info ("RIPng update timer expired!");
+    zlog_debug ("RIPng update timer expired!");
 
   /* Supply routes to each interface. */
   for (node = listhead (iflist); node; nextnode (node))
@@ -1470,7 +1470,7 @@
       if (ri->ri_send == RIPNG_SEND_OFF)
 	{
 	  if (IS_RIPNG_DEBUG_EVENT)
-	    zlog (NULL, LOG_INFO, 
+	    zlog (NULL, LOG_DEBUG, 
 		  "[Event] RIPng send to if %d is suppressed by config",
 		 ifp->ifindex);
 	  continue;
@@ -1530,7 +1530,7 @@
 
   /* Logging triggered update. */
   if (IS_RIPNG_DEBUG_EVENT)
-    zlog_info ("RIPng triggered update!");
+    zlog_debug ("RIPng triggered update!");
 
   /* Split Horizon processing is done when generating triggered
      updates as well as normal updates (see section 2.6). */
@@ -1613,10 +1613,10 @@
 
   if (IS_RIPNG_DEBUG_EVENT) {
     if (to)
-      zlog_info ("RIPng update routes to neighbor %s",
+      zlog_debug ("RIPng update routes to neighbor %s",
                  inet6_ntop(&to->sin6_addr));
     else
-      zlog_info ("RIPng update routes on interface %s", ifp->name);
+      zlog_debug ("RIPng update routes on interface %s", ifp->name);
   }
 
   /* Get RIPng interface. */
@@ -1682,7 +1682,7 @@
 	      if (ret == RMAP_DENYMATCH)
 		{
 		  if (IS_RIPNG_DEBUG_PACKET)
-		    zlog_info ("RIPng %s/%d is filtered by route-map out",
+		    zlog_debug ("RIPng %s/%d is filtered by route-map out",
 			       inet6_ntop (&p->prefix), p->prefixlen);
 		  continue;
 		}
@@ -1701,7 +1701,7 @@
 	      if (ret == RMAP_DENYMATCH)
 		{
 		  if (IS_RIPNG_DEBUG_PACKET)
-		    zlog_info ("RIPng %s/%d is filtered by route-map",
+		    zlog_debug ("RIPng %s/%d is filtered by route-map",
 			       inet6_ntop (&p->prefix), p->prefixlen);
 		  continue;
 		}
@@ -1787,7 +1787,7 @@
 	      if (ret == RMAP_DENYMATCH)
 		{
 		  if (IS_RIPNG_DEBUG_PACKET)
-		    zlog_info ("RIPng %s/%d is filtered by route-map out",
+		    zlog_debug ("RIPng %s/%d is filtered by route-map out",
 			       inet6_ntop (&p->prefix), p->prefixlen);
 		  continue;
 		}
@@ -1880,7 +1880,7 @@
     return 0;
 
   if (IS_RIPNG_DEBUG_EVENT)
-    zlog_info ("RIPng send request to %s", ifp->name);
+    zlog_debug ("RIPng send request to %s", ifp->name);
 
   memset (&ripng_packet, 0, sizeof (ripng_packet));
   ripng_packet.command = RIPNG_REQUEST;