]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Rename constant
authorIgor Putovny <igor.putovny@nic.cz>
Fri, 20 Oct 2023 11:13:47 +0000 (13:13 +0200)
committerIgor Putovny <igor.putovny@nic.cz>
Fri, 20 Oct 2023 11:13:47 +0000 (13:13 +0200)
proto/aggregator/aggregator.c
proto/aggregator/aggregator.h

index a926cf274ec1407b39b9d9da92cd850e18cc5a68..08fa33708ef09931d0f5409e30e291fa80f1f867 100644 (file)
@@ -271,7 +271,7 @@ aggregator_bucket_intersect(const struct trie_node *left, const struct trie_node
 
   while (i < left->potential_buckets_count && j < right->potential_buckets_count)
   {
-    if (node->potential_buckets_count >= MAX_POTENTIAL_NEXTHOP_COUNT)
+    if (node->potential_buckets_count >= MAX_POTENTIAL_BUCKETS_COUNT)
       return;
 
     int res = aggregator_bucket_compare(left->potential_buckets[i], right->potential_buckets[j]);
@@ -304,7 +304,7 @@ aggregator_bucket_unionize(const struct trie_node *left, const struct trie_node
 
   while (i < left->potential_buckets_count && j < right->potential_buckets_count)
   {
-    if (node->potential_buckets_count >= MAX_POTENTIAL_NEXTHOP_COUNT)
+    if (node->potential_buckets_count >= MAX_POTENTIAL_BUCKETS_COUNT)
       return;
 
     int res = aggregator_bucket_compare(left->potential_buckets[i], right->potential_buckets[j]);
@@ -344,7 +344,7 @@ aggregator_bucket_unionize(const struct trie_node *left, const struct trie_node
 
   while (i < left->potential_buckets_count)
   {
-    if (node->potential_buckets_count >= MAX_POTENTIAL_NEXTHOP_COUNT)
+    if (node->potential_buckets_count >= MAX_POTENTIAL_BUCKETS_COUNT)
       return;
 
     if (node->potential_buckets_count == 0 || node->potential_buckets[node->potential_buckets_count - 1] != left->potential_buckets[i])
@@ -355,7 +355,7 @@ aggregator_bucket_unionize(const struct trie_node *left, const struct trie_node
 
   while (j < right->potential_buckets_count)
   {
-    if (node->potential_buckets_count >= MAX_POTENTIAL_NEXTHOP_COUNT)
+    if (node->potential_buckets_count >= MAX_POTENTIAL_BUCKETS_COUNT)
       return;
 
     if (node->potential_buckets_count == 0 || node->potential_buckets[node->potential_buckets_count - 1] != right->potential_buckets[j])
index 17a6e8e229b37c6166b6387345367b9ad3796098..2d0a6167c47f892709d4197182e0398f3f41d0f6 100644 (file)
@@ -17,7 +17,7 @@
 #include "nest/protocol.h"
 #include "lib/hash.h"
 
-#define MAX_POTENTIAL_NEXTHOP_COUNT 16
+#define MAX_POTENTIAL_BUCKETS_COUNT 16
 
 struct aggregator_config {
   struct proto_config c;
@@ -93,7 +93,7 @@ struct trie_node {
   struct trie_node *parent;
   struct trie_node *child[2];
   struct aggregator_bucket *bucket;
-  struct aggregator_bucket *potential_buckets[MAX_POTENTIAL_NEXTHOP_COUNT];
+  struct aggregator_bucket *potential_buckets[MAX_POTENTIAL_BUCKETS_COUNT];
   int potential_buckets_count;
 };