diff options
-rw-r--r-- | zebra/ChangeLog | 4 | ||||
-rw-r--r-- | zebra/interface.c | 8 | ||||
-rw-r--r-- | zebra/irdp_interface.c | 18 | ||||
-rw-r--r-- | zebra/irdp_main.c | 4 | ||||
-rw-r--r-- | zebra/irdp_packet.c | 13 | ||||
-rw-r--r-- | zebra/kernel_socket.c | 18 | ||||
-rw-r--r-- | zebra/redistribute.c | 18 | ||||
-rw-r--r-- | zebra/rt_ioctl.c | 4 | ||||
-rw-r--r-- | zebra/rt_netlink.c | 38 | ||||
-rw-r--r-- | zebra/rt_socket.c | 4 | ||||
-rw-r--r-- | zebra/rtadv.c | 4 | ||||
-rw-r--r-- | zebra/zebra_rib.c | 18 | ||||
-rw-r--r-- | zebra/zserv.c | 10 |
13 files changed, 82 insertions, 79 deletions
diff --git a/zebra/ChangeLog b/zebra/ChangeLog index d22ba630..696676bc 100644 --- a/zebra/ChangeLog +++ b/zebra/ChangeLog @@ -1,5 +1,9 @@ 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. So stdout logging will no longer be enabled by default. * irdp_main.c: (irdp_finish) Reduce severity of shutdown message diff --git a/zebra/interface.c b/zebra/interface.c index f97dc3fd..391997bf 100644 --- a/zebra/interface.c +++ b/zebra/interface.c @@ -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. */ diff --git a/zebra/irdp_interface.c b/zebra/irdp_interface.c index 807d48c0..983969f1 100644 --- a/zebra/irdp_interface.c +++ b/zebra/irdp_interface.c @@ -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, diff --git a/zebra/irdp_main.c b/zebra/irdp_main.c index 10062db5..8c164486 100644 --- a/zebra/irdp_main.c +++ b/zebra/irdp_main.c @@ -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; diff --git a/zebra/irdp_packet.c b/zebra/irdp_packet.c index d78348cd..77e559cc 100644 --- a/zebra/irdp_packet.c +++ b/zebra/irdp_packet.c @@ -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); diff --git a/zebra/kernel_socket.c b/zebra/kernel_socket.c index 60542c61..e0f2a8f2 100644 --- a/zebra/kernel_socket.c +++ b/zebra/kernel_socket.c @@ -172,7 +172,7 @@ af_check (int family) } /* 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; diff --git a/zebra/redistribute.c b/zebra/redistribute.c index 100a824e..20a2b78a 100644 --- a/zebra/redistribute.c +++ b/zebra/redistribute.c @@ -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); } diff --git a/zebra/rt_ioctl.c b/zebra/rt_ioctl.c index 34840104..a8e9e521 100644 --- a/zebra/rt_ioctl.c +++ b/zebra/rt_ioctl.c @@ -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; } diff --git a/zebra/rt_netlink.c b/zebra/rt_netlink.c index eb31e6cd..c636a399 100644 --- a/zebra/rt_netlink.c +++ b/zebra/rt_netlink.c @@ -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; } diff --git a/zebra/rt_socket.c b/zebra/rt_socket.c index 5b2a5e71..f447d8ca 100644 --- a/zebra/rt_socket.c +++ b/zebra/rt_socket.c @@ -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; } diff --git a/zebra/rtadv.c b/zebra/rtadv.c index 770f975b..65b2f87c 100644 --- a/zebra/rtadv.c +++ b/zebra/rtadv.c @@ -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)); } diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c index dc27d1f9..f93f4235 100644 --- a/zebra/zebra_rib.c +++ b/zebra/zebra_rib.c @@ -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, diff --git a/zebra/zserv.c b/zebra/zserv.c index 09dddf63..47eb49a4 100644 --- a/zebra/zserv.c +++ b/zebra/zserv.c @@ -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) |