Go to the documentation of this file.
71 static bool IsBuiltIn(
const char *n)
73 return strcmp(n,
"request_started") == 0 || strcmp(n,
"response_started") == 0 ||
74 strcmp(n,
"request_complete") == 0 || strcmp(n,
"response_complete") == 0;
89 printf(
"=========Supported App Layer Hooks=========\n");
96 for (uint8_t sub_state = 1; sub_state <= max_sub_state; sub_state++) {
99 for (uint8_t state = 0; state <= max_progress; state++) {
101 a, sub_state, state, STREAM_TOSERVER);
106 for (uint8_t state = 0; state <= max_progress; state++) {
108 a, sub_state, state, STREAM_TOCLIENT);
118 const int max_progress_ts =
120 const int max_progress_tc =
123 printf(
"%s:%s\n", alproto_name,
"request_started");
124 for (
int p = 0;
p <= max_progress_ts;
p++) {
126 IPPROTO_TCP , a,
p, STREAM_TOSERVER);
127 if (
name != NULL && !IsBuiltIn(
name)) {
128 printf(
"%s:%s\n", alproto_name,
name);
131 printf(
"%s:%s\n", alproto_name,
"request_complete");
133 printf(
"%s:%s\n", alproto_name,
"response_started");
134 for (
int p = 0;
p <= max_progress_tc;
p++) {
136 IPPROTO_TCP , a,
p, STREAM_TOCLIENT);
137 if (
name != NULL && !IsBuiltIn(
name)) {
138 printf(
"%s:%s\n", alproto_name,
name);
141 printf(
"%s:%s\n", alproto_name,
"response_complete");
159 printf(
"=========Supported App Layer Frames=========\n");
161 if (alprotos[a] != 1)
167 bool tcp_stream_once =
false;
168 for (uint32_t i = 0; i < 255; i++) {
172 if (!tcp_stream_once) {
173 printf(
"tcp: %s.stream\n", alproto_name);
174 tcp_stream_once =
true;
176 printf(
"tcp: %s.%s\n", alproto_name,
name);
178 for (uint32_t i = 0; i < 255; i++) {
182 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)