summaryrefslogtreecommitdiffstats
path: root/filter/f-util.c
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1999-03-17 15:29:39 +0100
committerMartin Mares <mj@ucw.cz>1999-03-17 15:29:39 +0100
commite0f2e42f4f420f7bbdda3d4656c9dda585f1297a (patch)
treeb3db9ed1f4bd5af7bd05c509beb60aca3b6fda7a /filter/f-util.c
parentc612a3be310069b9fbbcfef931bb546d536a716f (diff)
downloadbird-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.c4
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;