From: Jason Ish Date: Mon, 18 Nov 2019 18:58:06 +0000 (-0600) Subject: dns: log addresses in flow direction, not packet X-Git-Tag: suricata-5.0.1~102 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F4375%2Fhead;p=thirdparty%2Fsuricata.git dns: log addresses in flow direction, not packet Ticket #3340. https://redmine.openinfosecfoundation.org/issues/3340 --- 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;