summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2023-02-16 14:22:23 +0100
committerMaria Matejka <mq@ucw.cz>2023-02-22 14:54:09 +0100
commit2f080b543296aa2fa18bf7451b5174d942b0a952 (patch)
tree8857f3f648a132e3c0824d1ffbbebe2d0d74ca05
parent6c058ae40cf33d6d36c0159d0c40c9925c8e60d8 (diff)
Config: Dropping filter instruction trees after linearization
-rw-r--r--filter/decl.m42
-rw-r--r--filter/f-inst.h2
2 files changed, 1 insertions, 3 deletions
diff --git a/filter/decl.m4 b/filter/decl.m4
index b6026867..5b35b672 100644
--- a/filter/decl.m4
+++ b/filter/decl.m4
@@ -486,7 +486,7 @@ f_instruction_name_(enum f_instruction_code fi)
static inline struct f_inst *
fi_new(enum f_instruction_code fi_code)
{
- struct f_inst *what = cfg_allocz(sizeof(struct f_inst));
+ struct f_inst *what = tmp_allocz(sizeof(struct f_inst));
what->lineno = ifs->lino;
what->size = 1;
what->fi_code = fi_code;
diff --git a/filter/f-inst.h b/filter/f-inst.h
index e35f71c6..72b080f8 100644
--- a/filter/f-inst.h
+++ b/filter/f-inst.h
@@ -100,8 +100,6 @@ static inline struct f_dynamic_attr f_new_dynamic_attr_bit(u8 bit, enum f_type f
{ return (struct f_dynamic_attr) { .type = EAF_TYPE_BITFIELD, .bit = bit, .f_type = f_type, .ea_code = code }; } /* f_type currently unused; will be handy for static type checking */
static inline struct f_static_attr f_new_static_attr(int f_type, int code, int readonly)
{ return (struct f_static_attr) { .f_type = f_type, .sa_code = code, .readonly = readonly }; }
-struct f_inst *f_generate_complex(enum f_instruction_code fi_code, struct f_dynamic_attr da, struct f_inst *argument);
-struct f_inst *f_generate_roa_check(struct rtable_config *table, struct f_inst *prefix, struct f_inst *asn);
/* Hook for call bt_assert() function in configuration */
extern void (*bt_assert_hook)(int result, const struct f_line_item *assert);