suricata
output-json-common.c File Reference
#include "suricata-common.h"
#include "debug.h"
#include "pkt-var.h"
#include "conf.h"
#include "threads.h"
#include "threadvars.h"
#include "tm-threads.h"
#include "util-unittest.h"
#include "util-buffer.h"
#include "util-debug.h"
#include "util-byte.h"
#include "output.h"
#include "output-json.h"
#include "app-layer.h"
#include "app-layer-parser.h"
Include dependency graph for output-json-common.c:

Go to the source code of this file.

Functions

OutputInitResult OutputJsonLogInitSub (ConfNode *conf, OutputCtx *parent_ctx)
 
TmEcode JsonLogThreadInit (ThreadVars *t, const void *initdata, void **data)
 
TmEcode JsonLogThreadDeinit (ThreadVars *t, void *data)
 

Detailed Description

Function Documentation

TmEcode JsonLogThreadDeinit ( ThreadVars t,
void *  data 
)

Definition at line 97 of file output-json-common.c.

References OutputJsonThreadCtx_::buffer, MemBufferFree(), SCFree, and TM_ECODE_OK.

Referenced by JsonNFSLogRegister(), and JsonSMBLogRegister().

Here is the call graph for this function:

Here is the caller graph for this function:

TmEcode JsonLogThreadInit ( ThreadVars t,
const void *  initdata,
void **  data 
)

Definition at line 75 of file output-json-common.c.

References OutputJsonThreadCtx_::buffer, OutputJsonThreadCtx_::ctx, JSON_OUTPUT_BUFFER_SIZE, MemBufferCreateNew(), SCCalloc, SCFree, TM_ECODE_FAILED, TM_ECODE_OK, and unlikely.

Referenced by JsonNFSLogRegister(), and JsonSMBLogRegister().

Here is the call graph for this function:

Here is the caller graph for this function:

OutputInitResult OutputJsonLogInitSub ( ConfNode conf,
OutputCtx parent_ctx 
)

Definition at line 50 of file output-json-common.c.

References OutputInitResult_::ctx, OutputCtx_::data, OutputCtx_::DeInit, OutputInitResult_::ok, SCCalloc, SCFree, and unlikely.

Referenced by JsonNFSAddMetadata(), and JsonSMBAddMetadata().

Here is the caller graph for this function: