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)
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)
int OutputJsonBuilderBuffer(ThreadVars *tv, const Packet *p, Flow *f, JsonBuilder *js, OutputJsonThreadCtx *ctx)
TmEcode JsonLogThreadDeinit(ThreadVars *t, void *data)
bool EveSMBAddMetadata(const Flow *f, uint64_t tx_id, JsonBuilder *jb)