Go to the documentation of this file.
44 return SCMdnsLogJson(txptr, js);
48 void *alstate,
void *txptr, uint64_t tx_id)
58 if (SCMdnsLogJson(txptr, jb)) {
66 static TmEcode SCDnsLogThreadInit(
ThreadVars *t,
const void *initdata,
void **data)
72 if (initdata == NULL) {
73 SCLogDebug(
"Error getting log context for eve-log.mdns. \"initdata\" argument NULL");
107 static void DnsLogDeInitCtxSub(
OutputCtx *output_ctx)
131 dnslog_ctx->
version = DNS_LOG_VERSION_3;
137 dnslog_ctx->
flags = ~0ULL;
145 output_ctx->
data = dnslog_ctx;
146 output_ctx->
DeInit = DnsLogDeInitCtxSub;
150 result.
ctx = output_ctx;
158 DnsLogInitCtxSub,
ALPROTO_MDNS, JsonMdnsLogger, SCDnsLogThreadInit,
159 SCDnsLogThreadDeinit);
int SCConfValIsTrue(const char *val)
Check if a value is true.
struct SCDnsLogFileCtx_ SCDnsLogFileCtx
void FreeEveThreadCtx(OutputJsonThreadCtx *ctx)
SCJsonBuilder * CreateEveHeader(const Packet *p, enum SCOutputJsonLogDirection dir, const char *event_type, JsonAddrInfo *addr, OutputJsonCtx *eve_ctx)
OutputJsonThreadCtx * CreateEveThreadCtx(ThreadVars *t, OutputJsonCtx *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 OutputJsonBuilderBuffer(ThreadVars *tv, const Packet *p, Flow *f, SCJsonBuilder *js, OutputJsonThreadCtx *ctx)
const char * SCConfNodeLookupChildValue(const SCConfNode *node, const char *name)
Lookup the value of a child configuration node by name.
struct SCDnsLogThread_ SCDnsLogThread
void SCAppLayerParserRegisterLogger(uint8_t ipproto, AppProto alproto)
Per thread variable structure.
void JsonMdnsLogRegister(void)
SCDnsLogFileCtx * dnslog_ctx
void(* DeInit)(struct OutputCtx_ *)
OutputJsonThreadCtx * ctx
bool AlertJsonMdns(void *txptr, SCJsonBuilder *js)