suricata
|
Go to the source code of this file.
Data Structures | |
struct | AppProtoStringTuple |
Typedefs | |
typedef struct AppProtoStringTuple | AppProtoStringTuple |
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... | |
Variables | |
const AppProtoStringTuple | AppProtoStrings [ALPROTO_MAX] |
Definition in file app-layer-protos.c.
typedef struct AppProtoStringTuple AppProtoStringTuple |
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 75 of file app-layer-protos.c.
References ALPROTO_HTTP, ALPROTO_HTTP1, AppProtoStrings, ARRAY_SIZE, BUG_ON, and AppProtoStringTuple::str.
Referenced by AppLayerRegisterParser(), AppLayerRegisterProtocolDetection(), DetectEngineFrameMpmRegister(), DetectFrameMpmRegister(), EngineAnalysisRules2(), EveAddAppProto(), LLVMFuzzerInitialize(), 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 95 of file app-layer-protos.c.
References ALPROTO_UNKNOWN, AppProtoStrings, ARRAY_SIZE, and str.
Referenced by AppLayerRegisterProtocolDetection(), and LLVMFuzzerInitialize().
const AppProtoStringTuple AppProtoStrings[ALPROTO_MAX] |
Definition at line 33 of file app-layer-protos.c.
Referenced by AppProtoToString(), and StringToAppProto().