diff options
author | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2022-02-02 05:06:49 +0100 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2022-02-06 23:27:13 +0100 |
commit | ba5aec94cdf643350677f6b0ac4d335039c22396 (patch) | |
tree | 729e8984a07fd4239dec86f3c0ea2a9aa627a0ab /filter/data.h | |
parent | d0f9a77f641d44472679caf85b7bef6e13ce926a (diff) |
Trie: Add prefix counter
Add counter of prefixes stored in trie. Works only for 'restricted' tries
composed of explicit prefixes (pxlen == l == h), like ones used in rtables.
Diffstat (limited to 'filter/data.h')
-rw-r--r-- | filter/data.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/filter/data.h b/filter/data.h index 28c7a888..ecbc3d4f 100644 --- a/filter/data.h +++ b/filter/data.h @@ -173,6 +173,7 @@ struct f_trie u8 zero; s8 ipv4; /* -1 for undefined / empty */ u16 data_size; /* Additional data for each trie node */ + u32 prefix_count; /* Works only for restricted tries (pxlen == l == h) */ struct f_trie_node root; /* Root trie node */ }; |