From: Jason Ish Date: Fri, 7 Dec 2018 15:25:56 +0000 (-0600) Subject: rust/dns/v2 - log rrtype in response X-Git-Tag: suricata-4.1.1~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b7083bc3a8ec3f9ca78f12f37cc6974b1783c30d;p=thirdparty%2Fsuricata.git rust/dns/v2 - log rrtype in response Redmine issue: https://redmine.openinfosecfoundation.org/issues/2723 --- diff --git a/rust/src/dns/log.rs b/rust/src/dns/log.rs index 9a34c5b997..26d0fa00dc 100644 --- a/rust/src/dns/log.rs +++ b/rust/src/dns/log.rs @@ -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));