0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-23 02:01:55 +00:00

Config: Dropping filter instruction trees after linearization

This commit is contained in:
Maria Matejka 2023-02-16 14:22:23 +01:00 committed by Igor Putovny
parent 80474b62d7
commit 2458eed36c
2 changed files with 1 additions and 3 deletions

View File

@ -486,7 +486,7 @@ f_instruction_name_(enum f_instruction_code fi)
static inline struct f_inst * static inline struct f_inst *
fi_new(enum f_instruction_code fi_code) 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->lineno = ifs->lino;
what->size = 1; what->size = 1;
what->fi_code = fi_code; what->fi_code = fi_code;

View File

@ -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 */ { 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) 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 }; } { 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 */ /* Hook for call bt_assert() function in configuration */
extern void (*bt_assert_hook)(int result, const struct f_line_item *assert); extern void (*bt_assert_hook)(int result, const struct f_line_item *assert);