Go to the documentation of this file.
24 #ifndef SURICATA_APP_LAYER_REGISTER_H
25 #define SURICATA_APP_LAYER_REGISTER_H
47 void *(*StateGetTx)(
void *alstate, uint64_t tx_id);
55 const char *event_name, uint8_t *event_id, AppLayerEventType *event_type);
57 uint8_t event_id,
const char **event_name, AppLayerEventType *event_type);
59 void *(*LocalStorageAlloc)(void);
65 const AppProto alproto,
void *alstate, uint64_t min_tx_id,
68 AppLayerStateData *(*GetStateData)(
void *state);
70 bool (*
ApplyTxConfig)(
void *state,
void *tx,
int mode, AppLayerTxConfig);
const char * default_port
struct AppLayerParser AppLayerParser
ProbingParserFPtr ProbeTS
AppProto(* ProbingParserFPtr)(Flow *f, uint8_t flags, const uint8_t *input, uint32_t input_len, uint8_t *rdir)
AppLayerParserFPtr ParseTS
void(* StateFree)(void *)
AppLayerResult(* AppLayerParserFPtr)(Flow *f, void *protocol_state, AppLayerParserState *pstate, StreamSlice stream_slice, void *local_storage)
Prototype for parsing functions.
int(* StateGetProgress)(void *alstate, uint8_t direction)
AppLayerParserGetFrameNameByIdFn GetFrameNameById
void(* StateTransactionFree)(void *, uint64_t)
ProbingParserFPtr ProbeTC
void(* LocalStorageFree)(void *)
int AppLayerRegisterParserAlias(const char *proto_name, const char *proto_alias)
int(* StateGetEventInfoById)(uint8_t event_id, const char **event_name, AppLayerEventType *event_type)
struct AppLayerTxData AppLayerTxData
const char *(* AppLayerParserGetFrameNameByIdFn)(const uint8_t id)
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
int(* StateGetEventInfo)(const char *event_name, uint8_t *event_id, AppLayerEventType *event_type)
uint64_t(* StateGetTxCnt)(void *alstate)
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)
int(* AppLayerParserGetFrameIdByNameFn)(const char *frame_name)
AppLayerParserGetFrameIdByNameFn GetFrameIdByName
AppLayerGetFileState(* GetTxFiles)(void *, uint8_t)