diff options
author | Luca Deri <deri@ntop.org> | 2018-02-21 08:18:37 +0100 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2018-02-21 08:18:37 +0100 |
commit | 6a9fc935ebd783d987b51f062d89ba20d0e4297e (patch) | |
tree | a77e5fd5b85e2689f9f5bc86de05d25c5cd46af9 | |
parent | 06bb9a9c57cc1c6fa4d6a5f88cdeeb40d73a0866 (diff) |
Added fix for invalid RTP/Skype detection
Added change in config.h generated by nDPI to avoid name clashes (the GNU autotools are really outdated)
-rwxr-xr-x | autogen.sh | 2 | ||||
-rw-r--r-- | src/lib/protocols/rtp.c | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/autogen.sh b/autogen.sh index efe97ab8a..13bb2d801 100755 --- a/autogen.sh +++ b/autogen.sh @@ -41,7 +41,7 @@ cat configure.seed | sed \ > configure.ac autoreconf -ivf -cat configure | sed "s/#define PACKAGE_/#define NDPI_PACKAGE_/g" > configure.tmp +cat configure | sed "s/#define PACKAGE/#define NDPI_PACKAGE/g" | sed "s/#define VERSION/#define NDPI_VERSION/g" > configure.tmp cat configure.tmp > configure ./configure $* diff --git a/src/lib/protocols/rtp.c b/src/lib/protocols/rtp.c index c6fc29ead..2f19acf46 100644 --- a/src/lib/protocols/rtp.c +++ b/src/lib/protocols/rtp.c @@ -82,7 +82,6 @@ static void ndpi_rtp_search(struct ndpi_detection_module_struct *ndpi_struct, return; //struct ndpi_packet_struct *packet = &flow->packet; u_int8_t payloadType, payload_type = payload[1] & 0x7F; - u_int32_t *ssid = (u_int32_t*)&payload[8]; /* Check whether this is an RTP flow */ if((payload_len >= 12) @@ -92,7 +91,6 @@ static void ndpi_rtp_search(struct ndpi_detection_module_struct *ndpi_struct, || ((payload_type >= 96) && (payload_type <= 127)) /* http://www.iana.org/assignments/rtp-parameters/rtp-parameters.xhtml */ ) - && (*ssid != 0) ) { NDPI_LOG_INFO(ndpi_struct, "Found RTP\n"); ndpi_set_detected_protocol(ndpi_struct, flow, NDPI_PROTOCOL_RTP, NDPI_PROTOCOL_UNKNOWN); |