summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2023-01-20 14:07:38 +0100
committerMaria Matejka <mq@ucw.cz>2023-01-20 18:31:57 +0100
commit343628d8c0f1848b968930f6dbabdd1174404b14 (patch)
treeab4e9fa467dc371529fc148c0fe1669864b47b74 /filter
parent1127f19a7a12b162064b1f521acd5c0017fbcf89 (diff)
Fixed various build problems on FreeBSD and/or CLang
Diffstat (limited to 'filter')
-rw-r--r--filter/config.Y13
1 files changed, 0 insertions, 13 deletions
diff --git a/filter/config.Y b/filter/config.Y
index d20e4a04..7f152659 100644
--- a/filter/config.Y
+++ b/filter/config.Y
@@ -338,7 +338,6 @@ CF_KEYWORDS(FUNCTION, PRINT, PRINTN, UNSET, RETURN,
%type <xp> cmds_int cmd_prep
%type <x> term cmd cmd_var cmds cmds_scoped constant constructor print_list var var_init var_list function_call symbol_value bgp_path_expr bgp_path bgp_path_tail
%type <fsa> static_attr
-%type <fab> attr_bit
%type <f> filter where_filter
%type <fl> filter_body function_body
%type <flv> lvalue
@@ -846,10 +845,6 @@ term:
| constructor { $$ = $1; }
| static_attr { $$ = f_new_inst(FI_RTA_GET, $1); }
- | attr_bit {
- struct f_inst *c = f_new_inst(FI_CONSTANT, (struct f_val) { .type = T_INT, .val.i = (1U << $1.bit)});
- $$ = f_new_inst(FI_EQ, c, f_new_inst(FI_BITAND, f_new_inst(FI_EA_GET, $1.class), c));
- }
| term '.' IS_V4 { $$ = f_new_inst(FI_IS_V4, $1); }
| term '.' TYPE { $$ = f_new_inst(FI_TYPE, $1); }
@@ -979,14 +974,6 @@ cmd:
cf_error("Attribute %s is read-only", $3->attribute->name);
$$ = f_new_inst(FI_EA_UNSET, $3->attribute);
}
- | attr_bit '=' term ';' {
- $$ = f_new_inst(FI_CONDITION, $3,
- f_generate_complex_default(FI_BITOR, $1.class,
- f_new_inst(FI_CONSTANT, (struct f_val) { .type = T_INT, .val.i = (1U << $1.bit)}), 0),
- f_generate_complex_default(FI_BITAND, $1.class,
- f_new_inst(FI_CONSTANT, (struct f_val) { .type = T_INT, .val.i = ~(1U << $1.bit)}), 0)
- );
- }
| break_command print_list ';' {
struct f_inst *breaker = f_new_inst(FI_DIE, $1);
if ($2) {