]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Print route tag in hexadecimal and omit it if it's zero.
authorMartin Mares <mj@ucw.cz>
Thu, 1 Jun 2000 13:00:39 +0000 (13:00 +0000)
committerMartin Mares <mj@ucw.cz>
Thu, 1 Jun 2000 13:00:39 +0000 (13:00 +0000)
proto/ospf/ospf.c

index f459ddb7e046545d8c6e1834387fd7ae03bdc1a8..92bb670db8962f16aee119023b0cf8612629b387 100644 (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);
   }
 }