summaryrefslogtreecommitdiff
path: root/trafgen_lexer.l
diff options
context:
space:
mode:
Diffstat (limited to 'trafgen_lexer.l')
-rw-r--r--trafgen_lexer.l15
1 files changed, 15 insertions, 0 deletions
diff --git a/trafgen_lexer.l b/trafgen_lexer.l
index 5467c70..eeb252f 100644
--- a/trafgen_lexer.l
+++ b/trafgen_lexer.l
@@ -119,8 +119,23 @@ ip_addr ([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)
"htype" { return K_HTYPE; }
"ptype" { return K_PTYPE; }
+"ihl" { return K_IHL; }
+"ver"|"version" { return K_VER; }
+"ttl" { return K_TTL; }
+"dscp" { return K_DSCP; }
+"ecn" { return K_ECN; }
+"tos" { return K_TOS; }
+"len"|"length" { return K_LEN; }
+"id" { return K_ID; }
+"flags" { return K_FLAGS; }
+"frag" { return K_FRAG; }
+"csum" { return K_CSUM; }
+"df" { return K_DF; }
+"mf" { return K_MF; }
+
"eth" { return K_ETH; }
"arp" { return K_ARP; }
+"ip4"|"ipv4" { return K_IP4; }
[ ]*"-"[ ]* { return '-'; }
[ ]*"+"[ ]* { return '+'; }