From 23df5e4cf3b0ff10e7484fc5ca40cb5ea638078b Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Thu, 1 Jun 2000 13:00:39 +0000 Subject: Print route tag in hexadecimal and omit it if it's zero. --- proto/ospf/ospf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'proto') diff --git a/proto/ospf/ospf.c b/proto/ospf/ospf.c index f459ddb7..92bb670d 100644 --- a/proto/ospf/ospf.c +++ b/proto/ospf/ospf.c @@ -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); } } -- cgit v1.2.3