]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Route attribute display now normalizes ea_lists.
authorMaria Matejka <mq@ucw.cz>
Mon, 27 Jun 2022 10:44:11 +0000 (12:44 +0200)
committerMaria Matejka <mq@ucw.cz>
Mon, 27 Jun 2022 10:44:11 +0000 (12:44 +0200)
This is needed to display every attribute only once with overlay
attribute lists recently introduced.

nest/rt-attr.c

index 0881b61bc82baf1217139499454be46130ac1331..049dc72a6d9f56d7aeba1633e900a7eaeb6c0147 100644 (file)
@@ -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]);
 }
 
 /**