aboutsummaryrefslogtreecommitdiff
path: root/src/lib/protocols/stun.c
diff options
context:
space:
mode:
authorLuca <deri@ntop.org>2021-01-20 09:53:30 +0100
committerLuca <deri@ntop.org>2021-01-20 09:53:30 +0100
commit0809956e5f9ebbe11d5e11bebaf0c390eb993464 (patch)
treefa5629e9c65cb68952b569d8ff475771105cac74 /src/lib/protocols/stun.c
parente9f43516ec06638783fd03dea3aba0112584f566 (diff)
Rewored UPnP protocol that in essence was WSD hence it has been renamed
Cleaned up TLS code for DTLS detection by defining a new DTLS protocol
Diffstat (limited to 'src/lib/protocols/stun.c')
-rw-r--r--src/lib/protocols/stun.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/protocols/stun.c b/src/lib/protocols/stun.c
index cc1836a9b..cf7a4d0a4 100644
--- a/src/lib/protocols/stun.c
+++ b/src/lib/protocols/stun.c
@@ -202,9 +202,8 @@ static ndpi_int_stun_t ndpi_int_check_stun(struct ndpi_detection_module_struct *
total_len = ntohs(*((u_int16_t*) &packet->payload[11])) + 13;
if(payload_length == total_len) {
- /* This is DTLS and the only protocol we know behaves like this is signal */
- flow->guessed_host_protocol_id = NDPI_PROTOCOL_SIGNAL;
- return(NDPI_IS_STUN);
+ flow->guessed_host_protocol_id = NDPI_PROTOCOL_DTLS;
+ return(NDPI_IS_NOT_STUN);
}
}
}