Go to the documentation of this file.
53 #define LOG_IKE_DEFAULT 0
54 #define LOG_IKE_EXTENDED (1 << 0)
80 void *tx, uint64_t tx_id)
90 if (!rs_ike_logger_log(state, tx, ike_ctx->
flags, jb)) {
104 static void OutputIKELogDeInitCtxSub(
OutputCtx *output_ctx)
136 output_ctx->
data = ikelog_ctx;
137 output_ctx->
DeInit = OutputIKELogDeInitCtxSub;
141 result.
ctx = output_ctx;
146 static TmEcode JsonIKELogThreadInit(
ThreadVars *t,
const void *initdata,
void **data)
153 if (initdata == NULL) {
154 SCLogDebug(
"Error getting context for EveLogIKE. \"initdata\" is NULL.");
164 *data = (
void *)thread;
175 if (thread == NULL) {
187 OutputIKELogInitSub,
ALPROTO_IKE, JsonIKELogger, JsonIKELogThreadInit,
188 JsonIKELogThreadDeinit, NULL);
void FreeEveThreadCtx(OutputJsonThreadCtx *ctx)
int OutputJsonBuilderBuffer(JsonBuilder *js, OutputJsonThreadCtx *ctx)
OutputJsonThreadCtx * CreateEveThreadCtx(ThreadVars *t, OutputJsonCtx *ctx)
struct IKETransaction_ IKETransaction
int ConfValIsTrue(const char *val)
Check if a value is true.
void * FlowGetAppState(const Flow *f)
bool EveIKEAddMetadata(const Flow *f, uint64_t tx_id, JsonBuilder *js)
void AppLayerParserRegisterLogger(uint8_t ipproto, AppProto alproto)
JsonBuilder * CreateEveHeader(const Packet *p, enum OutputJsonLogDirection dir, const char *event_type, JsonAddrInfo *addr, OutputJsonCtx *eve_ctx)
void JsonIKELogRegister(void)
Per thread variable structure.
void * AppLayerParserGetTx(uint8_t ipproto, AppProto alproto, void *alstate, uint64_t tx_id)
void(* DeInit)(struct OutputCtx_ *)
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, ThreadExitPrintStatsFunc ThreadExitPrintStats)
struct LogIKELogThread_ LogIKELogThread
OutputJsonThreadCtx * ctx
struct LogIKEFileCtx_ LogIKEFileCtx
struct IKEState_ IKEState
LogIKEFileCtx * ikelog_ctx
const char * ConfNodeLookupChildValue(const ConfNode *node, const char *name)
Lookup the value of a child configuration node by name.