Skip to content

Commit 75d25a5

Browse files
sedmichaLukas Hutak
authored andcommitted
Filter: Enable optimization of IP list to trie
1 parent 0715df3 commit 75d25a5

3 files changed

Lines changed: 0 additions & 10 deletions

File tree

src/filter/operations/trie.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@
4040
*
4141
*/
4242

43-
#ifndef FDS_FILTER_DISABLE_TRIE
44-
4543
#include <libfds.h>
4644
#include "trie.h"
4745

@@ -81,5 +79,3 @@ const fds_filter_op_s trie_operations[] = {
8179
FDS_FILTER_DEF_BINARY_OP(FDS_FDT_IP, "in", FDS_FDT_TRIE, ip_in_trie, FDS_FDT_BOOL),
8280
FDS_FILTER_END_OP_LIST
8381
};
84-
85-
#endif // FDS_FILTER_ENABLE_TRIE

src/filter/operations/trie.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@
4040
*
4141
*/
4242

43-
#ifndef FDS_FILTER_DISABLE_TRIE
44-
4543
#ifndef FDS_FILTER_OPERATIONS_TRIE_H
4644
#define FDS_FILTER_OPERATIONS_TRIE_H
4745

@@ -50,5 +48,3 @@
5048
extern const fds_filter_op_s trie_operations[];
5149

5250
#endif // FDS_FILTER_OPERATIONS_TRIE_H
53-
54-
#endif // FDS_FILTER_ENABLE_TRIE

src/filter/opts.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,11 +174,9 @@ fds_filter_create_default_opts()
174174
if (!fds_filter_opts_extend_ops(opts, flags_operations)) {
175175
goto error;
176176
}
177-
#if 0
178177
if (!fds_filter_opts_extend_ops(opts, trie_operations)) {
179178
goto error;
180179
}
181-
#endif
182180

183181
return opts;
184182

0 commit comments

Comments
 (0)