30#define ARRAY_CAP_STEP 16
42 const char *proto_name = NULL;
49 proto_name =
"http_any";
62 if (proto_name == NULL)
86 FatalError(
"Unable to allocate g_alproto_strings");
94 FatalError(
"Unable to reallocate g_alproto_strings");
AppProto g_alproto_strings_cap
AppProtoStringTuple * g_alproto_strings
AppProto AppProtoNewProtoFromString(const char *proto_name)
void AppProtoRegisterProtoString(AppProto alproto, const char *proto_name)
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.
#define SCRealloc(ptr, sz)
#define DEBUG_VALIDATE_BUG_ON(exp)