aboutsummaryrefslogtreecommitdiff
path: root/src/lib/ndpi_utils.c
diff options
context:
space:
mode:
authorIvan Nardi <12729895+IvanNardi@users.noreply.github.com>2023-07-11 10:12:08 +0200
committerGitHub <noreply@github.com>2023-07-11 10:12:08 +0200
commit950f5cc4e3ddd9bc0f8881950082283aa381c805 (patch)
tree4686d9c1b1d0348d06db9d6aa8ed166f449e3238 /src/lib/ndpi_utils.c
parent859d9ea3c33c3ed54c159658a94381fdd4e7eccb (diff)
fuzz: extend fuzzing coverage (#2040)
Some notes: * libinjection: according to https://github.com/libinjection/libinjection/issues/44, it seems NULL characters are valid in the input string; * RTP: `rtp_get_stream_type()` is called only for RTP packets; if you want to tell RTP from RTCP you should use `is_rtp_or_rtcp()`; * TLS: unnecessary check; we already make the same check just above, at the beginning of the `while` loop
Diffstat (limited to 'src/lib/ndpi_utils.c')
-rw-r--r--src/lib/ndpi_utils.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/lib/ndpi_utils.c b/src/lib/ndpi_utils.c
index 8356c39b3..bd7c922ad 100644
--- a/src/lib/ndpi_utils.c
+++ b/src/lib/ndpi_utils.c
@@ -1627,31 +1627,24 @@ 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;
case ndpi_l2tp_tunnel:
return("L2TP");
- break;
case ndpi_vxlan_tunnel:
return("VXLAN");
- break;
case ndpi_gre_tunnel:
return("GRE");
- break;
}
return("");