Go to the documentation of this file.
72 static bool IsBuiltIn(
const char *n)
74 if (strcmp(n,
"request_started") == 0 || strcmp(n,
"response_started") == 0) {
77 if (strcmp(n,
"request_complete") == 0 || strcmp(n,
"response_complete") == 0) {
95 printf(
"=========Supported App Layer Hooks=========\n");
101 if (strcmp(alproto_name,
"http") == 0)
102 alproto_name =
"http1";
105 const int max_progress_ts =
107 const int max_progress_tc =
110 printf(
"%s:%s\n", alproto_name,
"request_started");
111 for (
int p = 0; p <= max_progress_ts; p++) {
113 IPPROTO_TCP , a, p, STREAM_TOSERVER);
114 if (
name != NULL && !IsBuiltIn(
name)) {
115 printf(
"%s:%s\n", alproto_name,
name);
118 printf(
"%s:%s\n", alproto_name,
"request_complete");
120 printf(
"%s:%s\n", alproto_name,
"response_started");
121 for (
int p = 0; p <= max_progress_tc; p++) {
123 IPPROTO_TCP , a, p, STREAM_TOCLIENT);
124 if (
name != NULL && !IsBuiltIn(
name)) {
125 printf(
"%s:%s\n", alproto_name,
name);
128 printf(
"%s:%s\n", alproto_name,
"response_complete");
const char * AppLayerParserGetStateNameById(uint8_t ipproto, AppProto alproto, const int id, const uint8_t direction)
const char * AppProtoToString(AppProto alproto)
Maps the ALPROTO_*, to its string equivalent.
int AppLayerParserGetStateProgressCompletionStatus(AppProto alproto, uint8_t direction)
void AppLayerListSupportedProtocols(void)
int SCConfYamlLoadFile(const char *filename)
Load configuration from a YAML file.
int AppLayerSetup(void)
Setup the app layer.
void EngineModeSetIDS(void)
int ListAppLayerHooks(const char *conf_filename)
int ListAppLayerProtocols(const char *conf_filename)
int ListRuleProtocols(const char *conf_filename)
void AppLayerProtoDetectSupportedAppProtocols(AppProto *alprotos)
void SCLogLoadConfig(int daemon, int verbose, uint32_t userid, uint32_t groupid)
int ListKeywords(const char *keyword_info)
int SigTableList(const char *keyword)
void DetectListSupportedProtocols(void)