Go to the documentation of this file.
24 #ifndef __APP_LAYER_REGISTER_H__
25 #define __APP_LAYER_REGISTER_H__
45 void *(*StateGetTx)(
void *alstate, uint64_t tx_id);
61 void *(*LocalStorageAlloc)(void);
67 const AppProto alproto,
void *alstate, uint64_t min_tx_id,
70 AppLayerTxData *(*GetTxData)(
void *tx);
71 bool (*
ApplyTxConfig)(
void *state,
void *tx,
int mode, AppLayerTxConfig);
75 void (*
Truncate)(
void *state, uint8_t direction);
int(* StateGetEventInfo)(const char *event_name, int *event_id, AppLayerEventType *event_type)
const char * default_port
struct AppLayerParser AppLayerParser
AppLayerResult(* AppLayerParserFPtr)(Flow *f, void *protocol_state, AppLayerParserState *pstate, const uint8_t *buf, uint32_t buf_len, void *local_storage, const uint8_t flags)
Prototype for parsing functions.
enum AppLayerEventType_ AppLayerEventType
ProbingParserFPtr ProbeTS
AppProto(* ProbingParserFPtr)(Flow *f, uint8_t flags, const uint8_t *input, uint32_t input_len, uint8_t *rdir)
void(* Truncate)(void *state, uint8_t direction)
AppLayerParserFPtr ParseTS
Data structure to store app layer decoder events.
void(* StateFree)(void *)
int(* StateGetProgress)(void *alstate, uint8_t direction)
void(* StateTransactionFree)(void *, uint64_t)
ProbingParserFPtr ProbeTC
void(* LocalStorageFree)(void *)
int AppLayerRegisterParserAlias(const char *proto_name, const char *proto_alias)
int(* StateGetEventInfoById)(int event_id, const char **event_name, AppLayerEventType *event_type)
int AppLayerRegisterParser(const struct AppLayerParser *p, AppProto alproto)
App layer protocol registration function.
AppProto AppLayerRegisterProtocolDetection(const struct AppLayerParser *parser, int enable_default)
App layer protocol detection function.
AppLayerParserFPtr ParseTC
uint64_t(* StateGetTxCnt)(void *alstate)
int(* SetTxDetectState)(void *tx, DetectEngineState *)
AppLayerGetTxIterTuple(* GetTxIterator)(const uint8_t ipproto, const AppProto alproto, void *alstate, uint64_t min_tx_id, uint64_t max_tx_id, AppLayerGetTxIterState *istate)
bool(* ApplyTxConfig)(void *state, void *tx, int mode, AppLayerTxConfig)