mirror of
https://github.com/vel21ripn/nDPI.git
synced 2026-04-30 16:09:43 +00:00
config: move IP lists configurations to the new API
This commit is contained in:
parent
f55358973f
commit
4cbe2674ab
16 changed files with 588 additions and 253 deletions
|
|
@ -5,29 +5,13 @@
|
|||
int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
|
||||
struct ndpi_detection_module_struct *ndpi_struct;
|
||||
FILE *fd;
|
||||
/* Try to be fast */
|
||||
ndpi_init_prefs prefs = ndpi_dont_load_tor_list |
|
||||
ndpi_dont_load_azure_list |
|
||||
ndpi_dont_load_whatsapp_list |
|
||||
ndpi_dont_load_amazon_aws_list |
|
||||
ndpi_dont_load_ethereum_list |
|
||||
ndpi_dont_load_zoom_list |
|
||||
ndpi_dont_load_cloudflare_list |
|
||||
ndpi_dont_load_microsoft_list |
|
||||
ndpi_dont_load_google_list |
|
||||
ndpi_dont_load_google_cloud_list |
|
||||
ndpi_dont_load_asn_lists |
|
||||
ndpi_dont_init_risk_ptree |
|
||||
ndpi_dont_load_cachefly_list |
|
||||
ndpi_dont_load_protonvpn_list |
|
||||
ndpi_dont_load_mullvad_list;
|
||||
NDPI_PROTOCOL_BITMASK all;
|
||||
NDPI_PROTOCOL_BITMASK debug_bitmask;
|
||||
|
||||
/* To allow memory allocation failures */
|
||||
fuzz_set_alloc_callbacks_and_seed(size);
|
||||
|
||||
ndpi_struct = ndpi_init_detection_module(prefs);
|
||||
ndpi_struct = ndpi_init_detection_module(ndpi_no_prefs);
|
||||
NDPI_BITMASK_SET_ALL(all);
|
||||
ndpi_set_protocol_detection_bitmask2(ndpi_struct, &all);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue