From e0f2e42f4f420f7bbdda3d4656c9dda585f1297a Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Wed, 17 Mar 1999 14:29:39 +0000 Subject: 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 (`{ }'). o Fixed totally bogus comment at the top of filter.h. o Added a missing prototype for f_run() to filter.h. --- filter/f-util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'filter/f-util.c') 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; -- cgit v1.2.3