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));
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. */
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));
}
/* 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:
(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;
}
(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;
}
(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;
}
(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;
}
(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;
}
(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;
}
(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;
}
(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;
}
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;
}
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));
}
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));
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));
}
/* 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");
/* 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))
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;
/* 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). */
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. */
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;
}
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;
}
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;
}
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;