diff options
Diffstat (limited to 'filter/filter.h')
-rw-r--r-- | filter/filter.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/filter/filter.h b/filter/filter.h index 1294342..ffb50b3 100644 --- a/filter/filter.h +++ b/filter/filter.h @@ -15,9 +15,19 @@ struct f_inst { /* Instruction */ struct f_inst *next; /* Structure is 16 bytes, anyway */ int code; - void *arg1, *arg2; + union { + int i; + void *p; + } a1; + union { + int i; + void *p; + } a2; }; +#define arg1 a1.p +#define arg2 a2.p + struct prefix { ip_addr ip; int len; @@ -27,7 +37,8 @@ struct f_val { int type; union { int i; - struct prefix *px; + ip_addr ip; + struct prefix px; char *s; } val; }; |