diff options
Diffstat (limited to 'example')
-rw-r--r-- | example/categories.txt | 3 | ||||
-rw-r--r-- | example/ndpiReader.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/example/categories.txt b/example/categories.txt new file mode 100644 index 000000000..6c5171c53 --- /dev/null +++ b/example/categories.txt @@ -0,0 +1,3 @@ +# Format: name\tcategory_id +internetbadguys.com 100 +144.139.247.220 100 diff --git a/example/ndpiReader.c b/example/ndpiReader.c index 90e1b0d4f..f3e26b799 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -1897,7 +1897,7 @@ static void setupDetection(u_int16_t thread_id, pcap_t * pcap_handle) { int fields[4]; - if(verbose) printf("[Category] Loading %s\t%s\n", name, category); + if(verbose && !quiet_mode) printf("[Category] Loading %s\t%s\n", name, category); if(sscanf(name, "%d.%d.%d.%d", &fields[0], &fields[1], &fields[2], &fields[3]) == 4) ndpi_load_ip_category(ndpi_thread_info[thread_id].workflow->ndpi_struct, |