summaryrefslogtreecommitdiffstats
path: root/proto/ospf
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-06-01 15:00:39 +0200
committerMartin Mares <mj@ucw.cz>2000-06-01 15:00:39 +0200
commit23df5e4cf3b0ff10e7484fc5ca40cb5ea638078b (patch)
tree596f3f13a7c4811a1b8c2e3017a3625f05abce73 /proto/ospf
parentbc00185e5a2d51d965465f117722fd4189437d24 (diff)
downloadbird-23df5e4cf3b0ff10e7484fc5ca40cb5ea638078b.tar
bird-23df5e4cf3b0ff10e7484fc5ca40cb5ea638078b.zip
Print route tag in hexadecimal and omit it if it's zero.
Diffstat (limited to 'proto/ospf')
-rw-r--r--proto/ospf/ospf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/proto/ospf/ospf.c b/proto/ospf/ospf.c
index f459ddb..92bb670 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);
}
}