diff options
author | Luca <deri@ntop.org> | 2019-11-05 08:21:31 +0000 |
---|---|---|
committer | Luca <deri@ntop.org> | 2019-11-05 08:21:31 +0000 |
commit | 6298ecc2718a74a7e5c92e57af464d97c3a60bf9 (patch) | |
tree | 6c496a11cb045ad47572aa80d79a3aaf89c9f21d /example/ndpiReader.c | |
parent | 75302a10bd24556e0a0f50b0de905ad4c46ad8c7 (diff) |
Added tunnelling decapsulation
Diffstat (limited to 'example/ndpiReader.c')
-rw-r--r-- | example/ndpiReader.c | 8 |
1 files changed, 6 insertions, 2 deletions
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, |