]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Add shift values for ipa bit operations
authorIgor Putovny <igor.putovny@nic.cz>
Wed, 12 Feb 2025 16:17:56 +0000 (17:17 +0100)
committerIgor Putovny <igor.putovny@nic.cz>
Wed, 12 Feb 2025 16:17:56 +0000 (17:17 +0100)
proto/aggregator/aggregator.c

index 8d95a1be9db7b7f90709b1a90c9c454db84558b9..acbb7ac3553af1cef340f66de6217eaa92568f8d 100644 (file)
@@ -97,6 +97,11 @@ static const char *px_origin_str[] = {
   [AGGREGATED] = "aggregated",
 };
 
+static const u32 ipa_shift[] = {
+  [NET_IP4] = IP6_MAX_PREFIX_LENGTH - IP4_MAX_PREFIX_LENGTH,
+  [NET_IP6] = 0,
+};
+
 static inline int
 is_leaf(const struct trie_node *node)
 {