suricata
|
Go to the source code of this file.
Typedefs | |
typedef uint16_t | AppProto |
Functions | |
const char * | AppProtoToString (AppProto alproto) |
Maps the ALPROTO_*, to its string equivalent. More... | |
AppProto | StringToAppProto (const char *proto_name) |
Maps a string to its ALPROTO_* equivalent. More... | |
void | AppProtoRegisterProtoString (AppProto alproto, const char *proto_name) |
Variables | |
AppProto | g_alproto_max |
Definition in file app-layer-protos.h.
typedef uint16_t AppProto |
Definition at line 85 of file app-layer-protos.h.
enum AppProtoEnum |
Definition at line 28 of file app-layer-protos.h.
void AppProtoRegisterProtoString | ( | AppProto | alproto, |
const char * | proto_name | ||
) |
Definition at line 74 of file app-layer-protos.c.
References AppProtoStringTuple::alproto, ALPROTO_MAX_STATIC, ARRAY_CAP_STEP, FatalError, g_alproto_max, g_alproto_strings, g_alproto_strings_cap, SCCalloc, SCRealloc, and AppProtoStringTuple::str.
const char* AppProtoToString | ( | AppProto | alproto | ) |
Maps the ALPROTO_*, to its string equivalent.
alproto | App layer protocol id. |
String | equivalent for the alproto. |
Definition at line 40 of file app-layer-protos.c.
References ALPROTO_HTTP, ALPROTO_HTTP1, BUG_ON, g_alproto_max, g_alproto_strings, and AppProtoStringTuple::str.
Referenced by AppLayerRegisterProtocolDetection(), DetectEngineFrameMpmRegister(), DetectFrameMpmRegister(), EngineAnalysisRules2(), EveAddAppProto(), LLVMFuzzerTestOneInput(), RulesDumpMatchArray(), and RulesDumpTxMatchArray().
AppProto StringToAppProto | ( | const char * | proto_name | ) |
Maps a string to its ALPROTO_* equivalent.
String | equivalent for the alproto. |
alproto | App layer protocol id, or ALPROTO_UNKNOWN. |
Definition at line 60 of file app-layer-protos.c.
References AppProtoStringTuple::alproto, ALPROTO_UNKNOWN, g_alproto_max, g_alproto_strings, and str.
Referenced by AppLayerRegisterProtocolDetection(), and LLVMFuzzerTestOneInput().
AppProto g_alproto_max |
Definition at line 29 of file app-layer-protos.c.
Referenced by AppLayerListSupportedProtocols(), AppLayerParserPostStreamSetup(), AppLayerParserRegisterUnittests(), AppLayerParserThreadCtxAlloc(), AppLayerParserThreadCtxFree(), AppLayerProtoDetectGetProto(), AppLayerProtoDetectSupportedAppProtocols(), AppLayerRegisterThreadCounters(), AppLayerSetupCounters(), AppProtoRegisterProtoString(), AppProtoToString(), DetectFileRegisterFileProtocols(), FrameConfigEnableAll(), LLVMFuzzerTestOneInput(), RunModeInitializeOutputs(), SCEveJsonSimpleGetLogger(), and StringToAppProto().