aboutsummaryrefslogtreecommitdiff
path: root/example/ndpiReader.c
diff options
context:
space:
mode:
Diffstat (limited to 'example/ndpiReader.c')
-rw-r--r--example/ndpiReader.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c
index d44fae0d6..3566e93d8 100644
--- a/example/ndpiReader.c
+++ b/example/ndpiReader.c
@@ -412,9 +412,15 @@ static void help(u_int long_help) {
#endif
if(long_help) {
+ NDPI_PROTOCOL_BITMASK all;
+
printf("\n\nnDPI supported protocols:\n");
- printf("%3s %-22s %-12s %s\n", "Id", "Protocol", "Breed", "Category");
+ printf("%3s %-22s %-8s %-12s %s\n", "Id", "Protocol", "Layer_4", "Breed", "Category");
num_threads = 1;
+
+ NDPI_BITMASK_SET_ALL(all);
+ ndpi_set_protocol_detection_bitmask2(ndpi_info_mod, &all);
+
ndpi_dump_protocols(ndpi_info_mod);
}
exit(!long_help);