Mercurial > syslog2iptables
diff src/syslogconfig.h @ 35:d2ceebcf6595 stable-1-7
add message description in patterns
author | carl |
---|---|
date | Tue, 18 Sep 2007 09:54:22 -0700 |
parents | 28fec0c67646 |
children | 6a2f26976898 |
line wrap: on
line diff
--- a/src/syslogconfig.h Sun Sep 09 15:46:03 2007 -0700 +++ b/src/syslogconfig.h Tue Sep 18 09:54:22 2007 -0700 @@ -33,9 +33,10 @@ regex_t re; int index; // zero based substring of the regex match that contains the ip address or hostname int amount; // count to add to the ip address leaky bucket + char * message; // for logging, owned by the string table public: ~PATTERN(); - PATTERN(TOKEN &tok, char *pattern_, int index_, int amount_); + PATTERN(TOKEN &tok, char *pattern_, int index_, int amount_, char *msg_); bool process(char *buf, CONFIG &con, char *file_name, int pattern_index); void dump(int level); };