suricata
|
Go to the source code of this file.
Data Structures | |
struct | AppLayerParser |
Typedefs | |
typedef struct AppLayerParser | AppLayerParser |
Functions | |
AppProto | AppLayerRegisterProtocolDetection (const struct AppLayerParser *parser, int enable_default) |
App layer protocol detection function. More... | |
int | AppLayerRegisterParser (const struct AppLayerParser *p, AppProto alproto) |
App layer protocol registration function. More... | |
Definition in file app-layer-register.h.
typedef struct AppLayerParser AppLayerParser |
int AppLayerRegisterParser | ( | const struct AppLayerParser * | p, |
AppProto | alproto | ||
) |
App layer protocol registration function.
parser | The parser declaration structure. |
alproto | The application layer protocol identifier. |
0 | if successful. On error, this function never returns. |
Definition at line 89 of file app-layer-register.c.
References ALPROTO_FAILED, ALPROTO_UNKNOWN, AppLayerParserRegisterDetectFlagsFuncs(), AppLayerParserRegisterDetectStateFuncs(), AppLayerParserRegisterGetEventInfo(), AppLayerParserRegisterGetEventInfoById(), AppLayerParserRegisterGetEventsFunc(), AppLayerParserRegisterGetFilesFunc(), AppLayerParserRegisterGetStateProgressCompletionStatus(), AppLayerParserRegisterGetStateProgressFunc(), AppLayerParserRegisterGetTx(), AppLayerParserRegisterGetTxCnt(), AppLayerParserRegisterGetTxIterator(), AppLayerParserRegisterLocalStorageFunc(), AppLayerParserRegisterLoggerFuncs(), AppLayerParserRegisterMpmIDsFuncs(), AppLayerParserRegisterParser(), AppLayerParserRegisterStateFuncs(), AppLayerParserRegisterTxFreeFunc(), FatalError, AppLayerParser::GetTxDetectFlags, AppLayerParser::GetTxDetectState, AppLayerParser::GetTxIterator, AppLayerParser::GetTxMpmIDs, AppLayerParser::ip_proto, AppLayerParser::LocalStorageAlloc, AppLayerParser::LocalStorageFree, AppLayerParser::name, AppLayerParser::ParseTC, AppLayerParser::ParseTS, SC_ERR_FATAL, SCLogDebug, AppLayerParser::SetTxDetectFlags, AppLayerParser::SetTxDetectState, AppLayerParser::SetTxMpmIDs, AppLayerParser::StateAlloc, AppLayerParser::StateFree, AppLayerParser::StateGetEventInfo, AppLayerParser::StateGetEventInfoById, AppLayerParser::StateGetEvents, AppLayerParser::StateGetFiles, AppLayerParser::StateGetProgress, AppLayerParser::StateGetProgressCompletionStatus, AppLayerParser::StateGetTx, AppLayerParser::StateGetTxCnt, AppLayerParser::StateGetTxLogged, AppLayerParser::StateSetTxLogged, AppLayerParser::StateTransactionFree, STREAM_TOCLIENT, and STREAM_TOSERVER.
AppProto AppLayerRegisterProtocolDetection | ( | const struct AppLayerParser * | parser, |
int | enable_default | ||
) |
App layer protocol detection function.
parser | The parser declaration structure. |
enable_default | A boolean to indicate if default port configuration should be used if none given |
The | AppProto constant if successful. On error, this function never returns. |
Definition at line 37 of file app-layer-register.c.
References ALPROTO_FAILED, ALPROTO_UNKNOWN, AppLayerProtoDetectPPParseConfPorts(), AppLayerProtoDetectPPRegister(), AppLayerProtoDetectRegisterProtocol(), AppLayerParser::default_port, FatalError, AppLayerParser::ip_proto, AppLayerParser::max_depth, AppLayerParser::min_depth, AppLayerParser::name, AppLayerParser::ProbeTC, AppLayerParser::ProbeTS, RunmodeIsUnittests(), SC_ERR_FATAL, SCLogDebug, STREAM_TOSERVER, and StringToAppProto().