summaryrefslogtreecommitdiff
path: root/proto/static
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2022-06-27 13:39:28 +0200
committerMaria Matejka <mq@ucw.cz>2022-06-27 13:39:28 +0200
commitbdd6f728399a7601eaeff7165645fb0c597d309d (patch)
tree154ae8bc34e7f39b6a3ac25b890e725ec9d2daa6 /proto/static
parentd5cac1a4ef49f4159f3b95f53a405f81d785711b (diff)
Moved nexthop + hostentry display to other eattrs
Diffstat (limited to 'proto/static')
-rw-r--r--proto/static/static.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proto/static/static.c b/proto/static/static.c
index d1d5b92b..f0a514f7 100644
--- a/proto/static/static.c
+++ b/proto/static/static.c
@@ -695,7 +695,7 @@ static_get_route_info(rte *rte, byte *buf)
{
eattr *a = ea_find(rte->attrs, &ea_gen_igp_metric);
u32 pref = rt_get_preference(rte);
- if (a)
+ if (a && (a->u.data < IGP_METRIC_UNKNOWN))
buf += bsprintf(buf, " (%d/%u)", pref, a->u.data);
else
buf += bsprintf(buf, " (%d)", pref);