Go to the documentation of this file.
31 #define ARRAY_CAP_STEP 16
43 const char *proto_name = NULL;
50 proto_name =
"http_any";
63 if (proto_name == NULL)
87 FatalError(
"Unable to allocate g_alproto_strings");
95 FatalError(
"Unable to reallocate g_alproto_strings");
const char * AppProtoToString(AppProto alproto)
Maps the ALPROTO_*, to its string equivalent.
AppProtoStringTuple * g_alproto_strings
void AppProtoRegisterProtoString(AppProto alproto, const char *proto_name)
AppProto StringToAppProto(const char *proto_name)
Maps a string to its ALPROTO_* equivalent.
#define SCRealloc(ptr, sz)
struct AppProtoStringTuple AppProtoStringTuple
AppProto AppProtoNewProtoFromString(const char *proto_name)
int SCAppLayerParserReallocCtx(AppProto alproto)
AppProto g_alproto_strings_cap
#define DEBUG_VALIDATE_BUG_ON(exp)