suricata
|
Go to the source code of this file.
Data Structures | |
struct | AppProtoStringTuple |
Macros | |
#define | ARRAY_CAP_STEP 16 |
Typedefs | |
typedef struct AppProtoStringTuple | AppProtoStringTuple |
Functions | |
const char * | AppProtoToString (AppProto alproto) |
Maps the ALPROTO_*, to its string equivalent. | |
AppProto | StringToAppProto (const char *proto_name) |
Maps a string to its ALPROTO_* equivalent. | |
AppProto | AppProtoNewProtoFromString (const char *proto_name) |
void | AppProtoRegisterProtoString (AppProto alproto, const char *proto_name) |
Variables | |
AppProto | g_alproto_max = ALPROTO_MAX_STATIC |
AppProto | g_alproto_strings_cap = ALPROTO_MAX_STATIC |
AppProtoStringTuple * | g_alproto_strings = NULL |
Definition in file app-layer-protos.c.
#define ARRAY_CAP_STEP 16 |
Definition at line 30 of file app-layer-protos.c.
typedef struct AppProtoStringTuple AppProtoStringTuple |
AppProto AppProtoNewProtoFromString | ( | const char * | proto_name | ) |
Definition at line 74 of file app-layer-protos.c.
References AppProtoRegisterProtoString(), and g_alproto_max.
void AppProtoRegisterProtoString | ( | AppProto | alproto, |
const char * | proto_name | ||
) |
Definition at line 80 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.
Referenced by AppProtoNewProtoFromString().
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, DEBUG_VALIDATE_BUG_ON, g_alproto_max, g_alproto_strings, and AppProtoStringTuple::str.
Referenced by AppLayerHandleTCPData(), AppLayerParserParse(), AppLayerRegisterParser(), AppLayerRegisterProtocolDetection(), DetectEngineFrameMpmRegister(), DetectFrameMpmRegister(), DetectRegisterAppLayerHookLists(), DetectRunPrefilterTx(), EngineAnalysisRules(), EngineAnalysisRules2(), EveAddAppProto(), FirewallAnalyzer(), JsonBuildFileInfoRecord(), ListAppLayerHooks(), LLVMFuzzerTestOneInput(), MpmStoreReportStats(), OutputRegisterLoggers(), PrefilterSetupRuleGroup(), RulesDumpMatchArray(), RulesDumpTxMatchArray(), RunModeInitializeOutputs(), SCDetectSignatureSetAppProto(), SCOutputRegisterTxLogger(), and SCProfilingDumpPacketStats().
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 AppLayerProtoDetectGetProtoByName(), AppLayerRegisterProtocolDetection(), and LLVMFuzzerTestOneInput().
AppProto g_alproto_max = ALPROTO_MAX_STATIC |
Definition at line 29 of file app-layer-protos.c.
Referenced by AppLayerListSupportedProtocols(), AppLayerParserPostStreamSetup(), AppLayerParserRegisterStateFuncs(), AppLayerParserRegisterUnittests(), AppLayerParserSetup(), AppLayerParserThreadCtxAlloc(), AppLayerParserThreadCtxFree(), AppLayerProtoDetectGetProto(), AppLayerProtoDetectGetProtoByName(), AppLayerProtoDetectRegisterProtocol(), AppLayerProtoDetectSetup(), AppLayerProtoDetectSupportedAppProtocols(), AppLayerRegisterThreadCounters(), AppLayerSetupCounters(), AppProtoNewProtoFromString(), AppProtoRegisterProtoString(), AppProtoToString(), DetectFileRegisterFileProtocols(), DetectRegisterAppLayerHookLists(), FirewallAnalyzer(), FrameConfigEnableAll(), FrameConfigInit(), ListAppLayerHooks(), LLVMFuzzerTestOneInput(), OutputRegisterRootLoggers(), OutputTxLoggerRegister(), OutputTxShutdown(), PrefilterSetupRuleGroup(), RunModeInitializeOutputs(), SCEveJsonSimpleGetLogger(), SCOutputRegisterTxLogger(), SCProfilePacketStart(), SCProfilingDumpPacketStats(), SCProfilingInit(), SCProfilingPrintPacketProfile(), and StringToAppProto().
AppProtoStringTuple* g_alproto_strings = NULL |
Definition at line 38 of file app-layer-protos.c.
Referenced by AppProtoRegisterProtoString(), AppProtoToString(), and StringToAppProto().
AppProto g_alproto_strings_cap = ALPROTO_MAX_STATIC |
Definition at line 31 of file app-layer-protos.c.
Referenced by AppProtoRegisterProtoString().