Go to the documentation of this file.
72 static bool IsBuiltIn(
const char *n)
74 return strcmp(n,
"request_started") == 0 || strcmp(n,
"response_started") == 0 ||
75 strcmp(n,
"request_complete") == 0 || strcmp(n,
"response_complete") == 0;
90 printf(
"=========Supported App Layer Hooks=========\n");
97 for (uint8_t sub_state = 1; sub_state <= max_sub_state; sub_state++) {
100 for (uint8_t state = 0; state <= max_progress; state++) {
102 a, sub_state, state, STREAM_TOSERVER);
107 for (uint8_t state = 0; state <= max_progress; state++) {
109 a, sub_state, state, STREAM_TOCLIENT);
117 if (strcmp(alproto_name,
"http") == 0)
118 alproto_name =
"http1";
121 const int max_progress_ts =
123 const int max_progress_tc =
126 printf(
"%s:%s\n", alproto_name,
"request_started");
127 for (
int p = 0;
p <= max_progress_ts;
p++) {
129 IPPROTO_TCP , a,
p, STREAM_TOSERVER);
130 if (
name != NULL && !IsBuiltIn(
name)) {
131 printf(
"%s:%s\n", alproto_name,
name);
134 printf(
"%s:%s\n", alproto_name,
"request_complete");
136 printf(
"%s:%s\n", alproto_name,
"response_started");
137 for (
int p = 0;
p <= max_progress_tc;
p++) {
139 IPPROTO_TCP , a,
p, STREAM_TOCLIENT);
140 if (
name != NULL && !IsBuiltIn(
name)) {
141 printf(
"%s:%s\n", alproto_name,
name);
144 printf(
"%s:%s\n", alproto_name,
"response_complete");
162 printf(
"=========Supported App Layer Frames=========\n");
164 if (alprotos[a] != 1)
168 if (strcmp(alproto_name,
"http") == 0)
169 alproto_name =
"http1";
172 bool tcp_stream_once =
false;
173 for (uint32_t i = 0; i < 255; i++) {
177 if (!tcp_stream_once) {
178 printf(
"tcp: %s.stream\n", alproto_name);
179 tcp_stream_once =
true;
181 printf(
"tcp: %s.%s\n", alproto_name,
name);
183 for (uint32_t i = 0; i < 255; i++) {
187 printf(
"udp: %s.%s\n", alproto_name,
name);
const char * AppLayerParserGetStateNameById(uint8_t ipproto, AppProto alproto, const int id, const uint8_t direction)
uint8_t AppLayerParserGetStateProgressCompletionStatus(AppProto alproto, uint8_t direction)
const char * AppProtoToString(AppProto alproto)
Maps the ALPROTO_*, to its string equivalent.
void AppLayerListSupportedProtocols(void)
int SCConfYamlLoadFile(const char *filename)
Load configuration from a YAML file.
int AppLayerSetup(void)
Setup the app layer.
uint8_t AppLayerParserGetSubStateCompletion(const AppProto alproto, const uint8_t sub_state)
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)
const char * AppLayerParserGetSubStateProgressName(const AppProto alproto, const uint8_t sub_state, const uint8_t state, const uint8_t dir_flag)
int ListRuleProtocols(const char *conf_filename)
void AppLayerProtoDetectSupportedAppProtocols(AppProto *alprotos)
const char * AppLayerParserGetSubStateName(const AppProto alproto, const uint8_t sub_state)
int ListAppLayerFrames(const char *conf_filename)
uint8_t AppLayerParserGetMaxSubState(const AppProto alproto)
void SCLogLoadConfig(int daemon, int verbose, uint32_t userid, uint32_t groupid)
bool AppLayerParserSupportsSubStates(const AppProto alproto)
int ListKeywords(const char *keyword_info)
int SigTableList(const char *keyword)
void DetectListSupportedProtocols(void)