Decreased minimum packet payload length down to 19 from 100 for SSDP.
The minimum packet payload length is: "NOTIFY * HTTP/1.1" + 0x0d + 0x0a (19 bytes).
This commit is contained in:
@@ -45,7 +45,7 @@ void ndpi_search_ssdp(struct ndpi_detection_module_struct *ndpi_struct, struct n
|
||||
NDPI_LOG_DBG(ndpi_struct, "search ssdp\n");
|
||||
if (packet->udp != NULL) {
|
||||
|
||||
if (packet->payload_packet_len > 100) {
|
||||
if (packet->payload_packet_len >= 19) {
|
||||
if ((memcmp(packet->payload, "M-SEARCH * HTTP/1.1", 19) == 0)
|
||||
|| memcmp(packet->payload, "NOTIFY * HTTP/1.1", 17) == 0) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user