From fccbd36d37dd630a76584b3a7ac6083f4c2eb3ed Mon Sep 17 00:00:00 2001 From: Jason Ish Date: Mon, 18 Nov 2019 12:58:06 -0600 Subject: [PATCH] dns: log addresses in flow direction, not packet Ticket #3340. https://redmine.openinfosecfoundation.org/issues/3340 --- src/output-json-dns.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/output-json-dns.c b/src/output-json-dns.c index 4045c97da3..7e915d4f90 100644 --- a/src/output-json-dns.c +++ b/src/output-json-dns.c @@ -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; -- 2.47.2