]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Add more comments
authorIgor Putovny <igor.putovny@nic.cz>
Mon, 24 Feb 2025 15:56:53 +0000 (16:56 +0100)
committerIgor Putovny <igor.putovny@nic.cz>
Mon, 24 Feb 2025 15:56:53 +0000 (16:56 +0100)
proto/aggregator/trie.c

index 230c0a94dfdbb439d8b6f24d5459f1c84d405298..f3bcf6ae43cfa2e11c02433860a27f8acdc2c5fb 100644 (file)
@@ -953,8 +953,9 @@ aggregator_update_prefix(struct aggregator_proto *p, struct aggregator_route *ol
   struct trie_node *node = updated_node;
 
   /*
-   * Find the closest IN_FIB ancestor of the updated node and
-   * deaggregate the whole subtree rooted at this node.
+   * Find the closest IN_FIB ancestor of the updated node and deaggregate
+   * the whole subtree rooted at this node. Since updated node has IN_FIB
+   * status, we need to find node which is different from this node.
    * Then aggregate it once again, this time with incorporated update.
    */
   while (1)
@@ -992,9 +993,10 @@ aggregator_withdraw_prefix(struct aggregator_proto *p, struct aggregator_route *
   struct trie_node *node = updated_node;
 
   /*
-   * Find the closest IN_FIB ancestor of the updated node and
-   * deaggregate the whole subtree rooted at this node.
-   * Then aggegate it once again, this time with received update.
+   * Find the closest IN_FIB ancestor of the updated node and deaggregate
+   * the whole subtree rooted at this node. Since updated node does not have
+   * IN_FIB status, the next node with this status will be its ancestor we are
+   * seeking. Then aggregate it again, this time with incorporated update.
    */
   while (1)
   {