summaryrefslogtreecommitdiffstats
path: root/filter/filter.h
diff options
context:
space:
mode:
authorPavel Machek <pavel@ucw.cz>1999-03-08 21:30:06 +0100
committerPavel Machek <pavel@ucw.cz>1999-03-08 21:30:06 +0100
commitb7005824453583d1459b49c5a424b50e2ea9a2c8 (patch)
tree23579261136bbf4a67a5a50789bebb46bce1e7e5 /filter/filter.h
parent111213f0b66cff8f562f7d9117c9080a9882129e (diff)
downloadbird-b7005824453583d1459b49c5a424b50e2ea9a2c8.tar
bird-b7005824453583d1459b49c5a424b50e2ea9a2c8.zip
Filters are now a tiny bit stronger (if is actually working ;-)
Diffstat (limited to 'filter/filter.h')
-rw-r--r--filter/filter.h19
1 files changed, 14 insertions, 5 deletions
diff --git a/filter/filter.h b/filter/filter.h
index aed2647..e0f4723 100644
--- a/filter/filter.h
+++ b/filter/filter.h
@@ -11,19 +11,28 @@
#include "lib/resource.h"
-/* Lexer */
-
-struct f_instruction {
- struct f_instruction *next; /* Structure is 16 bytes, anyway */
+struct f_inst { /* Instruction */
+ struct f_inst *next; /* Structure is 16 bytes, anyway */
int code;
void *arg1, *arg2;
};
+struct f_val {
+ int type;
+ union {
+ int i;
+ } val;
+};
+
void filters_postconfig(void);
-struct f_instruction *f_new_inst(void);
+struct f_inst *f_new_inst(void);
#define F_ACCEPT 1
#define F_REJECT 2
#define F_MODIFY 3
+#define T_VOID 0
+#define T_INT 1
+#define T_PX 2
+
#endif