1
0
mirror of https://gitlab.labs.nic.cz/labs/bird.git synced 2024-05-11 16:54:54 +00:00

Filters: comparison of functions and filters caching

This commit is contained in:
Maria Matejka
2019-02-26 16:44:24 +01:00
parent 0d12aa4836
commit f249d0b84c
10 changed files with 108 additions and 14 deletions

View File

@@ -47,7 +47,7 @@ struct f_val;
/* The filter encapsulating structure to be pointed-to from outside */
struct f_line;
struct filter {
char *name;
struct symbol *sym;
const struct f_line *root;
};
@@ -62,6 +62,8 @@ const char *filter_name(const struct filter *filter);
int filter_same(const struct filter *new, const struct filter *old);
int f_same(const struct f_line *f1, const struct f_line *f2);
void filter_commit(const struct config *new, const struct config *old);
#define FILTER_ACCEPT NULL
#define FILTER_REJECT ((void *) 1)
#define FILTER_UNDEF ((void *) 2) /* Used in BGP */