diff options
author | Maria Matejka <mq@ucw.cz> | 2022-06-27 13:39:28 +0200 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2022-06-27 13:39:28 +0200 |
commit | bdd6f728399a7601eaeff7165645fb0c597d309d (patch) | |
tree | 154ae8bc34e7f39b6a3ac25b890e725ec9d2daa6 /proto | |
parent | d5cac1a4ef49f4159f3b95f53a405f81d785711b (diff) |
Moved nexthop + hostentry display to other eattrs
Diffstat (limited to 'proto')
-rw-r--r-- | proto/static/static.c | 2 |
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); |