0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 17:51:53 +00:00

Print route tag in hexadecimal and omit it if it's zero.

This commit is contained in:
Martin Mares 2000-06-01 13:00:39 +00:00
parent bc00185e5a
commit 23df5e4cf3

View File

@ -286,9 +286,9 @@ ospf_get_route_info(rte *rte, byte *buf, ea_list *attrs)
buf += bsprintf(buf, " (%d/%d)", rte->pref,
(rte->u.ospf.metric2==LSINFINITY) ? rte->u.ospf.metric1 :
rte->u.ospf.metric2);
if(rte->attrs->source==RTS_OSPF_EXT)
if(rte->attrs->source==RTS_OSPF_EXT && rte->u.ospf.tag)
{
buf += bsprintf(buf, " [%u]", rte->u.ospf.tag);
buf += bsprintf(buf, " [%x]", rte->u.ospf.tag);
}
}