]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
rust/dns/v2 - log rrtype in response
authorJason Ish <ish@unx.ca>
Fri, 7 Dec 2018 15:25:56 +0000 (09:25 -0600)
committerVictor Julien <victor@inliniac.net>
Mon, 10 Dec 2018 13:32:27 +0000 (14:32 +0100)
Redmine issue:
https://redmine.openinfosecfoundation.org/issues/2723

rust/src/dns/log.rs

index 9a34c5b997ba1ecd1502d3e8d8d1e113390ee3f3..26d0fa00dc6c852baf7e42287129cb98faa2d612 100644 (file)
@@ -474,6 +474,7 @@ fn dns_log_json_answer(response: &DNSResponse, flags: u64) -> Json
 
     for query in &response.queries {
         js.set_string_from_bytes("rrname", &query.name);
+        js.set_string("rrtype", &dns_rrtype_string(query.rrtype));
         break;
     }
     js.set_string("rcode", &dns_rcode_string(header.flags));