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
This commit is contained in:
Luca
2021-01-20 09:53:30 +01:00
parent e9f43516ec
commit 0809956e5f
8 changed files with 43 additions and 43 deletions
+2 -3
View File
@@ -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);
}
}
}