From: Shravan Rangarajuvenkata (shrarang) Date: Tue, 22 Jun 2021 15:15:26 +0000 (+0000) Subject: Merge pull request #2949 in SNORT/snort3 from ~RDEMPSTE/snort3:dns to master X-Git-Tag: 3.1.7.0~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca90767c67a4ff165565ca76528b2bd8e14f6549;p=thirdparty%2Fsnort3.git Merge pull request #2949 in SNORT/snort3 from ~RDEMPSTE/snort3:dns to master Squashed commit of the following: commit 0cb6be3a1f0d87e5f43cf1a812035bff6acb1309 Author: Ron Dempster (rdempste) Date: Mon Jun 21 16:09:49 2021 -0400 appid: Update the DNS detector to support the all record request --- diff --git a/src/network_inspectors/appid/detector_plugins/detector_dns.cc b/src/network_inspectors/appid/detector_plugins/detector_dns.cc index 26ca10cd8..fd33cb34d 100644 --- a/src/network_inspectors/appid/detector_plugins/detector_dns.cc +++ b/src/network_inspectors/appid/detector_plugins/detector_dns.cc @@ -51,6 +51,7 @@ using namespace snort; #define PATTERN_MX_REC 15 #define PATTERN_SOA_REC 6 #define PATTERN_NS_REC 2 +#define PATTERN_ANY_REC 255 #define PATTERN_PTR_REC 12 #pragma pack(1) @@ -355,6 +356,7 @@ int DnsValidator::dns_validate_query(const uint8_t* data, uint16_t* offset, uint case PATTERN_MX_REC: case PATTERN_SOA_REC: case PATTERN_NS_REC: + case PATTERN_ANY_REC: ret = add_dns_query_info(asd, id, host, host_len, host_offset, record_type, change_bits); break; case PATTERN_PTR_REC: