#include <filter_core.h>
Data Fields | |
| enum rule_type | type |
| type of rule, see above | |
| flag_t | flags |
| guint32 | match_count |
| guint32 | fail_count |
| filter_t * | target |
| union { | |
| struct _f_text { | |
| gint case_sensitive:1 | |
| enum rule_text_type type | |
| gchar * match | |
| size_t match_len | |
| union { | |
| cpattern_t * pattern | |
| GList * words | |
| regex_t * re | |
| } u | |
| } text | |
| struct _f_ip { | |
| host_addr_t addr | |
| guint8 mask | |
| } ip | |
| struct _f_size { | |
| filesize_t lower | |
| filesize_t upper | |
| } size | |
| struct _f_sha1 { | |
| gchar * hash | |
| gchar * filename | |
| } sha1 | |
| struct _f_flag { | |
| enum rule_flag_action busy | |
| enum rule_flag_action stable | |
| enum rule_flag_action push | |
| } flag | |
| struct _f_state { | |
| enum filter_prop_state display | |
| enum filter_prop_state download | |
| } state | |
| } | u |
|
|
IP address.
|
|
|
|
|
|
case sensitive (true) or not
|
|
|
|
|
|
|
|
|
|
|
|
filename sha1 comes from
|
|
|
|
|
|
|
|
|
sha1 hash
|
|
|
|
|
|
lower limit or 0
|
|
|
CIDR netmask.
|
|
|
match string
|
|
|
|
|
|
length of match string
|
|
|
substring pattern
|
|
|
|
|
|
regular expression match
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
type of match, see above
|
|
|
type of rule, see above
|
|
|
|
|
|
|
|
|
upper limit or ~0
|
|
|
a list of substring patterns
|
1.3.6