summaryrefslogtreecommitdiff
path: root/trafgen_parser.y
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2017-01-11 16:11:37 +0100
committerTobias Klauser <tklauser@distanz.ch>2017-01-11 16:11:37 +0100
commitfeb7ac09c8cf37ef2b01611c2863e1a0123ffeca (patch)
treea21bf12b08cf4b4776347bb2c96592487a0aad88 /trafgen_parser.y
parentfad3a14b7fd8cc490a1625e0dbdf606e4c896476 (diff)
trafgen: parser: Add terminating ';' to mpls_expr and icmpv6_proto rules
The rules mpls_expr and icmpv6_proto are missing a terminating semicolon. Even though bison seems to accept the rules this way, make them consistent with all the others in the file. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'trafgen_parser.y')
-rw-r--r--trafgen_parser.y3
1 files changed, 3 insertions, 0 deletions
diff --git a/trafgen_parser.y b/trafgen_parser.y
index cc1a110..b5fcbc0 100644
--- a/trafgen_parser.y
+++ b/trafgen_parser.y
@@ -960,6 +960,7 @@ mpls_expr
{ proto_field_expr_eval(); }
| mpls_field skip_white '=' skip_white field_value_expr
{ proto_field_expr_eval(); }
+ ;
arp_proto
: arp '(' arp_param_list ')' { }
@@ -1006,6 +1007,7 @@ arp_expr
| K_REPLY
{ proto_hdr_field_set_be16(hdr, ARP_OPER, ARPOP_REPLY); }
;
+
arp
: K_ARP { proto_add(PROTO_ARP); }
;
@@ -1125,6 +1127,7 @@ icmp4
icmpv6_proto
: icmp6 '(' icmp6_param_list ')' { }
+ ;
icmp6_param_list
: { }