aboutsummaryrefslogtreecommitdiff
path: root/src/lib/protocols/quic.c
diff options
context:
space:
mode:
authorIvan Nardi <12729895+IvanNardi@users.noreply.github.com>2022-10-06 17:09:26 +0200
committerGitHub <noreply@github.com>2022-10-06 17:09:26 +0200
commit1796a1d814494fa85f75d395703edbc86ead3520 (patch)
tree55b13727f8cfcf541ef235533b3ad2875bf3208f /src/lib/protocols/quic.c
parente4dcec560edf392ff7d962d430aa8a9e12e73097 (diff)
LINE_CALL: add detection of LINE voip calls (#1761)
These flows are classifed as `LINE_CALL`; another option was `RTP/LINE_CALL`. No sure about the best solution... Extend LINE domains list. Remove RTP dead code.
Diffstat (limited to 'src/lib/protocols/quic.c')
-rw-r--r--src/lib/protocols/quic.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/lib/protocols/quic.c b/src/lib/protocols/quic.c
index 4909846b1..cbfaa9fd1 100644
--- a/src/lib/protocols/quic.c
+++ b/src/lib/protocols/quic.c
@@ -47,6 +47,7 @@ extern int processClientServerHello(struct ndpi_detection_module_struct *ndpi_st
extern int http_process_user_agent(struct ndpi_detection_module_struct *ndpi_struct,
struct ndpi_flow_struct *flow,
const u_int8_t *ua_ptr, u_int16_t ua_ptr_len);
+extern int is_valid_rtp_payload_type(uint8_t type);
/* Versions */
#define V_1 0x00000001
@@ -1609,12 +1610,6 @@ static int eval_extra_processing(struct ndpi_detection_module_struct *ndpi_struc
return 0;
}
-static int is_valid_rtp_payload_type(uint8_t type)
-{
- /* https://www.iana.org/assignments/rtp-parameters/rtp-parameters.xhtml */
- return type <= 34 || (type >= 96 && type <= 127);
-}
-
static void ndpi_search_quic(struct ndpi_detection_module_struct *ndpi_struct,
struct ndpi_flow_struct *flow);
static int ndpi_search_quic_extra(struct ndpi_detection_module_struct *ndpi_struct,