27static int JsonDCERPCLogger(
ThreadVars *
tv,
void *thread_data,
28 const Packet *p,
Flow *f,
void *state,
void *tx, uint64_t tx_id)
37 SCJbOpenObject(jb,
"dcerpc");
38 if (p->
proto == IPPROTO_TCP) {
39 if (!SCDcerpcLogJsonRecordTcp(state, tx, jb)) {
43 if (!SCDcerpcLogJsonRecordUdp(state, tx, jb)) {
49 MemBufferReset(thread->
buffer);
void SCAppLayerParserRegisterLogger(uint8_t ipproto, AppProto alproto)
OutputInitResult OutputJsonLogInitSub(SCConfNode *conf, OutputCtx *parent_ctx)
TmEcode JsonLogThreadInit(ThreadVars *t, const void *initdata, void **data)
TmEcode JsonLogThreadDeinit(ThreadVars *t, void *data)
void JsonDCERPCLogRegister(void)
SCJsonBuilder * CreateEveHeader(const Packet *p, enum SCOutputJsonLogDirection dir, const char *event_type, JsonAddrInfo *addr, OutputJsonCtx *eve_ctx)
void OutputJsonBuilderBuffer(ThreadVars *tv, const Packet *p, Flow *f, SCJsonBuilder *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)
Per thread variable structure.