Go to the documentation of this file.
58 static bool IsBuiltIn(
const char *n)
60 if (strcmp(n,
"request_started") == 0 || strcmp(n,
"response_started") == 0) {
63 if (strcmp(n,
"request_complete") == 0 || strcmp(n,
"response_complete") == 0) {
81 printf(
"=========Supported App Layer Hooks=========\n");
87 if (strcmp(alproto_name,
"http") == 0)
88 alproto_name =
"http1";
91 const int max_progress_ts =
93 const int max_progress_tc =
96 printf(
"%s:%s\n", alproto_name,
"request_started");
97 for (
int p = 0; p <= max_progress_ts; p++) {
99 IPPROTO_TCP , a, p, STREAM_TOSERVER);
100 if (
name != NULL && !IsBuiltIn(
name)) {
101 printf(
"%s:%s\n", alproto_name,
name);
104 printf(
"%s:%s\n", alproto_name,
"request_complete");
106 printf(
"%s:%s\n", alproto_name,
"response_started");
107 for (
int p = 0; p <= max_progress_tc; p++) {
109 IPPROTO_TCP , a, p, STREAM_TOCLIENT);
110 if (
name != NULL && !IsBuiltIn(
name)) {
111 printf(
"%s:%s\n", alproto_name,
name);
114 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)
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)