aboutsummaryrefslogtreecommitdiff
path: root/example/ndpiReader.c
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2019-04-01 16:12:44 +0200
committerLuca Deri <deri@ntop.org>2019-04-01 16:12:44 +0200
commit6693151052a98e6eddc722c139886d7fe84f35e4 (patch)
treecf77f7c9a2f0cd298c25c841c044bfeb00ab7baa /example/ndpiReader.c
parent1915a63cf29fbe3d2b0a983b2875929518d242ad (diff)
Added custom category support to ndpi_get_partial_detection()
Diffstat (limited to 'example/ndpiReader.c')
-rw-r--r--example/ndpiReader.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c
index 72eaecca4..0b0fa889b 100644
--- a/example/ndpiReader.c
+++ b/example/ndpiReader.c
@@ -1505,7 +1505,8 @@ static void setupDetection(u_int16_t thread_id, pcap_t * pcap_handle) {
if(category) {
int fields[4];
- // printf("Loading %s\t%s\n", name, category);
+
+ if(verbose) 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,