if (p->family == AF_INET) {
if (IS_RIP_DEBUG_ZEBRA)
- zlog_debug("connected address %s/%d is added",
- inet_ntoa(p->u.prefix4), p->prefixlen);
+ zlog_debug("connected address %pFX is added", p);
rip_enable_apply(ifc->ifp);
/* Check if this prefix needs to be redistributed */
p = ifc->address;
if (p->family == AF_INET) {
if (IS_RIP_DEBUG_ZEBRA)
- zlog_debug("connected address %s/%d is deleted",
- inet_ntoa(p->u.prefix4),
- p->prefixlen);
+ zlog_debug("connected address %pFX is deleted",
+ p);
hook_call(rip_ifaddr_del, ifc);
(struct prefix *)p)
== FILTER_DENY) {
if (IS_RIP_DEBUG_PACKET)
- zlog_debug("%s/%d filtered by distribute %s",
- inet_ntoa(p->prefix), p->prefixlen,
+ zlog_debug("%pFX filtered by distribute %s", p,
inout);
return -1;
}
(struct prefix *)p)
== PREFIX_DENY) {
if (IS_RIP_DEBUG_PACKET)
- zlog_debug("%s/%d filtered by prefix-list %s",
- inet_ntoa(p->prefix), p->prefixlen,
+ zlog_debug("%pFX filtered by prefix-list %s", p,
inout);
return -1;
}
== FILTER_DENY) {
if (IS_RIP_DEBUG_PACKET)
zlog_debug(
- "%s/%d filtered by distribute %s",
- inet_ntoa(p->prefix),
- p->prefixlen, inout);
+ "%pFX filtered by distribute %s",
+ p, inout);
return -1;
}
}
== PREFIX_DENY) {
if (IS_RIP_DEBUG_PACKET)
zlog_debug(
- "%s/%d filtered by prefix-list %s",
- inet_ntoa(p->prefix),
- p->prefixlen, inout);
+ "%pFX filtered by prefix-list %s",
+ p, inout);
return -1;
}
}
(void)rip_ecmp_add(rip, &newinfo);
if (IS_RIP_DEBUG_EVENT) {
- zlog_debug("Redistribute new prefix %s/%d",
- inet_ntoa(p->prefix), p->prefixlen);
+ zlog_debug("Redistribute new prefix %pFX", p);
}
rip_event(rip, RIP_TRIGGERED_UPDATE, 0);
if (IS_RIP_DEBUG_EVENT)
zlog_debug(
- "Poison %s/%d on the interface %s with an infinity metric [delete]",
- inet_ntoa(p->prefix),
- p->prefixlen,
+ "Poison %pFX on the interface %s with an infinity metric [delete]",
+ p,
ifindex2ifname(
ifindex,
rip->vrf->vrf_id));
if (ret == RMAP_DENYMATCH) {
if (IS_RIP_DEBUG_PACKET)
zlog_debug(
- "RIP %s/%d is filtered by route-map out",
- inet_ntoa(p->prefix),
- p->prefixlen);
+ "RIP %pFX is filtered by route-map out",
+ p);
continue;
}
}
if (ret == RMAP_DENYMATCH) {
if (IS_RIP_DEBUG_PACKET)
zlog_debug(
- "%s/%d is filtered by route-map",
- inet_ntoa(p->prefix),
- p->prefixlen);
+ "%pFX is filtered by route-map",
+ p);
continue;
}
}
(struct prefix_ipv4 *)&rp->p;
zlog_debug(
- "Poisone %s/%d on the interface %s with an infinity metric [withdraw]",
- inet_ntoa(p->prefix),
- p->prefixlen,
+ "Poisone %pFX on the interface %s with an infinity metric [withdraw]",
+ p,
ifindex2ifname(
rinfo->nh.ifindex,
rip->vrf->vrf_id));