]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
dns: log addresses in flow direction, not packet 4375/head
authorJason Ish <jason.ish@oisf.net>
Mon, 18 Nov 2019 18:58:06 +0000 (12:58 -0600)
committerJason Ish <jason.ish@oisf.net>
Mon, 18 Nov 2019 18:58:06 +0000 (12:58 -0600)
Ticket #3340.
https://redmine.openinfosecfoundation.org/issues/3340

src/output-json-dns.c

index 4045c97da39bee541ed974ee34aecda38c01442a..7e915d4f903159f82d5a8360e90232f203e2e745 100644 (file)
@@ -309,7 +309,7 @@ static int JsonDnsLoggerToServer(ThreadVars *tv, void *thread_data,
     }
 
     for (uint16_t i = 0; i < 0xffff; i++) {
-        js = CreateJSONHeader(p, LOG_DIR_PACKET, "dns");
+        js = CreateJSONHeader(p, LOG_DIR_FLOW, "dns");
         if (unlikely(js == NULL)) {
             return TM_ECODE_OK;
         }
@@ -341,7 +341,7 @@ static int JsonDnsLoggerToClient(ThreadVars *tv, void *thread_data,
         return TM_ECODE_OK;
     }
 
-    json_t *js = CreateJSONHeader(p, LOG_DIR_PACKET, "dns");
+    json_t *js = CreateJSONHeader(p, LOG_DIR_FLOW, "dns");
     if (unlikely(js == NULL))
         return TM_ECODE_OK;