Added ndpi_get_l4_proto_name() and ndpi_get_l4_proto_info() API calls to print L4 protocol

This commit is contained in:
Luca Deri
2019-10-08 11:35:33 +02:00
parent 4bdbf02c2d
commit 10873bfe35
4 changed files with 68 additions and 14 deletions
+7 -1
View File
@@ -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);