diff options
author | Martin Mares <mj@ucw.cz> | 2000-01-16 18:49:32 +0100 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 2000-01-16 18:49:32 +0100 |
commit | 30a6108cccac93048440113211df2eed1fb541b1 (patch) | |
tree | 9adf2f46ed0e805d900cbcd2530acbb2bcd109cd /filter | |
parent | bf8558bc9cab35f31bccd6a55e51f121370765c4 (diff) | |
download | bird-30a6108cccac93048440113211df2eed1fb541b1.tar bird-30a6108cccac93048440113211df2eed1fb541b1.zip |
Added filter_same() for comparision of two filters.
Pavel, please implement this as soon as possible.
Diffstat (limited to 'filter')
-rw-r--r-- | filter/filter.c | 7 | ||||
-rw-r--r-- | filter/filter.h | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/filter/filter.c b/filter/filter.c index 84e039b..558ee61 100644 --- a/filter/filter.c +++ b/filter/filter.c @@ -444,3 +444,10 @@ filters_postconfig(void) printf( "done\n" ); } } + +int +filter_same(struct filter *new, struct filter *old) +{ + /* FIXME: This has to be defined! */ + return new == old; +} diff --git a/filter/filter.h b/filter/filter.h index 79d14da..2fe6653 100644 --- a/filter/filter.h +++ b/filter/filter.h @@ -67,6 +67,7 @@ struct rte; int f_run(struct filter *filter, struct rte **rte, struct ea_list **tmp_attrs, struct linpool *tmp_pool); char *filter_name(struct filter *filter); +int filter_same(struct filter *new, struct filter *old); int val_compare(struct f_val v1, struct f_val v2); void val_print(struct f_val v); |