diff options
author | Maria Matejka <mq@ucw.cz> | 2022-04-20 13:56:04 +0200 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2022-05-04 15:39:21 +0200 |
commit | 8ebac84bc8d51e2404ce6d6dc5e35fb261830596 (patch) | |
tree | ddf072a6ba02df9647f02e9203a8e4b3f214e108 /nest/rt-show.c | |
parent | 337c04c45e1472d6d9b531a3c55f1f2d30ebf308 (diff) |
Moved advertising router info (FROM attribute) to eattrs
Diffstat (limited to 'nest/rt-show.c')
-rw-r--r-- | nest/rt-show.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/nest/rt-show.c b/nest/rt-show.c index 1c764d8c..be4c0186 100644 --- a/nest/rt-show.c +++ b/nest/rt-show.c @@ -48,8 +48,9 @@ rt_show_rte(struct cli *c, byte *ia, rte *e, struct rt_show_data *d, int primary struct nexthop *nh; tm_format_time(tm, &config->tf_route, e->lastmod); - if (ipa_nonzero(a->from) && !ipa_equal(a->from, a->nh.gw)) - bsprintf(from, " from %I", a->from); + ip_addr a_from = ea_get_ip(a->eattrs, &ea_gen_from, IPA_NONE); + if (ipa_nonzero(a_from) && !ipa_equal(a_from, a->nh.gw)) + bsprintf(from, " from %I", a_from); else from[0] = 0; |