]> git.puffer.fish Git - matthieu/frr.git/commitdiff
2004-12-07 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
authorajs <ajs>
Tue, 7 Dec 2004 21:12:56 +0000 (21:12 +0000)
committerajs <ajs>
Tue, 7 Dec 2004 21:12:56 +0000 (21:12 +0000)
* *.c: Change level of debug messages to LOG_DEBUG.

13 files changed:
zebra/ChangeLog
zebra/interface.c
zebra/irdp_interface.c
zebra/irdp_main.c
zebra/irdp_packet.c
zebra/kernel_socket.c
zebra/redistribute.c
zebra/rt_ioctl.c
zebra/rt_netlink.c
zebra/rt_socket.c
zebra/rtadv.c
zebra/zebra_rib.c
zebra/zserv.c

index d22ba6308fe1a255ae397bb4e7de479c6cb9297b..696676bc1c908e0fb25eccbfc170f28df0d4970c 100644 (file)
@@ -1,3 +1,7 @@
+2004-12-07 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
+
+       * *.c: Change level of debug messages to LOG_DEBUG.
+
 2004-12-07 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
 
        * main.c: (main) The 2nd argument to openzlog has been removed.
index f97dc3fdc87416dc368913b4ae8cb22224190913..391997bf608afa6a76b8c0198f2acae8309c5c92 100644 (file)
@@ -297,13 +297,13 @@ if_add_update (struct interface *ifp)
       if_addr_wakeup (ifp);
 
       if (IS_ZEBRA_DEBUG_KERNEL)
-       zlog_info ("interface %s index %d becomes active.", 
-                  ifp->name, ifp->ifindex);
+       zlog_debug ("interface %s index %d becomes active.", 
+                   ifp->name, ifp->ifindex);
     }
   else
     {
       if (IS_ZEBRA_DEBUG_KERNEL)
-       zlog_info ("interface %s index %d is added.", ifp->name, ifp->ifindex);
+       zlog_debug ("interface %s index %d is added.", ifp->name, ifp->ifindex);
     }
 }
 
@@ -341,7 +341,7 @@ if_delete_update (struct interface *ifp)
   UNSET_FLAG (ifp->status, ZEBRA_INTERFACE_ACTIVE);
   
   if (IS_ZEBRA_DEBUG_KERNEL)
-    zlog_info ("interface %s index %d is now inactive.",
+    zlog_debug ("interface %s index %d is now inactive.",
               ifp->name, ifp->ifindex);
 
   /* Delete connected routes from the kernel. */
index 807d48c05ea3153de01fde06ac49a531b895acf7..983969f131ed15eb149ff0a177fccb1e10299c6a 100644 (file)
@@ -133,9 +133,9 @@ int if_add_group (struct interface *ifp)
   }
 
   if(irdp->flags & IF_DEBUG_MISC )
-    zlog_warn("IRDP: Adding group %s for %s\n", 
-             inet_2a(htonl(INADDR_ALLRTRS_GROUP), b1),
-             ifp->name);
+    zlog_debug("IRDP: Adding group %s for %s\n", 
+              inet_2a(htonl(INADDR_ALLRTRS_GROUP), b1),
+              ifp->name);
   return 0;
 }
 int if_drop_group (struct interface *ifp)
@@ -149,9 +149,9 @@ int if_drop_group (struct interface *ifp)
     return ret;
 
   if(irdp->flags & IF_DEBUG_MISC)
-    zlog_warn("IRDP: Leaving group %s for %s\n", 
-             inet_2a(htonl(INADDR_ALLRTRS_GROUP), b1),
-             ifp->name);
+    zlog_debug("IRDP: Leaving group %s for %s\n", 
+              inet_2a(htonl(INADDR_ALLRTRS_GROUP), b1),
+              ifp->name);
   return 0;
 }
 
@@ -256,9 +256,9 @@ void irdp_if_start(struct interface *ifp, int multicast, int set_defaults)
 
   
   if(irdp->flags & IF_DEBUG_MISC)
-    zlog_warn("IRDP: Init timer for %s set to %u\n", 
-             ifp->name, 
-             timer);
+    zlog_debug("IRDP: Init timer for %s set to %u\n", 
+              ifp->name, 
+              timer);
 
   irdp->t_advertise = thread_add_timer(zebrad.master, 
                                       irdp_send_thread, 
index 10062db5e271f2251aeb558b6080b5859bc5cdd6..8c164486001bd435dca404b3023a7c3e26658625 100644 (file)
@@ -206,7 +206,7 @@ void irdp_send(struct interface *ifp,
     dst = htonl(INADDR_ALLHOSTS_GROUP);
 
   if(irdp->flags & IF_DEBUG_MESSAGES) 
-    zlog_warn("IRDP: TX Advert on %s %s/%d Holdtime=%d Preference=%d", 
+    zlog_debug("IRDP: TX Advert on %s %s/%d Holdtime=%d Preference=%d", 
              ifp->name,
              inet_ntoa(p->u.prefix4), 
              p->prefixlen,
@@ -254,7 +254,7 @@ int irdp_send_thread(struct thread *t_advert)
          timer= MAX_INITIAL_ADVERT_INTERVAL;
 
   if(irdp->flags & IF_DEBUG_MISC)
-    zlog_warn("IRDP: New timer for %s set to %u\n", ifp->name, timer);
+    zlog_debug("IRDP: New timer for %s set to %u\n", ifp->name, timer);
 
   irdp->t_advertise = thread_add_timer(zebrad.master, irdp_send_thread, ifp, timer);
   return 0;
index d78348cdf7543ff6713384d8ef8f0f825a9e51ad..77e559cc260eebdceb7a5b0763e35a4c4b56faf0 100644 (file)
@@ -173,9 +173,9 @@ void parse_irdp_packet(char *p,
     case ICMP_ROUTERSOLICIT:
 
       if(irdp->flags & IF_DEBUG_MESSAGES) 
-       zlog_warn ("IRDP: RX Solicit on %s from %s\n",
-                  ifp->name,
-                  inet_ntoa (src));
+       zlog_debug ("IRDP: RX Solicit on %s from %s\n",
+                   ifp->name,
+                   inet_ntoa (src));
 
       process_solicit(ifp);
       break;
@@ -251,15 +251,14 @@ int irdp_read_raw(struct thread *r)
   if(! (irdp->flags & IF_ACTIVE)) {
 
     if(irdp->flags & IF_DEBUG_MISC) 
-      zlog_warn("IRDP: RX ICMP for disabled interface %s\n",
-               ifp->name);
+      zlog_debug("IRDP: RX ICMP for disabled interface %s\n", ifp->name);
     return 0;
   }
 
   if(irdp->flags & IF_DEBUG_PACKET) {
     int i;
-    zlog_warn("IRDP: RX (idx %d) ", ifindex);
-    for(i=0; i < ret; i++) zlog_warn( "IRDP: RX %x ", buf[i]&0xFF);
+    zlog_debug("IRDP: RX (idx %d) ", ifindex);
+    for(i=0; i < ret; i++) zlog_debug( "IRDP: RX %x ", buf[i]&0xFF);
   }
 
   parse_irdp_packet(buf, ret, ifp);
index 60542c61d35cd2d02e51467850a44f14a45102ea..e0f2a8f2eb09a29c30430468ca11b07fc7ba0db5 100644 (file)
@@ -172,7 +172,7 @@ af_check (int family)
 }
 \f
 /* Dump routing table flag for debug purpose. */
-void
+static void
 rtm_flag_dump (int flag)
 {
   struct message *mes;
@@ -187,7 +187,7 @@ rtm_flag_dump (int flag)
          strlcat (buf, " ", BUFSIZ);
        }
     }
-  zlog_info ("Kernel: %s", buf);
+  zlog_debug ("Kernel: %s", buf);
 }
 
 #ifdef RTM_IFANNOUNCE
@@ -217,7 +217,7 @@ ifan_read (struct if_announcemsghdr *ifan)
   if_get_metric (ifp);
 
   if (IS_ZEBRA_DEBUG_KERNEL)
-    zlog_info ("interface %s index %d", ifp->name, ifp->ifindex);
+    zlog_debug ("interface %s index %d", ifp->name, ifp->ifindex);
 
   return 0;
 }
@@ -391,7 +391,7 @@ ifm_read (struct if_msghdr *ifm)
 #endif /* HAVE_NET_RT_IFLIST */
 
   if (IS_ZEBRA_DEBUG_KERNEL)
-    zlog_info ("interface %s index %d", ifp->name, ifp->ifindex);
+    zlog_debug ("interface %s index %d", ifp->name, ifp->ifindex);
 
   return 0;
 }
@@ -809,7 +809,7 @@ rtm_write (int message,
 #include "zebra/zserv.h"
 
 /* For debug purpose. */
-void
+static void
 rtmsg_debug (struct rt_msghdr *rtm)
 {
   char *type = "Unknown";
@@ -822,10 +822,10 @@ rtmsg_debug (struct rt_msghdr *rtm)
        break;
       }
 
-  zlog_info ("Kernel: Len: %d Type: %s", rtm->rtm_msglen, type);
+  zlog_debug ("Kernel: Len: %d Type: %s", rtm->rtm_msglen, type);
   rtm_flag_dump (rtm->rtm_flags);
-  zlog_info ("Kernel: message seq %d", rtm->rtm_seq);
-  zlog_info ("Kernel: pid %d", rtm->rtm_pid);
+  zlog_debug ("Kernel: message seq %d", rtm->rtm_seq);
+  zlog_debug ("Kernel: pid %d", rtm->rtm_pid);
 }
 
 /* This is pretty gross, better suggestions welcome -- mhandler */
@@ -938,7 +938,7 @@ kernel_read (struct thread *thread)
 #endif /* RTM_IFANNOUNCE */
     default:
       if (IS_ZEBRA_DEBUG_KERNEL)
-        zlog_info("Unprocessed RTM_type: %d", rtm->rtm_type);
+        zlog_debug("Unprocessed RTM_type: %d", rtm->rtm_type);
       break;
     }
   return 0;
index 100a824ee9b3a86c3be18e7662b68e33306f37bb..20a2b78a2294c1c588665351546a2024f6e82e3f 100644 (file)
@@ -310,7 +310,7 @@ zebra_interface_up_update (struct interface *ifp)
   struct zserv *client;
 
   if (IS_ZEBRA_DEBUG_EVENT)
-    zlog_info ("MESSAGE: ZEBRA_INTERFACE_UP %s", ifp->name);
+    zlog_debug ("MESSAGE: ZEBRA_INTERFACE_UP %s", ifp->name);
 
   for (node = listhead (zebrad.client_list); node; nextnode (node))
     if ((client = getdata (node)) != NULL)
@@ -325,7 +325,7 @@ zebra_interface_down_update (struct interface *ifp)
   struct zserv *client;
 
   if (IS_ZEBRA_DEBUG_EVENT)
-    zlog_info ("MESSAGE: ZEBRA_INTERFACE_DOWN %s", ifp->name);
+    zlog_debug ("MESSAGE: ZEBRA_INTERFACE_DOWN %s", ifp->name);
 
   for (node = listhead (zebrad.client_list); node; nextnode (node))
     if ((client = getdata (node)) != NULL)
@@ -340,7 +340,7 @@ zebra_interface_add_update (struct interface *ifp)
   struct zserv *client;
 
   if (IS_ZEBRA_DEBUG_EVENT)
-    zlog_info ("MESSAGE: ZEBRA_INTERFACE_ADD %s", ifp->name);
+    zlog_debug ("MESSAGE: ZEBRA_INTERFACE_ADD %s", ifp->name);
     
   for (node = listhead (zebrad.client_list); node; nextnode (node))
     if ((client = getdata (node)) != NULL)
@@ -361,7 +361,7 @@ zebra_interface_delete_update (struct interface *ifp)
   struct zserv *client;
 
   if (IS_ZEBRA_DEBUG_EVENT)
-    zlog_info ("MESSAGE: ZEBRA_INTERFACE_DELETE %s", ifp->name);
+    zlog_debug ("MESSAGE: ZEBRA_INTERFACE_DELETE %s", ifp->name);
 
   for (node = listhead (zebrad.client_list); node; nextnode (node))
     if ((client = getdata (node)) != NULL)
@@ -383,9 +383,9 @@ zebra_interface_address_add_update (struct interface *ifp,
   if (IS_ZEBRA_DEBUG_EVENT)
     {
       p = ifc->address;
-      zlog_info ("MESSAGE: ZEBRA_INTERFACE_ADDRESS_ADD %s/%d on %s",
-                inet_ntop (p->family, &p->u.prefix, buf, BUFSIZ),
-                p->prefixlen, ifc->ifp->name);
+      zlog_debug ("MESSAGE: ZEBRA_INTERFACE_ADDRESS_ADD %s/%d on %s",
+                 inet_ntop (p->family, &p->u.prefix, buf, BUFSIZ),
+                 p->prefixlen, ifc->ifp->name);
     }
 
   router_id_add_address(ifc);
@@ -409,8 +409,8 @@ zebra_interface_address_delete_update (struct interface *ifp,
   if (IS_ZEBRA_DEBUG_EVENT)
     {
       p = ifc->address;
-      zlog_info ("MESSAGE: ZEBRA_INTERFACE_ADDRESS_DELETE %s/%d on %s",
-                inet_ntop (p->family, &p->u.prefix, buf, BUFSIZ),
+      zlog_debug ("MESSAGE: ZEBRA_INTERFACE_ADDRESS_DELETE %s/%d on %s",
+                 inet_ntop (p->family, &p->u.prefix, buf, BUFSIZ),
                 p->prefixlen, ifc->ifp->name);
     }
 
index 3484010480c78ec1d019b8c6a0acf227f0a85b63..a8e9e5213e69d0f7184d3de9ffb3a5a8f2e2a8a3 100644 (file)
@@ -259,7 +259,7 @@ kernel_ioctl_ipv4 (u_long cmd, struct prefix *p, struct rib *rib, int family)
   if (nexthop_num == 0)
     {
       if (IS_ZEBRA_DEBUG_KERNEL)
-       zlog_info ("netlink_route_multipath(): No useful nexthop.");
+       zlog_debug ("netlink_route_multipath(): No useful nexthop.");
       return 0;
     }
 
@@ -509,7 +509,7 @@ kernel_ioctl_ipv6_multipath (u_long cmd, struct prefix *p, struct rib *rib,
   if (nexthop_num == 0)
     {
       if (IS_ZEBRA_DEBUG_KERNEL)
-       zlog_info ("netlink_route_multipath(): No useful nexthop.");
+       zlog_debug ("netlink_route_multipath(): No useful nexthop.");
       return 0;
     }
 
index eb31e6cdea0a182b180b97eb98242318de0a9a05..c636a399425d0ba2e6f9a1c68b90a890ab0aebbe 100644 (file)
@@ -357,7 +357,7 @@ netlink_parse_info (int (*filter) (struct sockaddr_nl *, struct nlmsghdr *),
                 {
                   if (IS_ZEBRA_DEBUG_KERNEL)
                     {
-                      zlog_info ("%s: %s ACK: type=%s(%u), seq=%u, pid=%d",
+                      zlog_debug ("%s: %s ACK: type=%s(%u), seq=%u, pid=%d",
                                  __FUNCTION__, nl->name,
                                  lookup (nlmsg_str, err->msg.nlmsg_type),
                                  err->msg.nlmsg_type, err->msg.nlmsg_seq,
@@ -405,7 +405,7 @@ netlink_parse_info (int (*filter) (struct sockaddr_nl *, struct nlmsghdr *),
 
           /* OK we got netlink message. */
           if (IS_ZEBRA_DEBUG_KERNEL)
-            zlog_info ("netlink_parse_info: %s type %s(%u), seq=%u, pid=%d",
+            zlog_debug ("netlink_parse_info: %s type %s(%u), seq=%u, pid=%d",
                        nl->name,
                        lookup (nlmsg_str, h->nlmsg_type), h->nlmsg_type,
                        h->nlmsg_seq, h->nlmsg_pid);
@@ -414,7 +414,7 @@ netlink_parse_info (int (*filter) (struct sockaddr_nl *, struct nlmsghdr *),
           if (nl != &netlink_cmd && h->nlmsg_pid == netlink_cmd.snl.nl_pid)
             {
               if (IS_ZEBRA_DEBUG_KERNEL)
-                zlog_info ("netlink_parse_info: %s packet comes from %s",
+                zlog_debug ("netlink_parse_info: %s packet comes from %s",
                            nl->name, netlink_cmd.name);
               continue;
             }
@@ -567,25 +567,25 @@ netlink_interface_addr (struct sockaddr_nl *snl, struct nlmsghdr *h)
   if (IS_ZEBRA_DEBUG_KERNEL)    /* remove this line to see initial ifcfg */
     {
       char buf[BUFSIZ];
-      zlog_info ("netlink_interface_addr %s %s/%d:",
+      zlog_debug ("netlink_interface_addr %s %s/%d:",
                  lookup (nlmsg_str, h->nlmsg_type),
                  ifp->name, ifa->ifa_prefixlen);
       if (tb[IFA_LOCAL])
-        zlog_info ("  IFA_LOCAL     %s", inet_ntop (ifa->ifa_family,
+        zlog_debug ("  IFA_LOCAL     %s", inet_ntop (ifa->ifa_family,
                                                     RTA_DATA (tb[IFA_LOCAL]),
                                                     buf, BUFSIZ));
       if (tb[IFA_ADDRESS])
-        zlog_info ("  IFA_ADDRESS   %s", inet_ntop (ifa->ifa_family,
+        zlog_debug ("  IFA_ADDRESS   %s", inet_ntop (ifa->ifa_family,
                                                     RTA_DATA (tb
                                                               [IFA_ADDRESS]),
                                                     buf, BUFSIZ));
       if (tb[IFA_BROADCAST])
-        zlog_info ("  IFA_BROADCAST %s", inet_ntop (ifa->ifa_family,
+        zlog_debug ("  IFA_BROADCAST %s", inet_ntop (ifa->ifa_family,
                                                     RTA_DATA (tb
                                                               [IFA_BROADCAST]),
                                                     buf, BUFSIZ));
       if (tb[IFA_LABEL] && strcmp (ifp->name, RTA_DATA (tb[IFA_LABEL])))
-        zlog_info ("  IFA_LABEL     %s", (char *)RTA_DATA (tb[IFA_LABEL]));
+        zlog_debug ("  IFA_LABEL     %s", (char *)RTA_DATA (tb[IFA_LABEL]));
     }
   
   if (tb[IFA_ADDRESS] == NULL)
@@ -801,7 +801,7 @@ netlink_route_change (struct sockaddr_nl *snl, struct nlmsghdr *h)
 
   /* Connected route. */
   if (IS_ZEBRA_DEBUG_KERNEL)
-    zlog_info ("%s %s %s proto %s",
+    zlog_debug ("%s %s %s proto %s",
                h->nlmsg_type ==
                RTM_NEWROUTE ? "RTM_NEWROUTE" : "RTM_DELROUTE",
                rtm->rtm_family == AF_INET ? "ipv4" : "ipv6",
@@ -867,10 +867,10 @@ netlink_route_change (struct sockaddr_nl *snl, struct nlmsghdr *h)
       if (IS_ZEBRA_DEBUG_KERNEL)
         {
           if (h->nlmsg_type == RTM_NEWROUTE)
-            zlog_info ("RTM_NEWROUTE %s/%d",
+            zlog_debug ("RTM_NEWROUTE %s/%d",
                        inet_ntoa (p.prefix), p.prefixlen);
           else
-            zlog_info ("RTM_DELROUTE %s/%d",
+            zlog_debug ("RTM_DELROUTE %s/%d",
                        inet_ntoa (p.prefix), p.prefixlen);
         }
 
@@ -893,11 +893,11 @@ netlink_route_change (struct sockaddr_nl *snl, struct nlmsghdr *h)
       if (IS_ZEBRA_DEBUG_KERNEL)
         {
           if (h->nlmsg_type == RTM_NEWROUTE)
-            zlog_info ("RTM_NEWROUTE %s/%d",
+            zlog_debug ("RTM_NEWROUTE %s/%d",
                        inet_ntop (AF_INET6, &p.prefix, buf, BUFSIZ),
                        p.prefixlen);
           else
-            zlog_info ("RTM_DELROUTE %s/%d",
+            zlog_debug ("RTM_DELROUTE %s/%d",
                        inet_ntop (AF_INET6, &p.prefix, buf, BUFSIZ),
                        p.prefixlen);
         }
@@ -1213,7 +1213,7 @@ netlink_talk (struct nlmsghdr *n, struct nlsock *nl)
   n->nlmsg_flags |= NLM_F_ACK;
 
   if (IS_ZEBRA_DEBUG_KERNEL)
-    zlog_info ("netlink_talk: %s type %s(%u), seq=%u", netlink_cmd.name,
+    zlog_debug ("netlink_talk: %s type %s(%u), seq=%u", netlink_cmd.name,
                lookup (nlmsg_str, n->nlmsg_type), n->nlmsg_type,
                n->nlmsg_seq);
 
@@ -1415,7 +1415,7 @@ netlink_route_multipath (int cmd, struct prefix *p, struct rib *rib,
                 {
                   if (IS_ZEBRA_DEBUG_KERNEL)
                     {
-                      zlog_info
+                      zlog_debug
                         ("netlink_route_multipath() (recursive, 1 hop): "
                          "%s %s/%d via %s if %u, type %s",
                          lookup (nlmsg_str, cmd), inet_ntoa (p->u.prefix4),
@@ -1447,7 +1447,7 @@ netlink_route_multipath (int cmd, struct prefix *p, struct rib *rib,
                 {
                   if (IS_ZEBRA_DEBUG_KERNEL)
                     {
-                      zlog_info
+                      zlog_debug
                         ("netlink_route_multipath(): (single hop)"
                          "%s %s/%d via %s if %u, type %s",
                          lookup (nlmsg_str, cmd), inet_ntoa (p->u.prefix4),
@@ -1514,7 +1514,7 @@ netlink_route_multipath (int cmd, struct prefix *p, struct rib *rib,
                 {
                   if (IS_ZEBRA_DEBUG_KERNEL)
                     {
-                      zlog_info ("netlink_route_multipath() "
+                      zlog_debug ("netlink_route_multipath() "
                          "(recursive, multihop): "
                          "%s %s/%d via %s if %u, type %s",
                          lookup (nlmsg_str, cmd), inet_ntoa (p->u.prefix4),
@@ -1550,7 +1550,7 @@ netlink_route_multipath (int cmd, struct prefix *p, struct rib *rib,
                 {
                   if (IS_ZEBRA_DEBUG_KERNEL)
                     {
-                      zlog_info ("netlink_route_multipath() "
+                      zlog_debug ("netlink_route_multipath() "
                          "(multihop): "
                          "%s %s/%d via %s if %u, type %s",
                          lookup (nlmsg_str, cmd), inet_ntoa (p->u.prefix4),
@@ -1598,7 +1598,7 @@ netlink_route_multipath (int cmd, struct prefix *p, struct rib *rib,
   if (nexthop_num == 0)
     {
       if (IS_ZEBRA_DEBUG_KERNEL)
-        zlog_info ("netlink_route_multipath(): No useful nexthop.");
+        zlog_debug ("netlink_route_multipath(): No useful nexthop.");
       return 0;
     }
 
index 5b2a5e716641430fe5ab357d0365ae2c34237c30..f447d8ca433c06cf5b54a6e35921be9b889d40be 100644 (file)
@@ -180,7 +180,7 @@ kernel_rtm_ipv4 (int cmd, struct prefix *p, struct rib *rib, int family)
   if (nexthop_num == 0)
     {
       if (IS_ZEBRA_DEBUG_KERNEL)
-       zlog_info ("kernel_rtm_ipv4(): No useful nexthop.");
+       zlog_debug ("kernel_rtm_ipv4(): No useful nexthop.");
       return 0;
     }
 
@@ -430,7 +430,7 @@ kernel_rtm_ipv6_multipath (int cmd, struct prefix *p, struct rib *rib,
   if (nexthop_num == 0)
     {
       if (IS_ZEBRA_DEBUG_KERNEL)
-       zlog_info ("kernel_rtm_ipv6_multipath(): No useful nexthop.");
+       zlog_debug ("kernel_rtm_ipv6_multipath(): No useful nexthop.");
       return 0;
     }
 
index 770f975b79d1a8c1306384a722196761fa0a4390..65b2f87c8f5fe2bced0165f9fbf70e85bc1bdb27 100644 (file)
@@ -183,7 +183,7 @@ rtadv_send_packet (int sock, struct interface *ifp)
 
   /* Logging of packet. */
   if (IS_ZEBRA_DEBUG_PACKET)
-    zlog_info ("Router advertisement send to %s", ifp->name);
+    zlog_debug ("Router advertisement send to %s", ifp->name);
 
   /* Fill in sockaddr_in6. */
   memset (&addr, 0, sizeof (struct sockaddr_in6));
@@ -247,7 +247,7 @@ rtadv_send_packet (int sock, struct interface *ifp)
       {
        u_char buf[INET6_ADDRSTRLEN];
 
-       zlog_info ("DEBUG %s", inet_ntop (AF_INET6, &pinfo->nd_opt_pi_prefix, 
+       zlog_debug ("DEBUG %s", inet_ntop (AF_INET6, &pinfo->nd_opt_pi_prefix, 
                   buf, INET6_ADDRSTRLEN));
 
       }
index dc27d1f9a665d6fd9c492f0962d977b47f798b06..f93f42356c4bdb86757a92925a7ae5b9d63e4643 100644 (file)
@@ -1155,7 +1155,7 @@ rib_delete_ipv4 (int type, int flags, struct prefix_ipv4 *p,
   apply_mask_ipv4 (p);
 
   if (IS_ZEBRA_DEBUG_KERNEL && gate)
-    zlog_info ("rib_delete_ipv4(): route delete %s/%d via %s ifindex %d",
+    zlog_debug ("rib_delete_ipv4(): route delete %s/%d via %s ifindex %d",
                       inet_ntop (AF_INET, &p->prefix, buf1, BUFSIZ),
                       p->prefixlen, 
                       inet_ntoa (*gate), 
@@ -1168,13 +1168,13 @@ rib_delete_ipv4 (int type, int flags, struct prefix_ipv4 *p,
       if (IS_ZEBRA_DEBUG_KERNEL)
        {
          if (gate)
-           zlog_info ("route %s/%d via %s ifindex %d doesn't exist in rib",
+           zlog_debug ("route %s/%d via %s ifindex %d doesn't exist in rib",
                       inet_ntop (AF_INET, &p->prefix, buf1, BUFSIZ),
                       p->prefixlen,
                       inet_ntop (AF_INET, gate, buf2, BUFSIZ),
                       ifindex);
          else
-           zlog_info ("route %s/%d ifindex %d doesn't exist in rib",
+           zlog_debug ("route %s/%d ifindex %d doesn't exist in rib",
                       inet_ntop (AF_INET, &p->prefix, buf1, BUFSIZ),
                       p->prefixlen,
                       ifindex);
@@ -1248,14 +1248,14 @@ rib_delete_ipv4 (int type, int flags, struct prefix_ipv4 *p,
          if (IS_ZEBRA_DEBUG_KERNEL)
            {
              if (gate)
-               zlog_info ("route %s/%d via %s ifindex %d type %d doesn't exist in rib",
+               zlog_debug ("route %s/%d via %s ifindex %d type %d doesn't exist in rib",
                           inet_ntop (AF_INET, &p->prefix, buf1, BUFSIZ),
                           p->prefixlen,
                           inet_ntop (AF_INET, gate, buf2, BUFSIZ),
                           ifindex,
                           type);
              else
-               zlog_info ("route %s/%d ifindex %d type %d doesn't exist in rib",
+               zlog_debug ("route %s/%d ifindex %d type %d doesn't exist in rib",
                           inet_ntop (AF_INET, &p->prefix, buf1, BUFSIZ),
                           p->prefixlen,
                           ifindex,
@@ -1745,13 +1745,13 @@ rib_delete_ipv6 (int type, int flags, struct prefix_ipv6 *p,
       if (IS_ZEBRA_DEBUG_KERNEL)
        {
          if (gate)
-           zlog_info ("route %s/%d via %s ifindex %d doesn't exist in rib",
+           zlog_debug ("route %s/%d via %s ifindex %d doesn't exist in rib",
                       inet_ntop (AF_INET6, &p->prefix, buf1, BUFSIZ),
                       p->prefixlen,
                       inet_ntop (AF_INET6, gate, buf2, BUFSIZ),
                       ifindex);
          else
-           zlog_info ("route %s/%d ifindex %d doesn't exist in rib",
+           zlog_debug ("route %s/%d ifindex %d doesn't exist in rib",
                       inet_ntop (AF_INET6, &p->prefix, buf1, BUFSIZ),
                       p->prefixlen,
                       ifindex);
@@ -1811,14 +1811,14 @@ rib_delete_ipv6 (int type, int flags, struct prefix_ipv6 *p,
          if (IS_ZEBRA_DEBUG_KERNEL)
            {
              if (gate)
-               zlog_info ("route %s/%d via %s ifindex %d type %d doesn't exist in rib",
+               zlog_debug ("route %s/%d via %s ifindex %d type %d doesn't exist in rib",
                           inet_ntop (AF_INET6, &p->prefix, buf1, BUFSIZ),
                           p->prefixlen,
                           inet_ntop (AF_INET6, gate, buf2, BUFSIZ),
                           ifindex,
                           type);
              else
-               zlog_info ("route %s/%d ifindex %d type %d doesn't exist in rib",
+               zlog_debug ("route %s/%d ifindex %d type %d doesn't exist in rib",
                           inet_ntop (AF_INET6, &p->prefix, buf1, BUFSIZ),
                           p->prefixlen,
                           ifindex,
index 09dddf63b70b58674231cb42e6df05c94520aa06..47eb49a4cf407ebd1f5918498efd3b907cc2056b 100644 (file)
@@ -1251,7 +1251,7 @@ zebra_client_read (struct thread *thread)
   if (nbyte <= 0) 
     {
       if (IS_ZEBRA_DEBUG_EVENT)
-       zlog_info ("connection closed socket [%d]", sock);
+       zlog_debug ("connection closed socket [%d]", sock);
       zebra_client_close (client);
       return -1;
     }
@@ -1261,7 +1261,7 @@ zebra_client_read (struct thread *thread)
   if (length < 3) 
     {
       if (IS_ZEBRA_DEBUG_EVENT)
-       zlog_info ("length %d is less than 3 ", length);
+       zlog_debug ("length %d is less than 3 ", length);
       zebra_client_close (client);
       return -1;
     }
@@ -1275,7 +1275,7 @@ zebra_client_read (struct thread *thread)
       if (nbyte <= 0) 
        {
          if (IS_ZEBRA_DEBUG_EVENT)
-           zlog_info ("connection closed [%d] when reading zebra data", sock);
+           zlog_debug ("connection closed [%d] when reading zebra data", sock);
          zebra_client_close (client);
          return -1;
        }
@@ -1283,10 +1283,10 @@ zebra_client_read (struct thread *thread)
 
   /* Debug packet information. */
   if (IS_ZEBRA_DEBUG_EVENT)
-    zlog_info ("zebra message comes from socket [%d]", sock);
+    zlog_debug ("zebra message comes from socket [%d]", sock);
 
   if (IS_ZEBRA_DEBUG_PACKET && IS_ZEBRA_DEBUG_RECV)
-    zlog_info ("zebra message received [%s] %d", 
+    zlog_debug ("zebra message received [%s] %d", 
               zebra_command_str[command], length);
 
   switch (command)