]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
Merge pull request #2949 in SNORT/snort3 from ~RDEMPSTE/snort3:dns to master
authorShravan Rangarajuvenkata (shrarang) <shrarang@cisco.com>
Tue, 22 Jun 2021 15:15:26 +0000 (15:15 +0000)
committerShravan Rangarajuvenkata (shrarang) <shrarang@cisco.com>
Tue, 22 Jun 2021 15:15:26 +0000 (15:15 +0000)
Squashed commit of the following:

commit 0cb6be3a1f0d87e5f43cf1a812035bff6acb1309
Author: Ron Dempster (rdempste) <rdempste@cisco.com>
Date:   Mon Jun 21 16:09:49 2021 -0400

    appid: Update the DNS detector to support the all record request

src/network_inspectors/appid/detector_plugins/detector_dns.cc

index 26ca10cd8e5562d4cfe4bc779cadea0b2922a039..fd33cb34d0f3fc388d98860c375e61ea716b6639 100644 (file)
@@ -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: