mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 02:37:21 +00:00
zebra: identify MRIB on debug messages
since the same code handles both URIB and MRIB, the debug messages can get rather confusing if the RIB isn't identified. Mark the MRIB in debug messages so we can distinguish that. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
This commit is contained in:
parent
2263a41286
commit
cb65349115
@ -93,9 +93,12 @@ _rnode_zlog(const char *_func, vrf_id_t vrf_id, struct route_node *rn, int prior
|
||||
|
||||
if (rn)
|
||||
{
|
||||
rib_table_info_t *info = rn->table->info;
|
||||
|
||||
inet_ntop (rn->p.family, &rn->p.u.prefix, buf, INET6_ADDRSTRLEN);
|
||||
bptr = buf + strlen(buf);
|
||||
snprintf(bptr, buf + sizeof(buf) - bptr, "/%d", rn->p.prefixlen);
|
||||
snprintf(bptr, buf + sizeof(buf) - bptr, "/%d%s", rn->p.prefixlen,
|
||||
info->safi == SAFI_MULTICAST ? " (MRIB)" : "");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user