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");
145 printf(
"=========Supported App Layer Frames=========\n");
147 if (alprotos[a] != 1)
151 if (strcmp(alproto_name,
"http") == 0)
152 alproto_name =
"http1";
155 bool tcp_stream_once =
false;
156 for (uint32_t i = 0; i < 255; i++) {
160 if (!tcp_stream_once) {
161 printf(
"tcp: %s.stream\n", alproto_name);
162 tcp_stream_once =
true;
164 printf(
"tcp: %s.%s\n", alproto_name,
name);
166 for (uint32_t i = 0; i < 255; i++) {
170 printf(
"udp: %s.%s\n", alproto_name,
name);
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.
const char * AppLayerParserGetFrameNameById(uint8_t ipproto, AppProto alproto, const uint8_t id)
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)
int ListAppLayerFrames(const char *conf_filename)
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)