From: Maria Matejka Date: Mon, 27 Jun 2022 10:44:11 +0000 (+0200) Subject: Route attribute display now normalizes ea_lists. X-Git-Tag: v3.0-alpha1~171^2~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d5cac1a4ef49f4159f3b95f53a405f81d785711b;p=thirdparty%2Fbird.git Route attribute display now normalizes ea_lists. This is needed to display every attribute only once with overlay attribute lists recently introduced. --- diff --git a/nest/rt-attr.c b/nest/rt-attr.c index 0881b61bc..049dc72a6 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; icount; 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]); } /**