]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
eve/smb: use flow direction for tuple 3440/head
authorVictor Julien <victor@inliniac.net>
Thu, 2 Aug 2018 13:10:15 +0000 (15:10 +0200)
committerVictor Julien <victor@inliniac.net>
Fri, 3 Aug 2018 07:52:35 +0000 (09:52 +0200)
src/output-json-smb.c

index 4be437611343b611e9b7ad2c5cef48397232c996..e31dcb89936eacef682c86e61417a98c22b9e6da 100644 (file)
@@ -77,11 +77,10 @@ json_t *JsonSMBAddMetadata(const Flow *f, uint64_t tx_id)
 static int JsonSMBLogger(ThreadVars *tv, void *thread_data,
     const Packet *p, Flow *f, void *state, void *tx, uint64_t tx_id)
 {
-    //SMBTransaction *smbtx = tx;
     LogSMBLogThread *thread = thread_data;
     json_t *js, *smbjs;
 
-    js = CreateJSONHeader((Packet *)p, 0, "smb");
+    js = CreateJSONHeader(p, LOG_DIR_FLOW, "smb");
     if (unlikely(js == NULL)) {
         return TM_ECODE_FAILED;
     }