From 166df9bdf1a6dfbad90d2566dd26e915a701bf1d Mon Sep 17 00:00:00 2001 From: Igor Putovny Date: Wed, 12 Feb 2025 17:17:56 +0100 Subject: [PATCH] Add shift values for ipa bit operations --- proto/aggregator/aggregator.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/proto/aggregator/aggregator.c b/proto/aggregator/aggregator.c index 8d95a1be9..acbb7ac35 100644 --- a/proto/aggregator/aggregator.c +++ b/proto/aggregator/aggregator.c @@ -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) { -- 2.47.2