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 /src/lib/ndpi_utils.c | |
parent | 75302a10bd24556e0a0f50b0de905ad4c46ad8c7 (diff) |
Added tunnelling decapsulation
Diffstat (limited to 'src/lib/ndpi_utils.c')
-rw-r--r-- | src/lib/ndpi_utils.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/lib/ndpi_utils.c b/src/lib/ndpi_utils.c index f11f074cd..091cac927 100644 --- a/src/lib/ndpi_utils.c +++ b/src/lib/ndpi_utils.c @@ -1072,3 +1072,25 @@ int ndpi_flow2json(struct ndpi_detection_module_struct *ndpi_struct, } /* ********************************** */ + +const char* ndpi_tunnel2str(ndpi_packet_tunnel tt) { + switch(tt) { + case ndpi_no_tunnel: + return("No-Tunnel"); + break; + + case ndpi_gtp_tunnel: + return("GTP"); + break; + + case ndpi_capwap_tunnel: + return("CAPWAP"); + break; + + case ndpi_tzsp_tunnel: + return("TZSP"); + break; + } +} + +/* ********************************** */ |