summaryrefslogtreecommitdiffstats
path: root/filter/filter.h
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/filter.h
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/filter.h')
-rw-r--r--filter/filter.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/filter/filter.h b/filter/filter.h
index 8ea6b94..379a4ac 100644
--- a/filter/filter.h
+++ b/filter/filter.h
@@ -1,7 +1,7 @@
/*
- * BIRD Internet Routing Daemon -- Configuration File Handling
+ * BIRD Internet Routing Daemon -- Filters
*
- * (c) 1998 Martin Mares <mj@ucw.cz>
+ * (c) 1999 Pavel Machek <pavel@ucw.cz>
*
* Can be freely distributed and used under the terms of the GNU GPL.
*/
@@ -24,9 +24,16 @@ struct f_val {
} val;
};
+struct filter {
+ char *name;
+ struct f_inst *root;
+};
+
void filters_postconfig(void);
struct f_inst *f_new_inst(void);
+int f_run(struct filter *filter, struct rte *rtein, struct rte **rteout);
+
#define F_ACCEPT 1
#define F_REJECT 2
#define F_MODIFY 3
@@ -39,5 +46,4 @@ struct f_inst *f_new_inst(void);
#define T_PX 11 /* prefix */
#define T_INTLIST 12
-
#endif