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:
@@ -15,7 +15,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
|
||||
ndpi_set_protocol_detection_bitmask2(ndpi_struct, &all);
|
||||
|
||||
ndpi_set_config(ndpi_struct, NULL, "log.level", "3");
|
||||
ndpi_set_config(ndpi_struct, "all", "log.enable", "1");
|
||||
ndpi_set_config(ndpi_struct, "all", "log", "1");
|
||||
|
||||
fd = buffer_to_file(data, size);
|
||||
load_protocols_file_fd(ndpi_struct, fd);
|
||||
|
||||
Reference in New Issue
Block a user