suricata
|
#include "suricata-common.h"
#include "suricata.h"
#include "stream.h"
#include "conf.h"
#include "rust.h"
#include "app-layer-detect-proto.h"
#include "app-layer-parser.h"
#include "app-layer-register.h"
Go to the source code of this file.
Functions | |
AppProto | AppLayerRegisterProtocolDetection (const struct AppLayerParser *p, int enable_default) |
App layer protocol detection function. | |
int | AppLayerRegisterParser (const struct AppLayerParser *p, AppProto alproto) |
App layer protocol registration function. | |
int | AppLayerRegisterParserAlias (const char *proto_name, const char *proto_alias) |
Parser registration functions.
Definition in file app-layer-register.c.
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 93 of file app-layer-register.c.
References AppLayerParserRegisterApplyTxConfigFunc(), AppLayerParserRegisterGetEventInfo(), AppLayerParserRegisterGetEventInfoById(), AppLayerParserRegisterGetFrameFuncs(), AppLayerParserRegisterGetStateFuncs(), AppLayerParserRegisterGetStateProgressFunc(), AppLayerParserRegisterGetTx(), AppLayerParserRegisterGetTxCnt(), AppLayerParserRegisterGetTxFilesFunc(), AppLayerParserRegisterGetTxIterator(), AppLayerParserRegisterLocalStorageFunc(), AppLayerParserRegisterOptionFlags(), AppLayerParserRegisterParser(), AppLayerParserRegisterStateDataFunc(), AppLayerParserRegisterStateFuncs(), AppLayerParserRegisterStateProgressCompletionStatus(), AppLayerParserRegisterTxDataFunc(), AppLayerParserRegisterTxFreeFunc(), AppLayerParser::ApplyTxConfig, AppProtoToString(), BUG_ON, AppLayerParser::complete_tc, AppLayerParser::complete_ts, FatalError, AppLayerParser::flags, AppLayerParser::GetFrameIdByName, AppLayerParser::GetFrameNameById, AppLayerParser::GetStateData, AppLayerParser::GetStateIdByName, AppLayerParser::GetStateNameById, AppLayerParser::GetTxData, AppLayerParser::GetTxFiles, AppLayerParser::GetTxIterator, AppLayerParser::ip_proto, AppLayerParser::LocalStorageAlloc, AppLayerParser::LocalStorageFree, AppLayerParser::name, AppLayerParser::ParseTC, AppLayerParser::ParseTS, SCLogDebug, AppLayerParser::StateAlloc, AppLayerParser::StateFree, AppLayerParser::StateGetEventInfo, AppLayerParser::StateGetEventInfoById, AppLayerParser::StateGetProgress, AppLayerParser::StateGetTx, AppLayerParser::StateGetTxCnt, and AppLayerParser::StateTransactionFree.
int AppLayerRegisterParserAlias | ( | const char * | proto_name, |
const char * | proto_alias | ||
) |
Definition at line 195 of file app-layer-register.c.
References AppLayerProtoDetectRegisterAlias().
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 39 of file app-layer-register.c.
References ALPROTO_FAILED, ALPROTO_UNKNOWN, AppLayerProtoDetectRegisterProtocol(), AppProtoToString(), BUG_ON, AppLayerParser::default_port, FatalError, AppLayerParser::ip_proto, AppLayerParser::max_depth, AppLayerParser::min_depth, AppLayerParser::name, AppLayerParser::ProbeTC, AppLayerParser::ProbeTS, RunmodeIsUnittests(), SCAppLayerProtoDetectPPParseConfPorts(), SCAppLayerProtoDetectPPRegister(), SCLogDebug, and StringToAppProto().