Merge branch 'dsokoloski-pull-request' into dev
This commit is contained in:
@@ -197,6 +197,9 @@ void ndpi_search_dns(struct ndpi_detection_module_struct *ndpi_struct, struct nd
|
|||||||
off++;
|
off++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(is_query && ndpi_struct->dns_dissect_response)
|
||||||
|
return; /* The response will set the verdict */
|
||||||
|
|
||||||
flow->host_server_name[j] = '\0';
|
flow->host_server_name[j] = '\0';
|
||||||
|
|
||||||
flow->protos.dns.num_queries = (u_int8_t)dns_header.num_queries,
|
flow->protos.dns.num_queries = (u_int8_t)dns_header.num_queries,
|
||||||
@@ -217,9 +220,6 @@ void ndpi_search_dns(struct ndpi_detection_module_struct *ndpi_struct, struct nd
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
if(flow->packet.detected_protocol_stack[0] == NDPI_PROTOCOL_UNKNOWN) {
|
if(flow->packet.detected_protocol_stack[0] == NDPI_PROTOCOL_UNKNOWN) {
|
||||||
if(is_query && ndpi_struct->dns_dissect_response)
|
|
||||||
return; /* The response will set the verdict */
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Do not set the protocol with DNS if ndpi_match_host_subprotocol() has
|
Do not set the protocol with DNS if ndpi_match_host_subprotocol() has
|
||||||
matched a subprotocol
|
matched a subprotocol
|
||||||
|
|||||||
Reference in New Issue
Block a user