diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2012-01-20 16:20:03 +0100 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2012-01-20 16:20:03 +0100 |
commit | 3ce17142791b2e1a7f0b8e512b5b74224600056c (patch) | |
tree | 746a6efb43842530f313adeab4f3b15520e5d83f /proto/bgp/attrs.c | |
parent | 2c5ca47ad4d18cae162c2ddf85af2dedb89f00a5 (diff) |
Fixes a new bug in BGP route ordering.
Diffstat (limited to 'proto/bgp/attrs.c')
-rw-r--r-- | proto/bgp/attrs.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/proto/bgp/attrs.c b/proto/bgp/attrs.c index 5a368783..4495c039 100644 --- a/proto/bgp/attrs.c +++ b/proto/bgp/attrs.c @@ -1768,12 +1768,11 @@ bgp_get_route_info(rte *e, byte *buf, ea_list *attrs) eattr *o = ea_find(attrs, EA_CODE(EAP_BGP, BA_ORIGIN)); u32 origas; - /* + buf += bsprintf(buf, " (%d", e->pref); + if (e->u.bgp.suppressed) - buf += bsprintf(buf, " -"); - */ + buf += bsprintf(buf, "-"); - buf += bsprintf(buf, " (%d", e->pref); if (e->attrs->hostentry) { if (!rte_resolvable(e)) |