From feb7ac09c8cf37ef2b01611c2863e1a0123ffeca Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Wed, 11 Jan 2017 16:11:37 +0100 Subject: 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 --- trafgen_parser.y | 3 +++ 1 file changed, 3 insertions(+) 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 : { } -- cgit v1.2.3-54-g00ecf