From ac46a4dd58357b62d9b93253e47ade111efae649 Mon Sep 17 00:00:00 2001 From: Alfredo Cardigliano Date: Wed, 6 Nov 2019 09:55:22 +0100 Subject: Added L2TP tunnel type. Warning fix. --- src/include/ndpi_typedefs.h | 1 + src/lib/ndpi_utils.c | 6 ++++++ 2 files changed, 7 insertions(+) (limited to 'src') diff --git a/src/include/ndpi_typedefs.h b/src/include/ndpi_typedefs.h index 55438dee3..f9c49c4b5 100644 --- a/src/include/ndpi_typedefs.h +++ b/src/include/ndpi_typedefs.h @@ -47,6 +47,7 @@ typedef enum { ndpi_gtp_tunnel, ndpi_capwap_tunnel, ndpi_tzsp_tunnel, + ndpi_l2tp_tunnel, } ndpi_packet_tunnel; typedef enum { diff --git a/src/lib/ndpi_utils.c b/src/lib/ndpi_utils.c index da6b59f72..bf3f748be 100644 --- a/src/lib/ndpi_utils.c +++ b/src/lib/ndpi_utils.c @@ -1090,7 +1090,13 @@ const char* ndpi_tunnel2str(ndpi_packet_tunnel tt) { case ndpi_tzsp_tunnel: return("TZSP"); break; + + case ndpi_l2tp_tunnel: + return("L2TP"); + break; } + + return(""); } /* ********************************** */ -- cgit v1.2.3