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

Filters are now a tiny bit stronger (if is actually working ;-)

This commit is contained in:
Pavel Machek
1999-03-08 20:30:06 +00:00
parent 111213f0b6
commit b700582445
4 changed files with 130 additions and 29 deletions

View File

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