Mercurial > syslog2iptables
comparison 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 |
comparison
equal
deleted
inserted
replaced
34:a3fee10284e2 | 35:d2ceebcf6595 |
---|---|
31 class PATTERN { | 31 class PATTERN { |
32 char * pattern; // owned by the string table | 32 char * pattern; // owned by the string table |
33 regex_t re; | 33 regex_t re; |
34 int index; // zero based substring of the regex match that contains the ip address or hostname | 34 int index; // zero based substring of the regex match that contains the ip address or hostname |
35 int amount; // count to add to the ip address leaky bucket | 35 int amount; // count to add to the ip address leaky bucket |
36 char * message; // for logging, owned by the string table | |
36 public: | 37 public: |
37 ~PATTERN(); | 38 ~PATTERN(); |
38 PATTERN(TOKEN &tok, char *pattern_, int index_, int amount_); | 39 PATTERN(TOKEN &tok, char *pattern_, int index_, int amount_, char *msg_); |
39 bool process(char *buf, CONFIG &con, char *file_name, int pattern_index); | 40 bool process(char *buf, CONFIG &con, char *file_name, int pattern_index); |
40 void dump(int level); | 41 void dump(int level); |
41 }; | 42 }; |
42 | 43 |
43 typedef SYSLOGCONFIG * SYSLOGCONFIGP; | 44 typedef SYSLOGCONFIG * SYSLOGCONFIGP; |