From 6298ecc2718a74a7e5c92e57af464d97c3a60bf9 Mon Sep 17 00:00:00 2001 From: Luca Date: Tue, 5 Nov 2019 08:21:31 +0000 Subject: Added tunnelling decapsulation --- example/ndpiReader.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'example/ndpiReader.c') diff --git a/example/ndpiReader.c b/example/ndpiReader.c index 268fea160..2f4d41465 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -1097,8 +1097,12 @@ static void printFlow(u_int16_t id, struct ndpi_flow_info *flow, u_int16_t threa fflush(out); fprintf(out, "[score: %.4f]", flow->entropy.score); } - - fprintf(out, "[proto: %s/%s]", + + fprintf(out, "[proto: "); + if(flow->tunnel_type != ndpi_no_tunnel) + fprintf(out, "%s:", ndpi_tunnel2str(flow->tunnel_type)); + + fprintf(out, "%s/%s]", ndpi_protocol2id(ndpi_thread_info[thread_id].workflow->ndpi_struct, flow->detected_protocol, buf, sizeof(buf)), ndpi_protocol2name(ndpi_thread_info[thread_id].workflow->ndpi_struct, -- cgit v1.2.3