struct ripng_interface *ri = c->ifp->info;
if (IS_RIPNG_DEBUG_ZEBRA)
- zlog_debug("RIPng connected address %s/%d add",
- inet6_ntoa(p->u.prefix6), p->prefixlen);
+ zlog_debug("RIPng connected address %pFX add", p);
/* Check is this prefix needs to be redistributed. */
ripng_apply_address_add(c);
{
struct connected *ifc;
struct prefix *p;
- char buf[INET6_ADDRSTRLEN];
ifc = zebra_interface_address_read(ZEBRA_INTERFACE_ADDRESS_DELETE,
zclient->ibuf, vrf_id);
if (p->family == AF_INET6) {
if (IS_RIPNG_DEBUG_ZEBRA)
zlog_debug(
- "RIPng connected address %s/%d delete",
- inet_ntop(AF_INET6, &p->u.prefix6, buf,
- INET6_ADDRSTRLEN),
- p->prefixlen);
+ "RIPng connected address %pFX delete",
+ p);
/* Check wether this prefix needs to be removed. */
ripng_apply_address_del(ifc);
(struct prefix *)p)
== FILTER_DENY) {
if (IS_RIPNG_DEBUG_PACKET)
- zlog_debug("%s/%d filtered by distribute %s",
- inet6_ntoa(p->prefix), p->prefixlen,
+ zlog_debug("%pFX filtered by distribute %s", p,
inout);
return -1;
}
(struct prefix *)p)
== PREFIX_DENY) {
if (IS_RIPNG_DEBUG_PACKET)
- zlog_debug("%s/%d filtered by prefix-list %s",
- inet6_ntoa(p->prefix), p->prefixlen,
+ zlog_debug("%pFX filtered by prefix-list %s", p,
inout);
return -1;
}
== FILTER_DENY) {
if (IS_RIPNG_DEBUG_PACKET)
zlog_debug(
- "%s/%d filtered by distribute %s",
- inet6_ntoa(p->prefix),
- p->prefixlen, inout);
+ "%pFX filtered by distribute %s",
+ p, inout);
return -1;
}
}
== PREFIX_DENY) {
if (IS_RIPNG_DEBUG_PACKET)
zlog_debug(
- "%s/%d filtered by prefix-list %s",
- inet6_ntoa(p->prefix),
- p->prefixlen, inout);
+ "%pFX filtered by prefix-list %s",
+ p, inout);
return -1;
}
}
if (IS_RIPNG_DEBUG_EVENT) {
if (!nexthop)
zlog_debug(
- "Redistribute new prefix %s/%d on the interface %s",
- inet6_ntoa(p->prefix), p->prefixlen,
- ifindex2ifname(ifindex, ripng->vrf->vrf_id));
+ "Redistribute new prefix %pFX on the interface %s",
+ p, ifindex2ifname(ifindex, ripng->vrf->vrf_id));
else
zlog_debug(
- "Redistribute new prefix %s/%d with nexthop %s on the interface %s",
- inet6_ntoa(p->prefix), p->prefixlen,
- inet6_ntoa(*nexthop),
+ "Redistribute new prefix %pFX with nexthop %s on the interface %s",
+ p, inet6_ntoa(*nexthop),
ifindex2ifname(ifindex, ripng->vrf->vrf_id));
}
if (IS_RIPNG_DEBUG_EVENT)
zlog_debug(
- "Poisone %s/%d on the interface %s with an infinity metric [delete]",
- inet6_ntoa(p->prefix),
- p->prefixlen,
+ "Poisone %pFX on the interface %s with an infinity metric [delete]",
+ p,
ifindex2ifname(
ifindex,
ripng->vrf->vrf_id));
agg_node_get_prefix(rp);
zlog_debug(
- "Poisone %s/%d on the interface %s [withdraw]",
- inet6_ntoa(p->prefix),
- p->prefixlen,
+ "Poisone %pFX on the interface %s [withdraw]",
+ p,
ifindex2ifname(
rinfo->ifindex,
ripng->vrf->vrf_id));
if (ret == RMAP_DENYMATCH) {
if (IS_RIPNG_DEBUG_PACKET)
zlog_debug(
- "RIPng %s/%d is filtered by route-map out",
- inet6_ntoa(p->prefix),
- p->prefixlen);
+ "RIPng %pFX is filtered by route-map out",
+ p);
continue;
}
}
if (ret == RMAP_DENYMATCH) {
if (IS_RIPNG_DEBUG_PACKET)
zlog_debug(
- "RIPng %s/%d is filtered by route-map",
- inet6_ntoa(p->prefix),
- p->prefixlen);
+ "RIPng %pFX is filtered by route-map",
+ p);
continue;
}
}
if (ret == RMAP_DENYMATCH) {
if (IS_RIPNG_DEBUG_PACKET)
zlog_debug(
- "RIPng %s/%d is filtered by route-map out",
- inet6_ntoa(p->prefix),
- p->prefixlen);
+ "RIPng %pFX is filtered by route-map out",
+ p);
continue;
}