Added ndpi_set_detection_preferences() APi call
This commit is contained in:
@@ -86,10 +86,12 @@ static int ndpi_int_check_mdns_payload(struct ndpi_detection_module_struct
|
||||
|
||||
/* printf("==> [%d] %s\n", j, answer); */
|
||||
|
||||
len = ndpi_min(sizeof(flow->protos.mdns.answer)-1, j);
|
||||
strncpy(flow->protos.mdns.answer, (const char *)answer, len);
|
||||
flow->protos.mdns.answer[len] = '\0';
|
||||
|
||||
if(!ndpi_struct->disable_metadata_export) {
|
||||
len = ndpi_min(sizeof(flow->protos.mdns.answer)-1, j);
|
||||
strncpy(flow->protos.mdns.answer, (const char *)answer, len);
|
||||
flow->protos.mdns.answer[len] = '\0';
|
||||
}
|
||||
|
||||
NDPI_LOG_INFO(ndpi_struct, "found MDNS with answer query\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user