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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user