Mercurial > syslog2iptables
diff src/syslogconfig.h @ 27:28fec0c67646
make add/remove commands configureable
author | carl |
---|---|
date | Sun, 12 Feb 2006 10:54:03 -0800 |
parents | 0d65c3de34fd |
children | d2ceebcf6595 |
line wrap: on
line diff
--- a/src/syslogconfig.h Wed Feb 01 10:58:23 2006 -0800 +++ b/src/syslogconfig.h Sun Feb 12 10:54:03 2006 -0800 @@ -77,10 +77,14 @@ string_set config_files; int threshold; ippair_list ignore; // owns all the ippairs + char * add_command; // owned by the string table + char * remove_command; // "" syslogconfig_list syslogconfigs; // owns all the syslogconfigs CONFIG(); ~CONFIG(); + void set_add(char *add) { add_command = add; }; + void set_remove(char *remove) { remove_command = remove; }; void set_threshold(int threshold_) { threshold = threshold_; }; int get_threshold() { return threshold; }; void add_syslogconfig(SYSLOGCONFIGP con); @@ -98,6 +102,7 @@ bool load_conf(CONFIG &dc, char *fn); void token_init(); +extern char *token_add; extern char *token_bucket; extern char *token_file; extern char *token_ignore; @@ -106,6 +111,7 @@ extern char *token_lbrace; extern char *token_pattern; extern char *token_rbrace; +extern char *token_remove; extern char *token_semi; extern char *token_slash; extern char *token_threshold;