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);
119 const int max_progress_ts =
121 const int max_progress_tc =
124 printf(
"%s:%s\n", alproto_name,
"request_started");
125 for (
int p = 0;
p <= max_progress_ts;
p++) {
127 IPPROTO_TCP , a,
p, STREAM_TOSERVER);
128 if (
name != NULL && !IsBuiltIn(
name)) {
129 printf(
"%s:%s\n", alproto_name,
name);
132 printf(
"%s:%s\n", alproto_name,
"request_complete");
134 printf(
"%s:%s\n", alproto_name,
"response_started");
135 for (
int p = 0;
p <= max_progress_tc;
p++) {
137 IPPROTO_TCP , a,
p, STREAM_TOCLIENT);
138 if (
name != NULL && !IsBuiltIn(
name)) {
139 printf(
"%s:%s\n", alproto_name,
name);
142 printf(
"%s:%s\n", alproto_name,
"response_complete");
160 printf(
"=========Supported App Layer Frames=========\n");
162 if (alprotos[a] != 1)
168 bool tcp_stream_once =
false;
169 for (uint32_t i = 0; i < 255; i++) {
173 if (!tcp_stream_once) {
174 printf(
"tcp: %s.stream\n", alproto_name);
175 tcp_stream_once =
true;
177 printf(
"tcp: %s.%s\n", alproto_name,
name);
179 for (uint32_t i = 0; i < 255; i++) {
183 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 normalized 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 * AppProtoToStringRaw(AppProto alproto)
Maps the ALPROTO_*, to its registered string equivalent.
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)