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

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.
This commit is contained in:
Martin Mares
1999-03-17 14:29:39 +00:00
parent c612a3be31
commit e0f2e42f4f
4 changed files with 36 additions and 11 deletions

View File

@@ -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;