]> git.ipfire.org Git - thirdparty/bird.git/blobdiff - filter/filter.h
A couple of filter tweaks:
[thirdparty/bird.git] / filter / filter.h
index 8ea6b94045e4f791e74a196337866799b7b287ac..379a4ac9942118699f5245871d1efdedafd29735 100644 (file)
@@ -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