Go to the documentation of this file.
36 SMBState *state = FlowGetAppState(f);
40 return rs_smb_log_json_response(jb, state, tx);
46 static int JsonSMBLogger(
ThreadVars *
tv,
void *thread_data,
47 const Packet *p,
Flow *f,
void *state,
void *tx, uint64_t tx_id)
56 jb_open_object(jb,
"smb");
57 if (!rs_smb_log_json_response(jb, state, tx)) {
OutputInitResult OutputJsonLogInitSub(ConfNode *conf, OutputCtx *parent_ctx)
void JsonSMBLogRegister(void)
TmEcode JsonLogThreadInit(ThreadVars *t, const void *initdata, void **data)
int OutputJsonBuilderBuffer(JsonBuilder *js, OutputJsonThreadCtx *ctx)
void OutputRegisterTxSubModule(LoggerId id, const char *parent_name, const char *name, const char *conf_name, OutputInitSubFunc InitFunc, AppProto alproto, TxLogger TxLogFunc, ThreadInitFunc ThreadInit, ThreadDeinitFunc ThreadDeinit)
void AppLayerParserRegisterLogger(uint8_t ipproto, AppProto alproto)
JsonBuilder * CreateEveHeader(const Packet *p, enum OutputJsonLogDirection dir, const char *event_type, JsonAddrInfo *addr, OutputJsonCtx *eve_ctx)
Per thread variable structure.
void * AppLayerParserGetTx(uint8_t ipproto, AppProto alproto, void *alstate, uint64_t tx_id)
TmEcode JsonLogThreadDeinit(ThreadVars *t, void *data)
bool EveSMBAddMetadata(const Flow *f, uint64_t tx_id, JsonBuilder *jb)