diff options
author | Maria Matejka <mq@ucw.cz> | 2022-06-27 12:44:11 +0200 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2022-06-27 12:44:11 +0200 |
commit | d5cac1a4ef49f4159f3b95f53a405f81d785711b (patch) | |
tree | 5502c3c7bd70bb3099fe36b7f70b493195f1a3a7 /nest/rt-attr.c | |
parent | c431d9c33c72203498133d7e2422423c37c4719d (diff) |
Route attribute display now normalizes ea_lists.
This is needed to display every attribute only once with overlay
attribute lists recently introduced.
Diffstat (limited to 'nest/rt-attr.c')
-rw-r--r-- | nest/rt-attr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nest/rt-attr.c b/nest/rt-attr.c index 0881b61b..049dc72a 100644 --- a/nest/rt-attr.c +++ b/nest/rt-attr.c @@ -1376,9 +1376,9 @@ ea_dump_all(void) void ea_show_list(struct cli *c, ea_list *eal) { - for( ; eal; eal=eal->next) - for(int i=0; i<eal->count; i++) - ea_show(c, &eal->attrs[i]); + ea_list *n = ea_normalize(eal, 0); + for (int i =0; i < n->count; i++) + ea_show(c, &n->attrs[i]); } /** |