diff options
author | Martin Mares <mj@ucw.cz> | 1999-03-17 15:29:39 +0100 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 1999-03-17 15:29:39 +0100 |
commit | e0f2e42f4f420f7bbdda3d4656c9dda585f1297a (patch) | |
tree | b3db9ed1f4bd5af7bd05c509beb60aca3b6fda7a /filter/f-util.c | |
parent | c612a3be310069b9fbbcfef931bb546d536a716f (diff) | |
download | bird-e0f2e42f4f420f7bbdda3d4656c9dda585f1297a.tar bird-e0f2e42f4f420f7bbdda3d4656c9dda585f1297a.zip |
A couple of filter tweaks:
o Introduced struct filter which serves as an external reference
to filter. Using struct symbol for this is unwise since it doesn't
allow extra information attached to the filter and it also forces
all filters to be named.
o Implemented config rule 'filter' which matches either named filter
or an embedded unnamed filter (`{ <filter> }').
o Fixed totally bogus comment at the top of filter.h.
o Added a missing prototype for f_run() to filter.h.
Diffstat (limited to 'filter/f-util.c')
-rw-r--r-- | filter/f-util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/filter/f-util.c b/filter/f-util.c index 7856d7f..1f757ff 100644 --- a/filter/f-util.c +++ b/filter/f-util.c @@ -146,13 +146,13 @@ f_new_inst(void) } int -f_run(struct symbol *filter, struct rte *rtein, struct rte **rteout) +f_run(struct filter *filter, struct rte *rtein, struct rte **rteout) { struct f_inst *inst; struct f_val res; debug( "Running filter `%s'...", filter->name ); - inst = filter->def; + inst = filter->root; res = interpret(inst); if (res.type != T_RETURN) return F_ERROR; |