Go to the documentation of this file.
52 #define LOG_IKE_DEFAULT 0
53 #define LOG_IKE_EXTENDED (1 << 0)
67 IKEState *state = FlowGetAppState(f);
79 void *tx, uint64_t tx_id)
89 if (!rs_ike_logger_log(state, tx, ike_ctx->
flags, jb)) {
103 static void OutputIKELogDeInitCtxSub(
OutputCtx *output_ctx)
135 output_ctx->
data = ikelog_ctx;
136 output_ctx->
DeInit = OutputIKELogDeInitCtxSub;
140 result.
ctx = output_ctx;
145 static TmEcode JsonIKELogThreadInit(
ThreadVars *t,
const void *initdata,
void **data)
152 if (initdata == NULL) {
153 SCLogDebug(
"Error getting context for EveLogIKE. \"initdata\" is NULL.");
163 *data = (
void *)thread;
174 if (thread == NULL) {
186 OutputIKELogInitSub,
ALPROTO_IKE, JsonIKELogger, JsonIKELogThreadInit,
187 JsonIKELogThreadDeinit);
void FreeEveThreadCtx(OutputJsonThreadCtx *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)
struct IKETransaction_ IKETransaction
int ConfValIsTrue(const char *val)
Check if a value is true.
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_ *)
int OutputJsonBuilderBuffer(ThreadVars *tv, const Packet *p, Flow *f, JsonBuilder *js, OutputJsonThreadCtx *ctx)
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.