Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

rule Struct Reference

#include <filter_core.h>


Detailed Description

Definition of a filter rule.


Data Fields

enum rule_type type
 type of rule, see above

flag_t flags
guint32 match_count
guint32 fail_count
filter_ttarget
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


Field Documentation

host_addr_t rule::addr
 

IP address.

enum rule_flag_action rule::busy
 

gint rule::case_sensitive
 

case sensitive (true) or not

enum filter_prop_state rule::display
 

enum filter_prop_state rule::download
 

guint32 rule::fail_count
 

gchar* rule::filename
 

filename sha1 comes from

struct { ... } ::_f_flag rule::flag
 

flag_t rule::flags
 

gchar* rule::hash
 

sha1 hash

struct { ... } ::_f_ip rule::ip
 

filesize_t rule::lower
 

lower limit or 0

guint8 rule::mask
 

CIDR netmask.

gchar* rule::match
 

match string

guint32 rule::match_count
 

size_t rule::match_len
 

length of match string

cpattern_t* rule::pattern
 

substring pattern

enum rule_flag_action rule::push
 

regex_t* rule::re
 

regular expression match

struct { ... } ::_f_sha1 rule::sha1
 

struct { ... } ::_f_size rule::size
 

enum rule_flag_action rule::stable
 

struct { ... } ::_f_state rule::state
 

filter_t* rule::target
 

struct { ... } ::_f_text rule::text
 

enum rule_text_type rule::type
 

type of match, see above

enum rule_type rule::type
 

type of rule, see above

union { ... } rule::u
 

union { ... } rule::u
 

filesize_t rule::upper
 

upper limit or ~0

GList* rule::words
 

a list of substring patterns


The documentation for this struct was generated from the following file:
Generated on Sun Feb 12 10:50:13 2006 for Gtk-Gnutella by doxygen 1.3.6