config: follow-up (#2268)

Some changes in the parameters names.
Add a fuzzer to fuzz the configuration file format.
Add the infrastructure to configuratin callbacks.
Add an helper to map LRU cache indexes to names.
This commit is contained in:
Ivan Nardi
2024-01-20 16:14:41 +01:00
committed by GitHub
parent 8651ce9811
commit 42d23cff6a
62 changed files with 264 additions and 118 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ void fuzz_init_detection_module(struct ndpi_detection_module_struct **ndpi_info_
*ndpi_info_mod = ndpi_init_detection_module();
ndpi_set_config(*ndpi_info_mod, NULL, "log.level", "3");
ndpi_set_config(*ndpi_info_mod, "all", "log.enable", "1");
ndpi_set_config(*ndpi_info_mod, "all", "log", "enable");
ndpi_load_categories_dir(*ndpi_info_mod, "./lists/");
ndpi_load_protocols_file(*ndpi_info_mod, "protos.txt");