Add the file/line to the rule so we can use it in the debug log and eventually in the alerts.

This commit is contained in:
brectanus
2007-03-21 21:20:35 +00:00
parent 58afede3f3
commit 4676132ed4
4 changed files with 24 additions and 4 deletions

View File

@@ -119,12 +119,15 @@ struct msre_rule {
msre_op_metadata *op_metadata;
unsigned int op_negated;
msre_actionset *actionset;
const char *filename;
int line_num;
msre_ruleset *ruleset;
msre_rule *chain_starter;
};
msre_rule *msre_rule_create(msre_ruleset *ruleset, const char *targets,
msre_rule *msre_rule_create(msre_ruleset *ruleset,
const char *fn, int line, const char *targets,
const char *args, const char *actions, char **error_msg);
void msre_rule_actionset_init(msre_rule *rule);