summaryrefslogtreecommitdiff
path: root/conf
diff options
context:
space:
mode:
authorOndrej Zajicek (work) <santiago@crfreenet.org>2021-05-18 20:18:06 +0200
committerOndrej Zajicek (work) <santiago@crfreenet.org>2021-05-18 20:23:08 +0200
commitabc9ccc5cb7a3adcbb2090ba7314031b835b0e04 (patch)
treeb5e137243217e4316dd6925bc8c18c49906b4371 /conf
parentdd8481cc1c92af32ec69cded42b985b7bad40b26 (diff)
Flowspec: Label field should use numeric operator and not bitmask operator
Diffstat (limited to 'conf')
-rw-r--r--conf/flowspec.Y3
1 files changed, 1 insertions, 2 deletions
diff --git a/conf/flowspec.Y b/conf/flowspec.Y
index 4d259763..56a7c5dc 100644
--- a/conf/flowspec.Y
+++ b/conf/flowspec.Y
@@ -59,12 +59,12 @@ flow_num_type_:
| ICMP CODE { $$ = FLOW_TYPE_ICMP_CODE; }
| LENGTH { $$ = FLOW_TYPE_PACKET_LENGTH; }
| DSCP { $$ = FLOW_TYPE_DSCP; }
+ | LABEL { $$ = FLOW_TYPE_LABEL; }
;
flow_num_type: flow_num_type_{ flow_builder_set_type(this_flow, $1); };
flow_flag_type: TCP FLAGS { flow_builder_set_type(this_flow, FLOW_TYPE_TCP_FLAGS); };
flow_frag_type: FRAGMENT { flow_builder_set_type(this_flow, FLOW_TYPE_FRAGMENT); };
-flow_label_type: LABEL { flow_builder_set_type(this_flow, FLOW_TYPE_LABEL); };
flow_srcdst:
DST { $$ = FLOW_TYPE_DST_PREFIX; }
@@ -165,7 +165,6 @@ flow6_item:
| flow_num_type flow_num_opts
| flow_flag_type flow_bmk_opts
| flow_frag_type flow_frag_opts
- | flow_label_type flow_bmk_opts
;
flow4_opts: