Go to the documentation of this file.
53 #define LOG_IKE_DEFAULT 0
54 #define LOG_IKE_EXTENDED (1 << 0)
81 void *tx, uint64_t tx_id)
91 if (!rs_ike_logger_log(state, tx, ike_ctx->
flags, jb)) {
106 static void OutputIKELogDeInitCtxSub(
OutputCtx *output_ctx)
138 output_ctx->
data = ikelog_ctx;
139 output_ctx->
DeInit = OutputIKELogDeInitCtxSub;
143 result.
ctx = output_ctx;
148 static TmEcode JsonIKELogThreadInit(
ThreadVars *t,
const void *initdata,
void **data)
155 if (initdata == NULL) {
156 SCLogDebug(
"Error getting context for EveLogIKE. \"initdata\" is NULL.");
171 *data = (
void *)thread;
175 if (thread->
buffer != NULL) {
185 if (thread == NULL) {
188 if (thread->
buffer != NULL) {
199 OutputIKELogInitSub,
ALPROTO_IKE, JsonIKELogger, JsonIKELogThreadInit,
200 JsonIKELogThreadDeinit, NULL);
#define JSON_OUTPUT_BUFFER_SIZE
int OutputJsonBuilderBuffer(JsonBuilder *js, LogFileCtx *file_ctx, MemBuffer **buffer)
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.
LogFileCtx * LogFileEnsureExists(LogFileCtx *parent_ctx, int thread_id)
LogFileEnsureExists() Ensure a log file context for the thread exists.
void * AppLayerParserGetTx(uint8_t ipproto, AppProto alproto, void *alstate, uint64_t tx_id)
#define MemBufferReset(mem_buffer)
Reset the mem buffer.
void(* DeInit)(struct OutputCtx_ *)
void MemBufferFree(MemBuffer *buffer)
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
struct LogIKEFileCtx_ LogIKEFileCtx
struct IKEState_ IKEState
LogIKEFileCtx * ikelog_ctx
MemBuffer * MemBufferCreateNew(uint32_t size)
const char * ConfNodeLookupChildValue(const ConfNode *node, const char *name)
Lookup the value of a child configuration node by name.