#include <string.h>#include <sys/types.h>#include <regex.h>#include "../../dprint.h"#include "rd_filter.h"

Go to the source code of this file.
Defines | |
| #define | MAX_FILTERS 6 |
Functions | |
| void | add_default_filter (int type, regex_t *filter) |
| int | add_filter (int type, regex_t *filter, int flags) |
| void | init_filters (void) |
| void | reset_filters (void) |
| int | run_filters (char *s) |
| void | set_default_rule (int type) |
Variables | |
| static int | default_rule = ACCEPT_RULE |
| static int | nr_filters [NR_FILTER_TYPES] |
| static regex_t * | rd_filters [NR_FILTER_TYPES][MAX_FILTERS] |
| static int | start_filters [NR_FILTER_TYPES] |
| #define MAX_FILTERS 6 |
| void add_default_filter | ( | int | type, | |
| regex_t * | filter | |||
| ) |
| int add_filter | ( | int | type, | |
| regex_t * | filter, | |||
| int | flags | |||
| ) |
Definition at line 73 of file rd_filter.c.
References LM_ERR, MAX_FILTERS, nr_filters, rd_filters, RESET_ADDED, RESET_DEFAULT, and start_filters.
Referenced by w_set_accept(), and w_set_deny().
| void init_filters | ( | void | ) |
Definition at line 45 of file rd_filter.c.
References MAX_FILTERS, NR_FILTER_TYPES, rd_filters, and reset_filters().
Referenced by redirect_init().
| void reset_filters | ( | void | ) |
Definition at line 58 of file rd_filter.c.
References ACCEPT_FILTER, DENY_FILTER, nr_filters, and start_filters.
Referenced by init_filters(), msg_tracer(), and w_get_redirect2().
| int run_filters | ( | char * | s | ) |
Definition at line 92 of file rd_filter.c.
References ACCEPT_FILTER, ACCEPT_RULE, default_rule, DENY_FILTER, DENY_RULE, nr_filters, rd_filters, and start_filters.
Referenced by sort_contacts().
| void set_default_rule | ( | int | type | ) |
int default_rule = ACCEPT_RULE [static] |
int nr_filters[NR_FILTER_TYPES] [static] |
Definition at line 41 of file rd_filter.c.
Referenced by add_filter(), reset_filters(), and run_filters().
regex_t* rd_filters[NR_FILTER_TYPES][MAX_FILTERS] [static] |
Definition at line 40 of file rd_filter.c.
Referenced by add_default_filter(), add_filter(), init_filters(), and run_filters().
int start_filters[NR_FILTER_TYPES] [static] |
Definition at line 42 of file rd_filter.c.
Referenced by add_filter(), reset_filters(), and run_filters().
1.5.6