summaryrefslogtreecommitdiff
path: root/trafgen_parser.y
diff options
context:
space:
mode:
Diffstat (limited to 'trafgen_parser.y')
-rw-r--r--trafgen_parser.y6
1 files changed, 3 insertions, 3 deletions
diff --git a/trafgen_parser.y b/trafgen_parser.y
index 37c9a15..16701c7 100644
--- a/trafgen_parser.y
+++ b/trafgen_parser.y
@@ -355,11 +355,11 @@ noenforce_white
;
packet
- : '{' delimiter payload delimiter '}' {
+ : '{' noenforce_white payload noenforce_white '}' {
min_cpu = max_cpu = -1;
realloc_packet();
}
- | K_CPU '(' number cpu_delim number ')' ':' noenforce_white '{' delimiter payload delimiter '}' {
+ | K_CPU '(' number cpu_delim number ')' ':' noenforce_white '{' noenforce_white payload noenforce_white '}' {
min_cpu = $3;
max_cpu = $5;
@@ -372,7 +372,7 @@ packet
realloc_packet();
}
- | K_CPU '(' number ')' ':' noenforce_white '{' delimiter payload delimiter '}' {
+ | K_CPU '(' number ')' ':' noenforce_white '{' noenforce_white payload noenforce_white '}' {
min_cpu = max_cpu = $3;
realloc_packet();
}