]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
dns: add dns flag to dns request logging
authorJason Ish <jason.ish@oisf.net>
Tue, 21 Dec 2021 22:49:21 +0000 (16:49 -0600)
committerJason Ish <jason.ish@oisf.net>
Tue, 21 Dec 2021 22:50:35 +0000 (16:50 -0600)
Ticket #4515

rust/src/dns/log.rs

index a63a784e0760a956c5184cf57189a7c66d562bac..6b09dfb901a2aeecdd5588fbfb37242684e4a962 100644 (file)
@@ -629,6 +629,9 @@ fn dns_log_query(tx: &mut DNSTransaction,
                 jb.set_string_from_bytes("rrname", &query.name)?;
                 jb.set_string("rrtype", &dns_rrtype_string(query.rrtype))?;
                 jb.set_uint("tx_id", tx.id - 1)?;
+                if request.header.flags & 0x0040 != 0 {
+                    jb.set_bool("z", true)?;
+                }
                 return Ok(true);
             }
         }