15 #ifndef SNORT_CONFIG_H 16 #define SNORT_CONFIG_H 18 #include "ws_attributes.h" 21 #ifdef SNORT_CONFIG_DEBUG 22 #define snort_debug_printf printf 24 #define snort_debug_printf(...) 30 typedef enum content_type_t {
39 content_type_t content_type;
50 gboolean distance_set;
61 gboolean http_client_body;
63 gboolean http_user_agent;
67 guchar *translated_str;
69 guint translated_length;
71 gboolean pcre_case_insensitive;
72 gboolean pcre_dot_includes_newline;
74 gboolean pcre_multiline;
85 gboolean relevant_vars_set;
87 #define MAX_RULE_PORT_VARS 6 91 #define MAX_RULE_IP_VARS 6 112 unsigned int number_contents;
113 #define MAX_CONTENT_ENTRIES 30 120 unsigned int number_references;
121 #define MAX_REFERENCE_ENTRIES 20 122 char *references[MAX_REFERENCE_ENTRIES];
138 GHashTable *portvars;
141 gboolean rule_path_is_absolute;
146 GHashTable *references_prefixes;
149 guint stat_rules_files;
151 guint stat_alerts_detected;
159 void create_config(
SnortConfig_t **snort_config,
const char *snort_config_file);
164 void rule_set_alert(
SnortConfig_t *snort_config,
Rule_t *rule, guint *global_match_number, guint *rule_match_number);
170 char *expand_reference(
SnortConfig_t *snort_config,
char *reference);
173 void get_global_rule_stats(
SnortConfig_t *snort_config,
unsigned int sid,
174 unsigned int *number_rules_files,
unsigned int *number_rules,
175 unsigned int *alerts_detected,
unsigned int *this_rule_alerts_detected);
179 guint content_convert_to_binary(
content_t *content);
181 gboolean content_convert_pcre_for_regex(
content_t *content);
Definition: snort-config.h:84
Definition: snort-config.h:37
Definition: snort-config.h:78
Definition: snort-config.h:99
Definition: snort-config.h:133