From 3608ab01b61bde1b7ac88baa448fe37724a313db Mon Sep 17 00:00:00 2001 From: Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> Date: Wed, 21 Jun 2023 09:16:20 +0200 Subject: STUN: keep monitoring/processing STUN flows (#2012) Look for RTP packets in the STUN sessions. TODO: tell RTP from RTCP --- src/include/ndpi_api.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/include/ndpi_api.h') diff --git a/src/include/ndpi_api.h b/src/include/ndpi_api.h index b378dfb58..258c09ae8 100644 --- a/src/include/ndpi_api.h +++ b/src/include/ndpi_api.h @@ -1050,6 +1050,12 @@ extern "C" { u_int32_t ndpi_get_protocol_aggressiveness(struct ndpi_detection_module_struct *ndpi_struct, u_int16_t proto); + int ndpi_set_monitoring_state(struct ndpi_detection_module_struct *ndpi_struct, + u_int16_t proto, u_int32_t num_pkts, u_int32_t flags); + int ndpi_get_monitoring_state(struct ndpi_detection_module_struct *ndpi_struct, + u_int16_t proto, u_int32_t *num_pkts, u_int32_t *flags); + + /** * Find a protocol id associated with a string automata * -- cgit v1.2.3