summaryrefslogtreecommitdiff
path: root/trafgen_lexer.l
diff options
context:
space:
mode:
Diffstat (limited to 'trafgen_lexer.l')
-rw-r--r--trafgen_lexer.l3
1 files changed, 1 insertions, 2 deletions
diff --git a/trafgen_lexer.l b/trafgen_lexer.l
index 83e7602..ef7ec2a 100644
--- a/trafgen_lexer.l
+++ b/trafgen_lexer.l
@@ -105,13 +105,12 @@ ip4_addr ([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)
"const32"|"c32" { return K_CONST32; }
"const64"|"c64" { return K_CONST64; }
- /* IPv4 proto field (must be before more specific rule for K_ETYPE) */
"prot"[o]? { return K_PROT; }
/* Ethernet */
"daddr"|"da" { return K_DADDR; }
"saddr"|"sa" { return K_SADDR; }
-[e]?"type"|"prot"[o]? { return K_ETYPE; }
+[e]?"type" { return K_ETYPE; }
/* ARP */
"sha"|"smac" { return K_SHA; }